[Fedora-xen] Virt-manager does not connect to libvirt/Xen? Xen 4.1.5 installed from source on Fedora 17.
ranjith krishnan
ranjithkrishnan1 at gmail.com
Tue Jun 18 23:05:52 UTC 2013
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.
So I followed the guide
http://wiki.xen.org/wiki/Xen_4.2_Build_From_Source_On_RHEL_CentOS_Fedora
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 ?
Did some searching, found an old thread
http://old-list-archives.xenproject.org/xen-users/2010-06/msg00880.html
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/xen/attachments/20130618/5fc0a94b/attachment.html>
More information about the xen
mailing list