Xen + Virt-Manager: Unable to connect to 'localhost:8000': Connection refused
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt |
New
|
Medium
|
Unassigned | ||
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Stefan Bader | ||
virt-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The error message dialog contains this text:
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 connect to 'localhost:8000': Connection refused
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
-------
I have just used Aptitude to install Xen-4.1 and the Libvirt package. There are two bugs here:
Bug #1. I must modify /etc/grub.d by hand:
mv 10_linux 20_linux
mv 20_linux_xen 10_linux_xn
update-grbu2
reboot
This should have been done by Apt-get, I had to do it by hand. Once this is done, I can verify the hypervisor is running with the command:
xl info
Bug #2. Virt-manager does not work "out of the box". I cannot use Virsh, Virt-manager, or even Virt-install. Executing Virt-install returns this error:
ERROR unable to connect to 'localhost:8000': Connection refused
Can anyone please suggest to me a way to solve this issue?
In any case, the fact that Ubuntu's Apt-get installs a Xen/Virt-manager configuration that does not function properly without tweaking, I believe, is definitely a bug.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: virt-manager 0.9.0-1ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-14-
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Fri Jan 13 20:10:40 2012
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: virt-manager
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (90 days ago)
summary: |
- Unable to connect to 'localhost:8000': Connection refused + Xen + Virt-Manager: Unable to connect to 'localhost:8000': Connection + refused |
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
I have found a workaround:
In the /etc/xen/ xend-config. sexp file, find and uncommont the lines: unix-server no) xend/xend- socket) unix-server yes)
(xend-
(xend-unix-path /var/lib/
and change the "(xend-unix-server no)" line to "yes":
(xend-
Then reboot.
I request Ubuntu package maintainers add some kind of installation task to the "libvirt" or "virt-manager" package that automatically modifies the "/etc/xen/ xend-config. sexp" file so long as the file has not been modified since the time it was installed.