vmgr.nsm connection to VMware vCenter server
-
I've tried to use vmgr.nsm. It works fine with ESXi hypervisors but when try to connect to a vCenter server it fails with following error:
2020.05.21 11:11:47.611 *W* [ ] VMGR: Unable to add connection URL "esx://[email protected]/?no_verify=1" for connection name "vcenter"The configuration is following:
[vmgr:vcenter] Url = esx://[email protected]/?no_verify=1 Login = root Password = XXXThe password in the real configuration is different but it is OK. I can login with this login and password to vCenter Web UI.
Did I do something wrong or supports vmgr.nsm ESXi hypervisors only?
-
Currently the bet option to find problems in credentials is to use virsh tool. Something like this:
virsh -c esx: //root@vcenter. mydomain.local/?no_verify=1 listThis tool will give more information about the problem that occurred wile connection.
-
-
This works fine:
virsh -c vpx://[email protected]/Datacenter_name/Cluster_name/ESXi_Server_name?no_verify=1But it means I need one connection for each ESXi server and not one common connection for whole Cluster or for whole vCenter.
-
libvirt claims that it can connect to vcencter, not only particular ESXi servers.
Here's a video that seems to be explaining how this is done: https://www.youtube.com/watch?v=n3XJ0X1l9DU
-
The video uses the same URL format I described above. The URL connects to vCenter server, but the connection is restricted to a single ESXi server.
Following is written in the libvirt documentation https://libvirt.org/drvesx.html
"A vpx:// connection is currently restricted to a single ESX server. This might be relaxed in the future. The path part of the URI is used to specify the datacenter and the ESX server in it. If the ESX server is part of a cluster then the cluster has to be specified too."This means that if I list all VMs I see only the VMs on this single ESXi server. If a running VM is moved to another ESXi server in the same cluster it disappears form the list and appears in the list for the other ESXi server which needs another connection to the same vCenter but with different path. I'm not sure it will be possible to identify, that it is the same VM and move the DCIs instead of deleting old and creating new ones.
I know than this is property of livirt and it must be changed there but it limits the VMware monitoring in NetXMS.
-
Actually we already decided that we have to move from libvirt to direct interaction with VMWare API (as we already did for XEN) - it's just question of available time and resources.
Best regards,
Victor -
@victor said in vmgr.nsm connection to VMware vCenter server:
Actually we already decided that we have to move from libvirt to direct interaction with VMWare API (as we already did for XEN) - it's just question of available time and resources.
Best regards,
Victorhi, with version 3.3 is possible use vmware api? if yes where i can find documentation?
thanks
Andrea
-
Working with VMWare API in in future plans only. It's not implemented yet.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login