Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Domains

The domains view is the start screen. The list on the left shows every domain on the connection with its state, vCPUs, memory, a CPU bar, uptime and autostart flag. The right-hand side follows the selection: an overview with the OS, machine type, firmware, IP address, display and guest agent status, then CPU, memory, disk and network graphs. On narrower terminals the graphs move under the list, with tabs (Overview, CPU, Mem, Disk, Net) that [ and ] switch.

Below the list are the most recent libvirt events and a summary of the host: CPU, memory, swap, hugepages and the two largest storage pools.

Finding domains

KeyAction
j / kmove down / up
gg / Gfirst / last domain
Ctrl-d / Ctrl-uhalf a page down / up
/filter by name as you type; Enter keeps the filter, Esc clears it
n / Nnext / previous match
f / Fcycle the state chips: all, running, paused, crashed, off
ocycle the sort order: state, name, CPU, memory, uptime
:42jump to row 42

Lifecycle

KeyActionvirsh command
sstartvirsh start
SACPI shutdownvirsh shutdown
Ddestroy (force off), confirmsvirsh destroy
rrebootvirsh reboot
Rreset (hard), confirmsvirsh reset
ppause or resumevirsh suspend / virsh resume
Zsave state to disk and stopvirsh managedsave
atoggle autostartvirsh autostart [--disable]
Xundefine, asks you to type the namevirsh undefine

After S, virsh-tui watches the domain. If it is still running after the grace period, the message line says the guest ignored the request, and you can retry or use D.

Console, viewer and XML

KeyAction
cserial console (virsh console); Ctrl-] returns to virsh-tui
vgraphical viewer (virt-viewer, or remote-viewer if configured)
eopen the XML in your editor, then virsh define --validate it
Space xsave the XML as ./<name>.xml in the current directory (never overwrites)

Copying

KeyCopies
yydomain name
yuUUID
yifirst IP address
ycthe last command virsh-tui ran

Several domains at once

Mark domains with m, or press V and extend the selection with j/k. Lifecycle keys then act on every marked domain. The confirmation dialog lists them before anything runs.