[libvirt-users] connect to esx: Could not find HostSystem with name '(null)'

Hi all, I am trying to connect to esx vi libvirt 0.10.2. 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)' could you give me a hint, what could be a reason for that problem in a debug log of libvirt I see: 14447: debug : virAuthGetConfigFilePath:77 : Checking for readability of '/root/.libvirt/auth.conf' 14447: debug : virAuthGetConfigFilePath:86 : Checking for readability of '/etc/libvirt/auth.conf' 14447: debug : virAuthGetConfigFilePath:95 : Using auth file '(null)' 14447: error : esxVI_LookupManagedObjectHelper:4854 : internal error Could not find HostSystem with name '(null)' 14447: debug : do_open:1180 : driver 1 ESX returned ERROR Regards Dimitri

2013/5/15 Dimitri Nilsen <dimitri.nilsen@kit.edu>:
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? -- Matthias Bolte http://photron.blogspot.com

Its a On 05/15/2013 11:18 PM, Matthias Bolte wrote:
2013/5/15 Dimitri Nilsen <dimitri.nilsen@kit.edu>:
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 Regards
-- Matthias Bolte http://photron.blogspot.com
-- Dimitri Nilsen, Dipl.-Ing(FH) Karlsruhe Institute of Technology (KIT) Steinbuch Centre for Computing Kaiserstr. 12 76131 Karlsruhe, Germany Tel.: +49 721 608 28607 Email: Dimitri.Nilsen@kit.edu

2013/5/16 Dimitri Nilsen <dimitri.nilsen@kit.edu>:
Its a On 05/15/2013 11:18 PM, Matthias Bolte wrote:
2013/5/15 Dimitri Nilsen <dimitri.nilsen@kit.edu>:
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
participants (2)
-
Dimitri Nilsen
-
Matthias Bolte