2013/5/16 Dimitri Nilsen <dimitri.nilsen@xxxxxxx>: > Its a On 05/15/2013 11:18 PM, Matthias Bolte wrote: >> >> 2013/5/15 Dimitri Nilsen <dimitri.nilsen@xxxxxxx>: >>> >>> Hi all, >>> >>> I am trying to connect to esx vi libvirt 0.10.2. >> >> According to line number for esxVI_LookupManagedObjectHelper in the >> debug log this looks like libvirt 0.10.2.1 actually. >> >>> virsh # connect esx://hostname?no_verify=1&auto_answer=1 >>> error: Failed to connect to the hypervisor >>> error: internal error Could not find HostSystem with name '(null)' >> >> First of all you found an error in the bug reporting here. The error >> message should read just 'Could not find HostSystem'. >> >> Anyway, the error says that libvirt couldn't find the HostSystem >> object for that ESX server. This is quite unexpected. >> >> What ESX server version are you using? Is this a standalone server? Or >> is it managed by a vCenter server? Is it part of a cluster? > > > Hi, > > its vCenter, Version 4.1 Update 3. > > I am trying to connect from Centos6, > libvirt-0.10.2-18.el6_4.4.x86_64 > libvirt-client-0.10.2-18.el6_4.4.x86_64 Is the host name in the URI referring to this vCenter? In this case you need to use a vpx:// style URI: virch -c vpx://vcenter-server/datacenter/esx-server?no_verify=1&auto_answer=1 See http://libvirt.org/drvesx.html#uriformat for more details. But actually libvirt should complain if you use a esx:// URI to connect to a vCenter server. -- Matthias Bolte http://photron.blogspot.com _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users