Xen hypervisor daemon error

I have installed Xen but i found this problem when i run virt-manager and i try to connect to Xen localhost:

Unable to open a connection to the Xen hypervisor/daemon.

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

Unable to open connection to hypervisor URI ‘xen:///’:
<class ‘libvirt.libvirtError’> unable to connect to ‘/var/run/libvirt/libvirt-sock’: Permission denied
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 486, in _open_thread
    None], flags)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 99, in openAuth
    if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
libvirtError: unable to connect to ‘/var/run/libvirt/libvirt-sock’: Permission denied
 

This is the solution that i have found:

cd /etc/xen/

and edit:

xend-config.sxp

activating this configuration:

(xend-http-server yes)
(xend-unix-server yes)

 

than reboot the computer and all goes right

now im tring to add new vm …

 

 

This entry was posted in General. Bookmark the permalink.