[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Virt-manager does not connect to libvirt/Xen? Xen 4.1.5 installed from source on Fedora 17.



Hello, 

I posted this yesterday to the Xen-devel list, posting it additionally to the fedoraproject list too.
My problem is Virt-manager is unable to connect to the hypervisor (explained below). However, xm list, xm info work fine. 

and built/installed Xen from source, using grub2-mkconfig to rebuild grub and was able to reboot 
Dom0 with Xen successfully. 

Then I installed packages for virt-manager.
# yum install libvirt-daemon-xen python-virtinst libvirt-daemon-config-network libvirt-daemon-driver-network virt-manager virt-viewer
Everything got installed except for one package. Got an error message "No package libvirt-daemon-driver-network available."

Now when I start virt-manager, it is unable to connect to Xen and fails with the following error. 
# virt-manager
   Unable to connect to libvirt.

  unable to connect to 'localhost:8000': Connection refused

  Verify that:
   - A Xen host kernel was booted
   - The Xen service has been started

  Libvirt URI is: xen:///

  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/connection.py", line 1027, in _open_thread
     self.vmm = self._try_open()
    File "/usr/share/virt-manager/virtManager/connection.py", line 1009, in _try_open
      flags)
    File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
      if ret is None:raise libvirtError('virConnectOpenAuth() failed')
  libvirtError: unable to connect to 'localhost:8000': Connection refused

# xm list and # xm info work fine. This means xend is running right ?

Added (xend-unix-server yes) to xen configuration file xend-config.sxp
and added export VIRSH_DEFAULT_CONNECT_URI="xen:///" to root's .bashrc. 
Still no luck.

This might help, # rpm -qa | grep libvirt
libvirt-daemon-xen-0.9.11.9-1.fc17.x86_64
libvirt-daemon-0.9.11.9-1.fc17.x86_64
libvirt-0.9.11.9-1.fc17.x86_64
libvirt-python-0.9.11.9-1.fc17.x86_64
libvirt-daemon-config-network-0.9.11.9-1.fc17.x86_64
libvirt-daemon-config-nwfilter-0.9.11.9-1.fc17.x86_64
libvirt-client-0.9.11.9-1.fc17.x86_64

So in summary, 
Built and installed from source Xen 4.1.5, on Fedora 17. 
Can boot into Xen Dom0, xm works, xend running, But virt-manager unable to connect to Xen! 

Please help. 
I have tried to give as much info as I could. Do let me know if you need more info. 

--
Ranjith krishnan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.