Re: [virt-tools-list] virt-manager failing console connection

2010-06-22 Thread Cole Robinson
On 06/22/2010 01:01 PM, Ed wrote:
 Hi all,
 
 This is my first post here although I admit I did post this same 
 question on Linuxquestions.org with no success.  I hope you can help me 
 solve this as I am unable to create any VMs anymore.
 
 I have a KVM server and am trying to add a new VM. The problem is I am 
 unable to connect to the consle to finish the installation. Could 
 someone help me please?
 
 I have put the details of the steps I took and my ssh config file for 
 clarity. It seems I have a problem with a vnc 'security type'.
 
 Any help would be apreciated!
 
 ssh config
 --
 Port 2200
 Protocol 2
 HostKey /etc/ssh/ssh_host_rsa_key
 HostKey /etc/ssh/ssh_host_dsa_key
 UsePrivilegeSeparation yes
 KeyRegenerationInterval 3600
 ServerKeyBits 768
 SyslogFacility AUTH
 LogLevel INFO
 LoginGraceTime 120
 PermitRootLogin yes
 StrictModes yes
 RSAAuthentication yes
 PubkeyAuthentication yes
 IgnoreRhosts yes
 RhostsRSAAuthentication no
 HostbasedAuthentication no
 PermitEmptyPasswords no
 ChallengeResponseAuthentication no
 PasswordAuthentication yes
 X11Forwarding no
 X11DisplayOffset 10
 PrintMotd no
 PrintLastLog yes
 TCPKeepAlive yes
 AcceptEnv LANG LC_*
 UsePAM yes
 
 client
 --
 $ virt-manager -c qemu+ssh://r...@phoenix:2200/system
 
 [Prompt for password and connects OK]
 
 KVM Server
 --
 # virt-install --connect qemu:///system -n web -r 1024 --vcpus=1 -f 
 /dev/vms/web_os -s 5 -c ~ecosta/debian-504-amd64-netinst.iso --vnc 
 --noautoconsole --os-type linux --os-variant debianLenny --accelerate 
 --network network:default --hvm
 
 Starting install...
 Creating domain... 0 B 00:00
 Domain installation still in progress. You can reconnect to
 the console to complete the installation process.
 
 client
 --
 I can see the new VM but when I chose to open the console, the password 
 is asked again and again without a successful connection to the console. 
 The following is what I found in the log.
 
 virt-manager log:
 
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:586) 
 Graphics console configured at vnc://r...@phoenix:2200:5902
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:599) 
 Starting connect process for phoenix:2200 5902
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:535) 
 Creating SSH tunnel: ['ssh', 'ssh', '-p', '2200', '-l', 'root', 
 'phoenix', nc -q 21 | grep -q 'requires an argument';if [ $? -eq 0 ] 
 ; then   CMD='nc -q 0 127.0.0.1 5902';else   CMD='nc 127.0.0.1 
 5902';fi;$CMD;]
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:550) Tunnel 
 PID 23 FD 9746
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (engine:413) window 
 counter incremented to 2
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:586) 
 Graphics console configured at vnc://r...@phoenix:2200:5902
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:599) 
 Starting connect process for phoenix:2200 5902
 [Mon, 21 Jun 2010 12:36:22 virt-manager 9365] DEBUG (console:603) Tunnel 
 already open, skipping open_tunnel.
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:650) Got 
 credential request enum VNC_DISPLAY_CREDENTIAL_CLIENTNAME of type 
 VncDisplayCredential
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:559) 
 Shutting down tunnel PID 9746 FD 23
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:449) VNC 
 disconnected
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] WARNING (console:476) 
 Retrying connection in 125 ms
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:586) 
 Graphics console configured at vnc://r...@phoenix:2200:5902
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:599) 
 Starting connect process for phoenix:2200 5902
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:535) 
 Creating SSH tunnel: ['ssh', 'ssh', '-p', '2200', '-l', 'root', 
 'phoenix', nc -q 21 | grep -q 'requires an argument';if [ $? -eq 0 ] 
 ; then   CMD='nc -q 0 127.0.0.1 5902';else   CMD='nc 127.0.0.1 
 5902';fi;$CMD;]
 [Mon, 21 Jun 2010 12:36:29 virt-manager 9365] DEBUG (console:550) Tunnel 
 PID 23 FD 9765
 
 client
 --
 I then tried to make an ssh tunnel and use vncviewer to connect:
 
 $ ssh -p 2200  r...@phoenix -N -T -L 5902:localhost:5902
 
 $ vncviewer localhost:2
 Connected to RFB server, using protocol version 3.8
 Server did not offer supported security type
 
 $ ssvncviewer localhost:2
 
 Proto: RFB 003.008
 
 Connected to RFB server, using protocol version 3.8
 Server did not offer supported security type:
sectype[0] 19
 Security-Type: 0 (rfbSecTypeInvalid)  Latency: 12.40 ms
 ShmCleanup called
 
 VNC Viewer exiting.
 
 ---
 
 That's it. I'm out of ideas.  If you do know of a way to install a 
 debian box without the need for vnc I'm all ears! :)
 

Hmm, not really sure, haven't seen that 'security type' error before.
Maybe try connecting to the remote VNC using virt-viewer?


Re: [virt-tools-list] virt-tools-list Digest, Vol 12, Issue 11

2010-06-22 Thread Michael Jones



On 06/21/2010 10:59 PM, Dustin Xiong wrote:
   






Dear all:

I found two defects of the virt-manager-0.8.4. When I add a remote connection through 
ssh, the OpenSSH dialogbox asked me to input the password. Then i want to find the 
password, but the dialogbox always capture the focus, I can't move the dialogbox or do 
anything else. I think this is a unfriendly design. Then I want to cancel the dialogbox, 
click the Cancel button, then the dialogbox will temporarily disappear and 
then appear.  Until I click the cancel button 3 times the dialogbox completely 
disappeared  and the virt-manager told me that the connection failed. I think this is 
also a unfriendly design.

 


I've been frustrated with this issue as well.

We don't have any control over the behavior of the SSH dialog, since it
is launched directly by the ssh client. So both these issues should be
raised with openssh.

Thanks,
Cole
   


Ahh, that's unfortunate. I wonder, is there any way to cause the 
virt-manager to store the entered password in the keyring? Or would that 
need to be handled by openssh as well?


--Michael Jones

___
virt-tools-list mailing list
virt-tools-list@redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list