Re: Secret incantations for virt-viewer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Dec 30, 2014 at 9:58 AM, Marcelo Roccasalva <
marcelo-centos@xxxxxxxxxxxxxxxxx> wrote:

> On Tue, Dec 30, 2014 at 11:46 AM, Bill Gee <bgee@xxxxxxxxxxxxxxx> wrote:
>
> > Hello everyone -
> >
> > I am trying to use virt-viewer to connect to KVM virtual machines running
> > on a
> > CentOS7 host.  It works great when running directly on the host, but I
> have
> > not been able to figure out the magic connection string to make it work
> > from
> > another computer.
> >
>
> virt-viewer connects to a VNC console, which is listening only on
> localhost. You need to modify the VNC console on the VM to access throu the
> network.


As Marcelo points out, by default QEMU listens on localhost for VNC
consoles.
If you grep vnc out of the qemu.conf, you'll get hints at a bunch of
different options.
More than likely you want the vnc_listen config parameter.

~]# grep vnc /etc/libvirt/qemu.conf
vnc_listen = "X.X.X.X"
# over vnc_listen.
#vnc_auto_unix_socket = 1
#vnc_tls = 1
# default it to keep them in /etc/pki/libvirt-vnc. This directory
#vnc_tls_x509_cert_dir = "/etc/pki/libvirt-vnc"
# certificate signed by the CA in /etc/pki/libvirt-vnc/ca-cert.pem
#vnc_tls_x509_verify = 1
#vnc_password = "XYZ12345"
#vnc_sasl = 1
#vnc_sasl_dir = "/some/directory/sasl2"
#vnc_allow_host_audio = 0
# result into negative vnc display number.

I suspect (although I have not tested it) that the method Patrick suggested
tunnels through SSH.

[ Personally I don't use virt-viewer often and instead use virsh CLI along
with a VNC client if necessary. ]

-- 
---~~.~~---
Mike
//  SilverTip257  //
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux