virt-viewer (1)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
virt-viewer - display the graphical console for a virtual machineSYNOPSIS
virt-viewer [DESCRIPTION
virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using theOPTIONS
The following options are accepted when running "virt-viewer":- -h, --help
- Display command line help summary
- -V, --version
- Display program version number
- -v, --verbose
- Display information about the connection
- -c URI,--connect=URI
-
Specify the hypervisor connection URI
- -w, --wait
- Wait for the domain to start up before attempting to connect to the console
- -r, --reconnect
- Automatically reconnect to the domain if it shuts down and restarts
- -z PCT,--zoom=PCT
- Zoom level of the display window in percentage. Range 10-400.
- -d, --direct
-
Do not attempt to tunnel the console over SSH,even if the main connectionURIusedSSH.
- -a, --attach
-
Instead of making a direct TCP/UNIXsocket connection to the remote display, ask libvirt to provide a pre-connected socket for the display. This avoids the need to authenticate with the remote display server directly. This option will only work when connecting to a guest that is running on the same host as the virt-viewer program. If attaching to the guest via libvirt fails, virt-viewer will automatically fallback to trying a regular directTCP/UNIXsocket connection.
- -f, --full-screen
-
Start with the window maximised to fullscreen
If supported, the remote display will be reconfigured to match the physical client monitor configuration, by enabling or disabling extra monitors as necessary. This is currently implemented by the Spice backend only.
To specify which client monitors are used in fullscreen mode, see the
CONFIGURATIONsection below. - --debug
- Print debugging information
- -H HOTKEYS,--hotkeysHOTKEYS
-
Set global hotkey bindings. By default, keyboard shortcuts only work when the
guest display widget does not have focus. Any actions specified in HOTKEYSwill be effective even when the guest display widget has input focus. The format forHOTKEYSis <action1>=<key1>[+<key2>][,<action2>=<key3>[+<key4>]]. Key-names are case-insensitive. Valid actions are: toggle-fullscreen, release-cursor, secure-attention, smartcard-insert and smartcard-remove. The "secure-attention" action sends a secure attention sequence (Ctrl+Alt+Del) to the guest. Examples:
--hotkeys=toggle-fullscreen=shift+f11,release-cursor=shift+f12 --hotkeys=release-cursor=ctrl+alt
Note that hotkeys for which no binding is given are disabled. Although the hotkeys specified here are handled by the client, it is still possible to send these key combinations to the guest via a menu item.
- -k, --kiosk
-
Start in kiosk mode. In this mode, the application will start in
fullscreen with minimal UI.It will prevent the user from quitting or performing any interaction outside of usage of the remote desktop session.
Note that it can't offer a complete secure solution by itself. Your kiosk system must have additional configuration and security settings to lock down the
OS.In particular, you must configure or disable the window manager, limit the session capabilities, use some restart/watchdog mechanism, disableVTswitching etc. - --kiosk-quit <never|on-disconnect>
- By default, when kiosk mode is enabled, virt-viewer will remain open when the connection to the remote server is terminated. By setting kiosk-quit option to ``on-disconnect'' value, virt-viewer will quit instead. Please note that --reconnect takes precedence over this option, and will attempt to do a reconnection before it quits.
- --id, --uuid, --domain-name
-
Connect to the virtual machine by its id, uuid or name. These options
are mutual exclusive. For example the following command may sometimes
connect to a virtual machine with the id 2 or with the name 2 (depending
on the number of running machines):
virt-viewer 2
To always connect to the virtual machine with the name ``2'' use the ``--domain-name'' option:
virt-viewer --domain-name 2
CONFIGURATION
A small number of configuration options can be controlled by editing the settings file located in the user configuration directory:
<USER-CONFIG-DIR>/virt-viewer/settings
This file is a text file in
For each guest, the initial fullscreen monitor configuration can be specified by using the monitor-mapping key. This configuration only takes effect when the -f/--full-screen option is specified.
The value of this key is a list of mappings between a guest display and a client monitor. Each mapping is separated by a semicolon character, and the mappings have the format <
For example, to map guest displays 1 and 2 to client monitors 2 and 3 for the guest with a
[e4591275-d9d3-4a44-a18b-ef2fbc8ac3e2] monitor-mapping=1:2;2:3
The monitor-mapping must contain ids of all displays from 1 to the last desired display id, e.g. ``monitor-mapping=3:3'' is invalid because mappings for displays 1 and 2 are not specified.
EXAMPLES
To connect to the guest called 'demo' running under Xen
virt-viewer demo
To use
virt-viewer --connect qemu:///system
To connect to the guest with
virt-viewer --connect qemu:///system 7
To wait for the guest with
virt-viewer --reconnect --wait 66ab33c0-6919-a3f7-e659-16c82d248521
To connect to a remote console using
virt-viewer --connect xen://example.org/ demo
To connect to a remote host using
virt-viewer --connect qemu+ssh://root@example.org/system demo
When using a
To connect to a remote host using
virt-viewer --direct --connect xen+ssh://root@example.org demo