Unable to connect Xend with virt-manager

Posted by Majid Azimi on Server Fault See other posts from Server Fault or by Majid Azimi
Published on 2011-04-14T22:45:14Z Indexed on 2012/04/01 11:32 UTC
Read the original article Hit count: 637

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about xen

Related posts about libvirt