Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. vmgr.nsm connection to VMware vCenter server

vmgr.nsm connection to VMware vCenter server

Scheduled Pinned Locked Moved Support
9 Posts 5 Posters 19.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    pvo
    wrote on last edited by
    #1

    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 = XXX
    

    The 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?

    1 Reply Last reply
    0
    • Z
      Z
      Tatjana Dubrovica
      wrote on last edited by
      #2

      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 list

      This tool will give more information about the problem that occurred wile connection.

      1 Reply Last reply
      0
      • P
        P
        pvo
        wrote on last edited by
        #3

        The answer is as I expected.

        error: failed to connect to the hypervisor
        error: internal error: Expecting 'vcenter.mydomain.local' to be a ESX(i) host but found a vCenter/VPX host
        

        Thank you for your help.

        1 Reply Last reply
        0
        • P
          P
          pvo
          wrote on last edited by
          #4

          This works fine:

          virsh -c vpx://[email protected]/Datacenter_name/Cluster_name/ESXi_Server_name?no_verify=1
          

          But it means I need one connection for each ESXi server and not one common connection for whole Cluster or for whole vCenter.

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • P
              P
              pvo
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • I
                  I
                  it_user1
                  wrote on last edited by
                  #8

                  @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,
                  Victor

                  hi, with version 3.3 is possible use vmware api? if yes where i can find documentation?

                  thanks

                  Andrea

                  1 Reply Last reply
                  0
                  • F
                    F
                    Filipp Sudanov
                    wrote on last edited by
                    #9

                    Working with VMWare API in in future plans only. It's not implemented yet.

                    1 Reply Last reply
                    0

                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups