virt-viewer – display the graphical console for a virtual machine
virt-viewer [OPTIONS] [ID|UUID|DOMAIN-NAME]
virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The guest can be referred to based on its name, ID, or UUID. If the guest is not already running, then the viewer can be told to wait until it starts before attempting to connect to the console. The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.
To connect to the guest called ‘demo’ running under Xen
To use GUI for connecting to a guest running under QEMU
To connect to the guest with ID 7 running under QEMU
To wait for the guest with UUID 66ab33c0-6919-a3f7-e659-16c82d248521 to startup and then connect, also reconnecting upon restart of VM
To connect to a remote console using TLS
To connect to a remote host using SSH, lookup the guest config and then make a tunnelled connection of the console
When using a SSH tunnel to connect to a SPICE console, it’s recommended to have ssh-agent running to avoid getting multiple authentication prompts.
To connect to a remote host using SSH, lookup the guest config and then make a direct non-tunnelled connection of the console
virsh(1), “virt-manager(1)”, “spice-gtk(1)”
the project website “http://virt-manager.org”
- man 1 virt-viewer, Version 6.0-2
- 10/10/2018 创建文章