[virt-tools-list] [virt-viewer] Don't connect to localhost when using --direct

Christophe Fergeau cfergeau at redhat.com
Tue Jun 10 07:11:56 UTC 2014


On Thu, Apr 03, 2014 at 02:48:10PM +0200, Christophe Fergeau wrote:
> Trying to connect to a remote virtual machine using
> virt-viewer -c qemu+ssh://example.com/system --direct $vm_name
> will currently fail with an error message saying it's not possible to
> localhost. This happens with VMs which listen on a wildcard address (eg
> '0.0.0.0').
> This was introduced by commit 74b1b62 which changes the host to connect to
> to 'localhost' when trying to connect through ssh to a VM listening on a
> wildcard address. This is only valid when using a ssh tunnel, and should
> not be done with --direct. The fallback code which uses the hostname from
> the libvirt URI is what makes the most sense in this situation (wildcard
> listen address + --direct).
> This commit introduces a virt_viewer_app_get_direct() so that this can be
> implemented.
> 
> Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1079211

Ping?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140610/2af196fa/attachment.sig>


More information about the virt-tools-list mailing list