[libvirt] Probs connecting QEMU hypervisor with URL ?

Daniel Schwager Daniel.Schwager at dtnet.de
Thu Jan 22 17:10:47 UTC 2009


Hi,

i tried to use virt-viewer to connect to a remote machine
running libvirt & kvm-qemu at FC9 - but it failed.

So, I run virsh without the URL directly on FC9, it works (e.g. virsh
list).
If I use a connection URL, it failed. 

Did I miss something ? 

regards
Danny

	
[root at xxx03 ~]# virsh list
 Id Name                 State
----------------------------------

oot at xxx03 ~]# virsh -c  qemu+tls://localhost list
libvir: Remote error : Certificate's owner does not match the hostname
(localhost)
libvir: Remote error : unable to connect to 'localhost': Invalid
argument
error: failed to connect to the hypervisor

[root at xxx03 ~]# virsh -c  qemu+tls://xxx03.domainname.com list
libvir: error : could not connect to qemu://
error: failed to connect to the hypervisor

*** Port is available:
[root@ xxx03 ~]# netstat -nl | grep 16514
tcp        0      0 0.0.0.0:16514               0.0.0.0:*
LISTEN      

*** Also, a ssh does not work:
[root at xxx03 ~]# virsh -c  qemu+ssh://xxx03.domainname.com list
root at xxx03.domainname.com password: 
libvir: error : could not connect to qemu://
error: failed to connect to the hypervisor

** Connecting directly works:

[root@ xxx03 ~]# virsh  -c qemu:///system  list
 Id Name                 State
----------------------------------

** but not with the remote name like
[root@ xxx03 ~]# virsh  -c qemu://xxx03.domainname.com /system  list
libvir: error : could not connect to qemu://xxx03.domainname.com /system
error: failed to connect to the hypervisor




More information about the libvir-list mailing list