LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

virt-viewer

Display VM graphical console

TLDR

Connect to VM
$ virt-viewer [vmname]
copy
Connect via URI
$ virt-viewer -c [qemu:///system] [vmname]
copy
Connect to remote
$ virt-viewer -c [qemu+ssh://host/system] [vmname]
copy
Full screen
$ virt-viewer --full-screen [vmname]
copy
Wait for VM
$ virt-viewer --wait [vmname]
copy

SYNOPSIS

virt-viewer [-c uri] [--full-screen] [options] vmname

DESCRIPTION

virt-viewer is a lightweight graphical console client for viewing the display of virtual machines managed by libvirt. It connects to running VMs and renders their graphical output in a native window, providing a simple alternative to the full virt-manager application when only console access is needed.The tool supports both SPICE and VNC display protocols, automatically detecting the appropriate connection method from the VM's configuration. Remote connections are supported through SSH tunneling, allowing users to securely access VM consoles on remote hypervisors without exposing display ports directly.Additional features include full-screen mode for dedicated display use, USB device redirection for passing local hardware to the guest, shared clipboard support, and automatic screen resolution adjustment. The viewer can also wait for a VM to start before connecting, making it useful in scripted or automated workflows.

PARAMETERS

-c URI

Connection URI.
--full-screen
Full screen mode.
--wait
Wait for VM.
--reconnect
Auto reconnect.
--hotkeys KEYS
Custom hotkeys.

INSTALL

sudo apt install virt-viewer
copy
sudo dnf install virt-viewer
copy
sudo pacman -S virt-viewer
copy
sudo apk add virt-viewer
copy
sudo zypper install virt-viewer
copy
nix profile install nixpkgs#virt-viewer
copy

CAVEATS

libvirt required. VM must be running. X11/Wayland needed.

HISTORY

virt-viewer is part of the virt-manager project, providing a minimal tool for viewing VM graphical consoles.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid