Unable to connect Xend with virt-manager
The problem is with the xen config I think. I had a similar issue with connecting.
To solve this on you need to edit /etc/xen/xend-config.sxp, and uncomment the following line:
(xend-unix-server yes)
and then restart xend
http://www.xen-support.com/?p=338
Related videos on Youtube
Comments
-
Majid Azimi over 1 year
I have installed debian 6.0.1a. I have install all XEN stuff. including xen kernel, libvirtd, ... but when i want to connect xend, virt-manager shows me this:
Verify that:
- A Xen host kernel was booted
The Xen service has been started details:
Unable to open connection to hypervisor URI 'xen:///': unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 971, in _try_open None], flags) File "/usr/lib/python2.6/dist-packages/libvirt.py", line 111, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied here is uname output:
Linux debian 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
and also xend and libvirtd is runnig:
root@debian:/home/mazimi# /etc/init.d/libvirt-bin status Checking status of libvirt management daemon: libvirtd running. root@debian:/home/mazimi# /etc/init.d/xend start Starting Xen daemons: xenstored xenconsoled xend.
permissions for livbirt-sock:
root@debian:/home/mazimi# ls -alih /var/run/libvirt/ total 12K 671017 drwxr-xr-x 3 root root 4.0K Apr 15 13:54 . 654083 drwxr-xr-x 18 root root 4.0K Apr 15 13:54 .. 670901 srwxrwx--- 1 root libvirt 0 Apr 15 13:54 libvirt-sock 670928 srwxrwxrwx 1 root libvirt 0 Apr 15 13:54 libvirt-sock-ro 670870 drwxr-xr-x 2 root root 4.0K Apr 15 02:34 qemu
and also we have group named libvirt in
/etc/group
When running libvirtd with verbose mode it behaves kind of stange:
root@debian:/var/log/libvirt# /usr/sbin/libvirtd --verbose 17:26:55.841: warning : qemudStartup:1832 : Unable to create cgroup for driver: No such device or address 17:26:56.128: warning : lxcStartup:1900 : Unable to create cgroup for driver: No such device or address
and waits infinitely.
-
HUB about 13 yearsDid you check libvirtd is realy running? What about permissions on /var/run/libvirt/libvirt-sock?
-
Majid Azimi about 13 yearsit seems permissions are OK. I edited the question and added libvirtd and xend status. But it gives me the same error.
-
HUB about 13 yearsJust a guess: In /etc/xen/xend-config.sxp: (xend-unix-server yes) ?
-
Majid Azimi about 13 yearsI chnaged (xend-unix-server yes). but it doesn't work again.
-
VenomFangs over 9 yearsI was running a CentOS box and had similar issues. I found the root of my issue was I wasn't booting from a xen kernel. Had to update the default boot in
/boot/grub/menu.lst
and I was good.