lxc console
Description: Attach to instance consoles Synopsis: Description: Attach to instance consoles This command allows you to interact with the boot console of an instance as well as retrieve past log entries from it....

Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# `lxc console`

Attach to instance consoles

## Synopsis

Description: Attach to instance consoles

This command allows you to interact with the boot console of an instance as well as retrieve past log entries from it.

    lxc console [<remote>:]<instance> [flags]

## Options

          --show-log   Retrieve the instance's console log
      -t, --type       Type of connection to establish: 'console' for serial console, 'vga' for SPICE graphical output (default "console")

## Options inherited from parent commands

          --debug          Show all debug messages
          --force-local    Force using the local unix socket
      -h, --help           Print help
          --project        Override the source project
      -q, --quiet          Don't show progress information
          --sub-commands   Use with help or --help to view sub-commands
      -v, --verbose        Show all information messages
          --version        Print version number

## SEE ALSO

- lxc - Command line client for LXD