When I try to connect to my XEN domain with virtmanager on Ubuntu 14.04 I just get the following error:
Unable to connect to libvirt.
internal error: libxenlight state driver is not active
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/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: internal error: libxenlight state driver is not active
Mm. The same bug hit me and my own suggestion did not work. I already had the latest version.
Try this:
Start Nautilus as root in terminal:
Find and copy the file
/etc/xen/xend-config.sxp
to/etc/xen/xend-config.sxp.backup
:Open the file
/etc/xen/xend-config.sxp
withgedit
ornano
:Find and uncomment the following lines:
xend-unix-server no
, and change it toxend-unix-server yes
xend-unix-path /var/lib/xend/xend-socket
, and change it toxend-unix-path /var/lib/xend/xend-socket
Save the edited file and exit gedit or nano.
Restart
libvirt-bin
,xen
andxendomains
services:I did the same and virt-manager connected.
The above instructions are largely based on a review by Gizmo Chicken on virt-manager on Ubuntu's Software Centre.
This issue shows up here:
http://lists.xen.org/archives/html/xen-devel/2012-12/msg01867.html
And is maybe related to the issue here:
https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/915954
try updating virt-manager.
ubuntuupdates.org
I had this error and discovered that it was because the Xen kernel was not selected at boot.
To prove this, catch the grub boot prompt and ensure that the Xen kernel is selected.
Assuming this now works, you need to check with your specific distro how to make this persistent. For Debian Jessie I used:
then