14.5.2. Connecting the Serial Console for the Guest Virtual Machine
The
$ virsh console <domain> [--devname <string>] [--force] [--safe]
command connects the virtual serial console for the guest virtual machine. The optional --devname <string> parameter refers to the device alias of an alternate console, serial, or parallel device configured for the guest virtual machine. If this parameter is omitted, the primary console will be opened. The --force
option will force the console connection or when used with disconnect, will disconnect connections. Using the --safe
option will only allow the guest to connect if safe console handling is supported.
$ virsh console virtual_machine --safe