Your VM's Console tab offers Text (serial) and Graphical (VNC). They're there so that a broken network or SSH setup can't lock you out. They're a way back in, not somewhere to work. For everything else, use SSH with PuTTY.
What you get with each
| PuTTY (SSH) | Text (serial) | Graphical (VNC) | |
|---|---|---|---|
| Copy and paste | Yes | Yes, using the mouse | No |
| Window size | Follows your window | The VM isn't told, so full-screen programs can look wrong | Fixed screen |
| Scroll back | Yes, and you can set how far | Only what's come in since you connected | No |
| Earlier output | Normal prompt on login | Blank until something new is printed | Whatever's on screen |
| Several at once | As many as you like | One shared line | One shared screen |
| Logging out | Closing the window ends your session | You stay logged in | You stay logged in |
| Copying files | Yes, over SFTP | No | No |
| Needs the panel | No | Yes | Yes |
| Needs a password on the VM | No, your key is enough | Yes | Yes |
| Works if SSH or the network is broken | No | Yes | Yes |
The reasons that matter most
You probably can't log in to the console anyway. Most VMs are built with no lasting password, because your SSH key is how you get in. A key is no use at a console login prompt, so you need to have set a password first, as explained below.
You stay logged in when you close it. A console is like a monitor plugged into the VM. Closing the tab turns off the monitor, but it doesn't log anyone out. The next person to open it lands in your session, including if you were root. Always type exit when you finish. With SSH, closing the window ends the session.
The serial console is a single shared line. Everyone connected sees the same thing, and the system's own messages can print over what you're typing. There's no history, so it often looks blank when you connect. It only shows new output, so press Enter if you're at a login prompt. Elsewhere, Enter could run a half-typed command or answer a question, so look before you press it.
Full-screen programs can misbehave on serial. A serial line can't tell the VM how big your window is. Programs like nano and htop may draw at the wrong size and lines may wrap oddly.
VNC is a picture of a screen. It has no copy and paste, so you'd have to type long commands and passwords by hand. It needs more bandwidth, and you can't select any of the text you see.
The console depends on the panel. It runs through the panel, so if the panel is down for maintenance or your browser tab closes, your console goes with it. SSH goes straight to your VM.
When the console is the right tool
Reach for it when SSH can't help:
- You've changed the network or firewall settings inside the system, and SSH no longer answers.
sshdhas stopped, or its configuration is broken.- You want to watch a VM boot, or see why it's stuck.
- You're using an installer from an ISO, which needs Graphical (VNC).
- You're in rescue mode, where the console logs you in as root automatically.
Check the panel's own settings first, though. A blocked port is usually a firewall rule on the panel, and you can fix that with no console at all.
If you can't log in at the console because you have no password, rescue mode can set one.
Set a password before you need one
You'll be glad of this on the day SSH breaks. Once you're logged in over SSH, set a password for your user. It doesn't turn on password login over SSH, so it can't be guessed from the internet. It only works at the console.
sudo passwd ubuntu
Use your own username in place of ubuntu, and pick something long. Keep it in your password manager.
If you've used Turn on SSH password login, that password stops working over SSH when the time runs out, but it still works at the console until you change it. Setting your own replaces it.
Using the console well
- It has to be started by pressing Connect, and the VM has to be running. If you leave the page, you're disconnected.
- Open in a window gives you a bigger console that stays out of the way of the rest of the page.
- On Text (serial), select text to copy it and right-click to paste. Ctrl+C always stops the running program, even with text selected.
- On Graphical (VNC), click the screen before you type, and use the Ctrl+Alt+Del button to send those keys to the VM.
- Type
exitwhen you've finished, so that nobody else lands in your session.