Bug 477101 - unable to open connection to libvirt management daemon
Summary: unable to open connection to libvirt management daemon
Keywords:
Status: CLOSED DUPLICATE of bug 459665
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 10
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-19 03:24 UTC by Gary Scarborough
Modified: 2009-02-08 22:16 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-08 22:16:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gary Scarborough 2008-12-19 03:24:08 UTC
Description of problem:

unable to open connection to libvirt management daemon.  Unable to connect to Fedora 10 install from Fedora 9 machine.  Unable to connect to Fedora 9 machine from Fedora 10.  No connection problem between Fedora 9 machine and CentOS 5.2

Version-Release number of selected component (if applicable):

virtual machine manager 0.6.0
libvirt-0.5.0-1.fc10.i386

How reproducible:

always

Steps to Reproduce:
1. start virtual machine manager
2. add connection
3. Qemu, remote connection over ssh, IP address
  
Actual results:

when connecting from F9 to F10 error box with following message:

Unable to open connection to hypervisor URI 'qemu+ssh://root.100.89/system':
<class 'libvirt.libvirtError'> Connection reset by peer
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 439, 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: Connection reset by peer


when connecting from F10 to F9 error:


Unable to open connection to hypervisor URI 'xen+ssh://root.100.83/':
<class 'libvirt.libvirtError'> Connection reset by peer
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 483, 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: Connection reset by peer


Expected results:

completed connection


Additional info:

Comment 1 Orion Poplawski 2009-02-06 22:57:23 UTC
Seeing the same thing trying to connect to my CentOS 5.2 Xen server:

Unable to open connection to hypervisor URI 'xen+ssh://root@hammer/':
<class 'libvirt.libvirtError'> cannot recv data: Connection reset by peer
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 483, in _open_thread
    None], flags)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 98, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: cannot recv data: Connection reset by peer

libvirt-0.6.0-1.fc10.i386

Problem seems to be related to asking for the root ssh-key pashprase and or root's password on remote, which I'm never prompted for.  strace seems to show a Gtk error for ssh-askpass:

20646 write(2, "\n(ssh-askpass:20646): Gtk-WARNING **: cannot open display: :0.0\n"..., 64) = 64


If I start virt-manager as root rather than as myself and enter root's password, I can connect fine.

Comment 2 Cole Robinson 2009-02-08 22:16:27 UTC

*** This bug has been marked as a duplicate of bug 459665 ***


Note You need to log in before you can comment on or make changes to this bug.