Bug 1130077
| Summary: | Unable to get the vm console while trying to connect to the KVM host through ssh option from remote virt-manager. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Udayendu Sekhar Kar <ukar> | ||||||||
| Component: | virt-manager | Assignee: | Giuseppe Scrivano <gscrivan> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||
| Severity: | urgent | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 7.0 | CC: | codong, dyuan, gscrivan, juzhou, lcui, mzhan, rpai, tzheng, ukar | ||||||||
| Target Milestone: | rc | Keywords: | Upstream | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2014-09-22 12:28:18 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Udayendu Sekhar Kar
2014-08-14 09:36:43 UTC
Created attachment 926726 [details]
Error message showing wheile trying to access the VM's console.
Created attachment 926727 [details]
Logs before using ssh-keygen for passwordless ssh.
Created attachment 926728 [details]
Logs after using ssh-keygen for passwordless ssh.
how do you run virt-manager? If you run virt-manager from a terminal, you could get the password prompt there. Hello Giuseppe,
Please find the reply to your below query:
>> how do you run virt-manager?
- On a client system virt-manager packages are installed.
- So just use 'Alt+F2' and run virt-manager to open the virt-manager gui.
- Then go to:
File -> Add Connection -> Hypervisor(QEMU/KVM) -> Enable "Connect to remote host" -> MEthod(SSH) -> Username (root) -> Hostname(remote KVM host IP where the VM is running)
Then try to connect.
These are the steps I am following and experiencing this issue as mentioned in the description of this bugzilla.
Feel free to let me know if you need more information or logs. Its 100% reproducible.
Regards,
Udayendu
this should not happen anymore with the upstream version as ssh connections were serialized. We are going to rebase virt-manager in RHEL-7.1 I test with virt-manager-0.10.0-20.el7.noarch on both hosts Steps 1. open virt-manager on client system # virt-manager 2. connect target host File -> Add connection -> check connect to remote host -> file hostname -> Click Connect 3. double click to open the guest 4. open ssh dialog will come out and need to type password Result: The ssh dialog will come out 4 times, always get the error msg in description: --- SSH password dialog could not grab the keyboard input.This might be caused by application such as screensaver, however it could also mean that someone may be eavesdropping on your session.Either close the application which grabs the keyboard or log out and log in again to prevent this from happening --- After input password 4 times, will connect console successfully. Cannot get the error msg like attachment. Also test with virt-manager-1.1.0-1.el7.noarch, just input password 4 times, don't get any error msg, can connect the console successfully. Hi, Udayendu: You cannot connect the console everytime? As my result, I can connect the console, could help me to check my steps are right? Hi, gscrivan could you provide some suggestions for my test in comment 9. I have tried several times here to connect trough ssh to another host but I couldn't reproduce the problem with virt-manager-1.1.0-1.el7.noarch. I didn't need to type my password 4 times to get it connected. Do you need to repeat it 4 times even if you type correctly your password the first time? (In reply to Giuseppe Scrivano from comment #11) > I have tried several times here to connect trough ssh to another host but I > couldn't reproduce the problem with virt-manager-1.1.0-1.el7.noarch. I > didn't need to type my password 4 times to get it connected. > > Do you need to repeat it 4 times even if you type correctly your password > the first time? It happens when I try to open a spice guest on remote host. it is not a bug, spice needs more ssh connections. The solution is to setup properly a ssh key for the ssh connection to the server. (In reply to Giuseppe Scrivano from comment #13) > it is not a bug, spice needs more ssh connections. The solution is to setup > properly a ssh key for the ssh connection to the server. Yes, I know it. But I think the problem in the description is that after input password several times, but cannot connect the guest. I use the same version with description, but I can connect the guest after input password. So I'm not sure my test steps are right. I could reproduce the problem after setting a higher latency on the connection (as CongDong suggested privately to me) and from a first sight, it looks like a race condition while opening more ssh tunnels. I will investigate better next week, for now I reassign it to me. I've looked more into this issue and the root cause doesn't seem easy to fix as this ssh-askpass error message can be raised any time a window is trying to get the focus, not only from virt-manager. It is highly suggested to use a password-less[1] login (really, nobody should want to type the same password so many times) or to setup a shared ssh connection[2]. 1) ssh-keygen ssh-copy-id user@host 2) Add something like the following: Host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p to the ~/.ssh/config file. Please refer to "man 5 ssh_config" for more details. (other details here: https://bugzilla.redhat.com/show_bug.cgi?id=811346) Given the above, I am going to close this as WONTFIX. |