virt-manager: socket closed unexpectedly

Bug #246246 reported by tnomolle
2
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: virt-manager

Hi there,

Currently i'm testing out XEN as an alternative to vmware as our hypervisor, but it seemed that there wasn't any good GUI's around until i stubled into virt-manager, however i'm having a bit trouble getting it to work. Below is the last entries from my client machines virt-manager log.

[Mon, 07 Jul 2008 13:45:18 virt-manager 11398] DEBUG (connection:318) Scheduling background open thread for xen+ssh://192.168.11.7/
[Mon, 07 Jul 2008 13:45:18 virt-manager 11398] DEBUG (connection:325) Background thread is running
[Mon, 07 Jul 2008 13:45:19 virt-manager 11398] ERROR (connection:350) Unable to open connection to hypervisor URI 'xen+ssh://192.168.11.7/':
<class 'libvirt.libvirtError'> virConnectOpenReadOnly() failed socket closed unexpectedly
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 332, in _open_thread
    self.vmm = libvirt.openReadOnly(self.uri)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 144, in openReadOnly
    if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirtError: virConnectOpenReadOnly() failed socket closed unexpectedly

[Mon, 07 Jul 2008 13:45:19 virt-manager 11398] DEBUG (connection:354) Background open thread complete, scheduling notify
[Mon, 07 Jul 2008 13:45:19 virt-manager 11398] DEBUG (connection:363) Notifying open result

The client system is a kubuntu 8.04 (2.6.24-19-generic) with the following packages installed.
troels@tenkubt002:~$ dpkg -l | grep virt
ii libvirt-bin 0.4.0-2ubuntu8 the programs for the libvirt library
ii libvirt0 0.4.0-2ubuntu8 library for interfacing with different virtu
ii python-libvirt 0.4.0-2ubuntu8 libvirt python bindings
ii python-virtinst 0.300.2-0ubuntu6 program and library to install virtual guest
ii virt-manager 0.5.3-0ubuntu10 desktop application for managing virtual mac
ii virt-viewer 0.0.2-1ubuntu1 Displaying the graphical console of a virtua

The XEN server is running Debian etch (kernel 2.6.18-6-xen-686) with the following packages installed.
ii libvirt-bin 0.4.0-1~bpo40+1 the programs for the libvirt library
ii libvirt0 0.4.0-1~bpo40+1 library for interfacing with differeny virtu
ii python-libvirt 0.4.0-1~bpo40+1 libvirt python bindings
ii virtinst 0.300.1-5~bpo40+1 Programs to create and clone virtual machine

I have verified that the virtd daemon is running.
landebnxvms007:~# /etc/init.d/libvirt-bin status
Checking status of libvirt management daemon: libvirtd running.

There is a ssh trust relationship established between the 2 hosts and it works.
Jul 7 13:44:42 landebnxvms007 sshd[17697]: Accepted publickey for root from 192.168.11.2 port 40389 ssh2
Jul 7 13:44:42 landebnxvms007 sshd[17699]: (pam_unix) session opened for user root by (uid=0)

The xend service is also running well.
landebnxvms007:~# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 109 1 r----- 2342.7
tendappxvmg001 34 127 1 -b---- 25.8
tenfedcxvmg002 37 127 1 ------ 4755.0
tengutsxvmg003 33 127 1 -b---- 27.6

/etc/xen/xend-config.sxp
(xend-http-server yes)
(xend-unix-server yes) # This is the interresting one right, when we working with virt-manager ?
(xend-tcp-xmlrpc-server yes)
(xend-tcp-xmlrpc-server-address '0.0.0.0')
(xend-unix-xmlrpc-server yes)
(xend-relocation-server yes)
(xend-unix-path /var/lib/xend/xend-socket)

Now i'm stuck, and haven't got anymore ideas to what I should check for :-).

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 246246] [NEW] virt-manager: socket closed unexpectedly

On the remote machine, can you get a list of Xen domains using virsh?
Something like "virsh -c xen:/// list --all" should do it.

 status incomplete

Changed in virt-manager:
status: New → Incomplete
Revision history for this message
tnomolle (tnormolle) wrote :

Hi Soren,

Virsh gives this output:

landebnxvms007:/home/troels# virsh -c xen:/// list --all
libvir: error : could not connect to xen:///
error: failed to connect to the hypervisor

landebnxvms007:/home/troels# dpkg -l | grep libvirt
ii libvirt-bin 0.4.0-1~bpo40+1 the programs for the libvirt library
ii libvirt0 0.4.0-1~bpo40+1 library for interfacing with differeny virtu
ii python-libvirt 0.4.0-1~bpo40+1 libvirt python bindings

Maby this version of virsh is just broken?, there is a newer version in SID and lenny is it possible to use one of them?.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in virt-manager (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.