LXD includes the command-line tool ‘lxc’.
‘lxc console’ is supposed to allow a user to attach to the container console.
But what if I have virtual consoles? With lxc-console, you could specify ttys:
lxc-console -n name [ -e escape character ] [ -t ttynum ]
$ lxc console --help
Description:
Attach to container consolesThis command allows you to interact with the boot console of a container
as well as retrieve past log entries from it.Usage:
lxc console [:] [flags]Flags:
–show-log Retrieve the container’s console logGlobal Flags:
–debug Show all debug messages
–force-local Force using the local unix socket
-h, --help Print help
-v, --verbose Show all information messages
–version Print version number