Bug 723315 - virt-install should allow vnc listen address option
virt-install should allow vnc listen address option
Product: Virtualization Tools
Classification: Community
Component: virtinst (Show other bugs)
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Cole Robinson
Depends On:
  Show dependency treegraph
Reported: 2011-07-19 14:21 EDT by Drew Peterson
Modified: 2011-07-19 15:47 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-07-19 15:47:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Drew Peterson 2011-07-19 14:21:18 EDT
Description of problem: 
By default, virt-install sets up vnc to listen on localhost only (which is good for security obviously). However, this makes it very difficult to perform interactive installs over ssh, because connecting over vnc is not possible without first destroying the vm and editing the config to change the listen address.
This also has the side effect of forcing us to specify a cdrom drive or iso image as the boot media in the config file, as using -c or --location with virt-install only works on the initial boot.

Version-Release number of selected component (if applicable):

How reproducible:
Create a virtual machine with virt-install over ssh, installing from iso medium or similar and enabling vnc.

Steps to Reproduce:
1. connect to host via ssh
2. run virt-install with -vnc switch
3. try to connect to host:display from another machine in the network
Actual results:
connection refused

Expected results:
connection not refused

Additional info:
This issue is personally annoying to me, but I rated it low because it is a feature request and not a bug.
Comment 1 Drew Peterson 2011-07-19 14:23:25 EDT
I'm silly, under "How reproducable" it should say "consistent".
Comment 2 Cole Robinson 2011-07-19 15:47:06 EDT
For one thing, virt-viewer and virt-manager know how to tunnel VNC over an ssh connection, so having listen=localhost doesn't impact getting remote VNC access.

Just try it with a remote VM with listen=

virt-viewer --connect qemu+ssh://root@$remotehost/system $vmname

Additionally, virt-install does allow specifying a manual vnc listen address, just use

--graphics vnc,listen=$listenip

If you are using an old virt-install, there is also the --vnclisten option. So I think this is NOTABUG

Note You need to log in before you can comment on or make changes to this bug.