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

vmctl log

Show VM console and provision logs.

Synopsis

vmctl log [OPTIONS] <NAME>

Arguments

ArgumentDescription
NAMEVM name (positional)

Options

OptionTypeDefaultDescription
--consoleflagfalseShow only console log (boot / cloud-init output)
--provisionflagfalseShow only provision log
--tail, -ninteger0Show the last N lines (0 = all)

Details

By default (no flags), both console and provision logs are shown. The console log captures serial output (boot messages, cloud-init output). The provision log captures stdout/stderr from provisioner runs.

Log files are located in the VM's work directory:

  • console.log - Serial console output
  • provision.log - Provisioning output

Examples

# Show all logs
vmctl log myvm

# Show only provision output
vmctl log myvm --provision

# Show last 50 lines of console log
vmctl log myvm --console --tail 50

See Also

vmctl console, vmctl status