Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Remote Virt-Manager connection to KVM host

  1. #1
    Join Date
    Jun 2008
    Beans
    9

    Remote Virt-Manager connection to KVM host

    Hi guys, im trying to setup virt-manager to connect to a remote kvm host on private network.

    Both systems are running ubuntu 10.10 x64 and fully updated, have set root password and ssh public keys.

    But keep getting the dreaded;-

    Unable to open a connection to the libvirt management daemon

    error message, the interwebz is full of reports of this, but no solutions.
    I dont want to x forward virt-manager all the time, and i really dont want to switch over to fedora/rhel.

    Thanks Iain

  2. #2
    Join Date
    Oct 2006
    Location
    Lüneburg, Germany
    Beans
    199

    Re: Remote Virt-Manager connection to KVM host

    Can you try
    Code:
    /etc/init.d/libvirt-bin restart
    on the KVM host?

  3. #3
    Join Date
    Jun 2008
    Beans
    9

    Re: Remote Virt-Manager connection to KVM host

    Thanks for your reply.

    Restarts just fine, but still can't connect through virt-manager......

  4. #4
    Join Date
    Nov 2006
    Location
    Radomlje, Slovenia
    Beans
    Hidden!
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Remote Virt-Manager connection to KVM host

    Quote Originally Posted by iainstott View Post
    Thanks for your reply.

    Restarts just fine, but still can't connect through virt-manager......
    I don't know from head anymore, but does computer ask you for password when connected to remote system. If not you must install a package, which I cannot found reference now. I think it is suggested on error dialog when connection fails.

    by
    TheR

  5. #5
    Join Date
    Oct 2006
    Location
    Lüneburg, Germany
    Beans
    199

    Re: Remote Virt-Manager connection to KVM host

    If you're connecting to the KVM host for the first time, you have to type in "yes" first on the client; then a second dialogue comes up where you have to type in the actual password. Maybe you forgot to type in "yes"?

  6. #6
    Join Date
    Jun 2008
    Beans
    9

    Re: Remote Virt-Manager connection to KVM host

    Thanks for your replys guys.

    Virt-manager doesnt ask for a password, just comes up with the message

    Unable to open a connection to the libvirt management daemon.

    Libvirt URI is: qemu+ssh://root@192.168.1.2/system

    Verify that:
    - The 'libvirtd' daemon has been started

    cannot recv data: No protocol specified
    Error: Can't open display: :0.0
    Host key verification failed.

    : Connection reset by peer

    Traceback (most recent call last):
    File "/usr/local/share/virt-manager/virtManager/connection.py", line 1022, in _try_open
    None], flags)
    File "/usr/lib/python2.6/dist-packages/libvirt.py", line 111, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
    libvirtError: cannot recv data: No protocol specified
    Error: Can't open display: :0.0
    Host key verification failed.

    : Connection reset by peer
    Have set ssh public key, root password, installed ssh-askpass which it has been throwing up on some error messages at the bottom.
    Have compiled the new virt-manager directly from the website.

    I had it working straight away through opensuse 11.4 live, without any of the modifications to the setup mentioned above.

    Going to install fedora 15 alpha on spare partition tonight to see if that works seeing as its rhel based and main distro for kvm related packages.

    If not then might see if theres a newer libvirt package availiable than the one in ubuntu repos and compile it from source on my server.

    Thanks Iain


    EDIT:- Forgot to add i can open terminal issue
    $virsh --connect qemu+ssh://192.168.1.2/system
    VIRSH# list --all
    and it be connected to the remote server, so i know there arent any connectivity issues
    Last edited by iainstott; March 21st, 2011 at 01:59 PM.

  7. #7
    Join Date
    Nov 2007
    Beans
    4

    Re: Remote Virt-Manager connection to KVM host

    Hi,

    I've had similar problems to this after testing KVM and Virt Manager.

    I'm certainly no expert on this but doing the following on the client has enabled me to get Virt Manager working (this is just from notes I have made):

    Virt-manager on a clean ubuntu install (client):

    1. Install virt-manager
    2. Install ssh-askpass
    3. Install AND log in via virt-viewer
    4. Reboot
    5. Run virt-manager

    Virt Manager now working..

    Hope this helps

    Edit: this was a minimal Ubuntu install. The host was Debian Lenny

  8. #8
    Join Date
    Jun 2008
    Beans
    9

    Re: Remote Virt-Manager connection to KVM host

    Quote Originally Posted by w4rren View Post
    Hi,

    I've had similar problems to this after testing KVM and Virt Manager.

    I'm certainly no expert on this but doing the following on the client has enabled me to get Virt Manager working (this is just from notes I have made):

    Virt-manager on a clean ubuntu install (client):

    1. Install virt-manager
    2. Install ssh-askpass
    3. Install AND log in via virt-viewer
    4. Reboot
    5. Run virt-manager

    Virt Manager now working..

    Hope this helps

    Edit: this was a minimal Ubuntu install. The host was Debian Lenny
    Thank you for your reply, but still no joy.
    Really am at a lose end now

  9. #9
    Join Date
    Nov 2007
    Beans
    4

    Re: Remote Virt-Manager connection to KVM host

    Quote Originally Posted by iainstott View Post
    Thank you for your reply, but still no joy.
    Really am at a lose end now
    Have you tried deleting all the ssh keys in your client (including root)?

    I have had to do this as well in the past.

  10. #10
    Join Date
    Jun 2008
    Beans
    9

    Re: Remote Virt-Manager connection to KVM host

    Quote Originally Posted by w4rren View Post
    Have you tried deleting all the ssh keys in your client (including root)?

    I have had to do this as well in the past.
    ~/.ssh/known_hosts ???? Or other????

    Sorry am quite a noob when it comes to linux.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •