Skip to content

Terminal Access🔗

Connect to serial console🔗

Check if terminal is available in guest:

$ qm monitor 1500
Entering Qemu Monitor for VM 1500 - type 'help' for help
qm> info chardev
...
serial0: filename=disconnected:unix:/var/run/qemu-server/1500.serial0,server=on
qm>

Starting a connection to serial console:

$ qm terminal 1500
starting serial terminal on interface serial0 (press control-O to exit)

Stop the connection with ++Ctrl+o++.

Switch to console terminal via QEMU🔗

To switch to a virtual console, you can: * Go to Monitor of the virtual machine in the Web front-end and use the command sendkey ctrl-alt-fN. * Use qm sendkey vmid "sendkey-ctrl-alt-fN" in the shell.

  • Ctrl+Alt+F1 - graphical login screen
  • Ctrl+Alt+F2 - graphical desktop
  • Ctrl+Alt+F3 - console 3
  • ...
  • Ctrl+Alt+F6 - console 6

Switch to console terminal via chvt🔗

The command chvt N switch to the virtual console N. For example:

$ sudu chvt 3