“Unable to connect to libvirt” when using virt-manager with the xl toolstack and Xen 4.2.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
xen (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
SUMMARY: I get “Unable to connect to libvirt” when using virt-manager with the xl toolstack and Xen 4.2.1
BACKGROUND: I am testing a fully updated (as of May 30) installation of Ubuntu 13.10 that includes the following packages:
libvirt (1.0.5-0ubuntu1)
virt-manager (0.9.5-1ubuntu1)
xen-hypervisor-
Upon setting TOOLSTACK=xm in /etc/default/xen (as well as making a few needed tweaks to /etc/xen/
I guess that I should be happy that the xm toolstack still works with Xen 4.2.1 and quit while I'm ahead, but...
According to libvirt's documentation:
"libxl: Starting with Xen 4.2, the legacy XenD/xm toolstack is deprecated in favor of libxl, also commonly called libxenlight. libvirt supports this new Xen toolstack via the libxl driver. If XenD is enabled, the legacy xen driver consisting of the above mentioned channels will be used. If XenD is disabled, the libxl driver will be used."
See http://
In view of the above, I attempted to use xl (instead of xm) by setting TOOLSTACK=xl in /etc/default/xen. And after doing so (both with and without, the above mentioned tweaks to /etc/xen/
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/
self.vmm = self._try_open()
File "/usr/share/
flags)
File "/usr/lib/
if ret is None:raise libvirtError(
libvirtError: unable to connect to 'localhost:8000': Connection refused
Here the output from var/log/
2013-05-18 05:44:47.614+0000: 1304: info : libvirt version: 1.0.5
2013-05-18 05:44:47.614+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.615+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.617+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.618+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.618+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.619+0000: 1304: error : xenHypervisorDo
2013-05-18 05:44:47.635+0000: 1304: error : do_connect:103 : internal error failed to connect to xend
2013-05-18 05:44:47.636+0000: 1304: error : xenDaemonOpen_
2013-05-18 05:45:13.647+0000: 1289: error : virNetSocketRea
description: | updated |
summary: |
- “Unable to connect to libvirt” when using xl toolstack with Xen 4.2.1 + “Unable to connect to libvirt” when using virt-manager with the xl + toolstack and Xen 4.2.1 |
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Please could you check /var/log/libvirt/ and post anything relevant?
Did you get the documentation with the XenD/xm deprecation warning from somewhere tied to this version of libvirt, or from the website in general? Are you able to check that the documentation you found applies to the version of libvirt that you're using, please?
It's probably also worth checking whether this bug affects upstream libvirt or just the Ubuntu packaging.
Once done, please change the bug status back to New. Thanks!