Bug 872914

Summary: regression: virt-manager no longer uses ssh for vnc/spice connections
Product: [Fedora] Fedora Reporter: Matt Kinni <matt>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: berrange, crobinso, hbrock, jforbes, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-15 01:13:02 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 Flags
virt-manager.log none

Description Matt Kinni 2012-11-04 08:12:40 UTC
Description of problem:
I have virt-manager setup to connect to a remote server using qemu+ssh.

In versions 
> virt-manager-common-0.9.1-3.fc17.noarch
> virt-manager-0.9.1-3.fc17.noarch,

virt-manager would connect to the client GUI using the ssh connection, and I wouldn't have to forward port 5900 on the server (which I consider a security risk).

Now in versions
> virt-manager-0.9.4-2.fc17.noarch
> virt-manager-common-0.9.4-2.fc17.noarch

virt-manager always tries to connect to the client GUI using the configured port 5900, bypassing the SSH connection.  Everything else about virt-manager uses the SSH connection and thus I can configure my VM's and see their status etc, but the GUI console always falls back to port 5900.

I confirmed this with wireshark.

How reproducible:
always

Steps to Reproduce:
1. ensure that iptables is not forwarding the gui port (in my case 5900)
2. connect remotely with virt-manager using qemu+ssh
  
Actual results:
Can connect to libvirtd on the server over ssh, but opening the GUI tries to use port 5900

Expected results:
GUI session goes over ssh with everything else

Additional info:
An interesting thing I noticed was that virt-viewer was not affected by this regression.

eg. virt-viewer -c qemu+ssh://me@server:22/system centos6 WORKS
    virt-manager -c qemu+ssh://me@server:22/system centos6 connects fine, but display does not

Comment 1 Matt Kinni 2012-11-04 08:29:15 UTC
Created attachment 637907 [details]
virt-manager.log

Here I show the relevant portion of the user's virt-manager.log between the working version and the current version.

Comment 2 Cole Robinson 2012-12-17 01:24:23 UTC
Dirk, please provide the guest XML of an affected VM:

sudo virsh dumpxml <vmname>

Comment 3 Cole Robinson 2013-01-15 01:13:02 UTC
Closing as INSUFFICIENT_DATA. Dirk, if you are still affected by this bug, please reopen and provide the info requested in comment #1