Re: virt-manager fails to connect to remote server

2012-07-09 Thread Gary Dale

On 09/07/12 03:23 AM, Cam Hutchison wrote:

Gary Dale  writes:


On 08/07/12 09:01 PM, Davi Garcia wrote:

Hey,

On Sun, Jul 8, 2012 at 5:45 PM, Gary Dale   wrote:

Any ideas?

This looks similar to bug #590649 [1]. Have you tried to install "ssh-askpass"?

[1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590649

[]s,


When I run it with ssh-askpass installed, I get:
Unable to connect to libvirt.
Cannot recv data: Host key verification failed. : Connection reset by peer

Given what you have said in your other email, where you have reinstalled
Debian on the server, and the above error message, it looks like you have
an old host key in your ~/.ssh/known_hosts or /etc/ssh/ssh_known_hosts
(you may not have the latter).

Is it possible that when you manually ssh to test, you are using a
different host name to what you are using in the qemu+ssh url? e.g.
one is a fully-qualified host name, and one is not? Regardless, check
your known_hosts files for all references to the server hostname and
IP address, delete those lines and manually ssh in again using the
same hostname as is in your qemu+ssh URL.


I'd thought of that. I did delete my known_hosts file when I brought up 
the new server - I don't have that many known_hosts that I connect to, 
so recreating it isn't a problem.


I don't have the /etc/ssh/known_hosts file.

However, thanks to your suggestion, I removed the .local that 
virt-manager tagged on to the end of my server name and I got the 
connection!


Thanks.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ffaf3c1.5050...@rogers.com



Re: [Bulk] Re: virt-manager fails to connect to remote server

2012-07-09 Thread Chris Davies
Gary Dale  wrote:
> Yes, Libvirtd is running.

Your garydale account is authorised to talk to libvirtd on that remote host?
Chris


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/m5vqc9xsuo@news.roaima.co.uk



Re: virt-manager fails to connect to remote server

2012-07-09 Thread Cam Hutchison
Gary Dale  writes:

>On 08/07/12 09:01 PM, Davi Garcia wrote:
>> Hey,
>>
>> On Sun, Jul 8, 2012 at 5:45 PM, Gary Dale  wrote:
>>> Any ideas?
>> This looks similar to bug #590649 [1]. Have you tried to install 
>> "ssh-askpass"?
>>
>> [1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590649
>>
>> []s,
>>
>When I run it with ssh-askpass installed, I get:

>Unable to connect to libvirt.

>Cannot recv data: Host key verification failed. : Connection reset by peer

Given what you have said in your other email, where you have reinstalled
Debian on the server, and the above error message, it looks like you have
an old host key in your ~/.ssh/known_hosts or /etc/ssh/ssh_known_hosts
(you may not have the latter).

Is it possible that when you manually ssh to test, you are using a
different host name to what you are using in the qemu+ssh url? e.g.
one is a fully-qualified host name, and one is not? Regardless, check
your known_hosts files for all references to the server hostname and
IP address, delete those lines and manually ssh in again using the
same hostname as is in your qemu+ssh URL.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4b99.4ffa86fc.ef...@xionine.xdna.net



Re: [Bulk] Re: virt-manager fails to connect to remote server

2012-07-08 Thread Gary Dale

On 08/07/12 11:36 PM, Davi Garcia wrote:

Hey,

On Mon, Jul 9, 2012 at 12:21 AM, Gary Dale  wrote:

Verify that the 'libvirtd' daemon is running on the remote host.

Did you check if the 'libvirtd' daemon was running properly? You can
use command "ps aux | grep libvirt | grep -v grep". Also, there is
another bug with similar description, however it looks like a false
positive: #659956 [1].

[1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659956

[]s,


Yes, Libvirtd is running.

I actually had this running a while back on the same hardware configured 
as a desktop, then moved my old server's drives over to it and started 
running it as a server. This involved a clean install of Debian onto the 
boot SSD (mounted as /), with the VMs on a /home RAID array. I linked 
/var/lib/libvirt/images to /home/virtual and have been trying to get the 
connection working.


What was easy originally now seems very difficult.

The only thing that has changed on my desktop, apart the usual Wheezy 
updates, is I have installed qemu-kvm and librbd1 from SID to fix a 
problem I was having with running local VMs. The server hardware change 
was to give me a server that could run VMs (mainly an AMD-940 Phenom II 
instead of my old Athlon64).



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ffa5733.9000...@rogers.com



Re: virt-manager fails to connect to remote server

2012-07-08 Thread Davi Garcia
Hey,

On Mon, Jul 9, 2012 at 12:21 AM, Gary Dale  wrote:
>
> Verify that the 'libvirtd' daemon is running on the remote host.

Did you check if the 'libvirtd' daemon was running properly? You can
use command "ps aux | grep libvirt | grep -v grep". Also, there is
another bug with similar description, however it looks like a false
positive: #659956 [1].

[1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659956

[]s,
Davi Vercillo C. Garcia

 Phone:  +55 (21) 8193-0132
 Skype:  davivcgarcia
 Web: http://davigarcia.me



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/calfr+xuxjas7t-aaesmxnu8afss4c0ypauo7ytzuikke7xa...@mail.gmail.com



Re: virt-manager fails to connect to remote server

2012-07-08 Thread Gary Dale

On 08/07/12 09:01 PM, Davi Garcia wrote:

Hey,

On Sun, Jul 8, 2012 at 5:45 PM, Gary Dale  wrote:

Any ideas?

This looks similar to bug #590649 [1]. Have you tried to install "ssh-askpass"?

[1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590649

[]s,


When I run it with ssh-askpass installed, I get:

Unable to connect to libvirt.

Cannot recv data: Host key verification failed. : Connection reset by peer

Verify that the 'libvirtd' daemon is running on the remote host.


In the details I get:

Unable to connect to libvirt.

Cannot recv data: Host key verification failed. : Connection reset by peer

Verify that the 'libvirtd' daemon is running on the remote host.

Libvirt URI is: qemu+ssh://garydale@TheLibrarian.local/system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1185, 
in _open_thread

self.vmm = self._try_open()
  File "/usr/share/virt-manager/virtManager/connection.py", line 1167, 
in _try_open

flags)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Cannot recv data: Host key verification failed. : 
Connection reset by peer



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ffa4e43.4090...@rogers.com



Re: virt-manager fails to connect to remote server

2012-07-08 Thread Davi Garcia
Hey,

On Sun, Jul 8, 2012 at 5:45 PM, Gary Dale  wrote:
> Any ideas?

This looks similar to bug #590649 [1]. Have you tried to install "ssh-askpass"?

[1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590649

[]s,
Davi Vercillo C. Garcia

 Phone:  +55 (21) 8193-0132
 Skype:  davivcgarcia
 Web: http://davigarcia.me



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CALfR+XXF5=m9d9-1rptJP0TJX++dCcxdHzyZVp3A=g3mbb7...@mail.gmail.com



virt-manager fails to connect to remote server

2012-07-08 Thread Gary Dale

I'm getting a dialogue box message:

Unable to connect to libvirt.
You need to install openssh-askpass or similar to connect to this host.

However, my ssh connection doesn't use a password.

My workstation is running Debian/Wheezy and virt-manager can connect to 
VMs on it. Virt-manager also apparently detects the server, which is 
running Debian/Squeeze, as it shows up as the only option when I create 
a connection to a remote host.


The error dialogue's details box contains the following:

Unable to connect to libvirt.

You need to install openssh-askpass or similar to connect to this host.

Libvirt URI is: qemu+ssh://garydale@TheLibrarian.local/system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1185, 
in _open_thread

self.vmm = self._try_open()
  File "/usr/share/virt-manager/virtManager/connection.py", line 1167, 
in _try_open

flags)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Cannot recv data: ssh_askpass: exec(/usr/bin/ssh-askpass): 
No such file or directory

Host key verification failed. : Connection reset by peer


To be clear, I have no trouble connecting to the server using ssh using 
the "garydale" account.


Any ideas?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ff9f17c.3000...@rogers.com