Use it when configuring out-of-band guest console/debug paths or legacy serial integrations.
Serial Port
A guest sees a serial port while the hypervisor maps its byte stream to a configured backend. It is commonly used for console access, automation, debugging or legacy device integration.
1. A serial port gives console access when networking fails.
2. Guest must send console to ttyS0 (console=ttyS0).
3. Useful for kernel panics and boot issues.
4. Secure access.
5. Test before you need it.
guest console → serial device → host socket/pipe
Test the actual console/protocol/application exchange next.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show the higher-level application/protocol using the serial channel is correct.
Next check: Test the actual console/protocol/application exchange next.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
virtual UART config → backend mapping → guest serial driver → byte stream → console/application
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Guest COM/tty presence does not prove the backend is connected.
- Baud/framing semantics may matter for physical or protocol peers.
- Serial backends can be files, sockets/pipes or physical ports.
- A console channel can work even when guest networking is broken.
virsh console <vm>— serial console (libvirt)qm terminal <vmid>— Proxmox serialSet-VMComPort <vm> -Number 1 -Path \\.\pipe\vm1— Hyper-V named pipe
ReferenceWhat it is1 section · depth on demand
Using serial consoles
- KVM:
virsh console <vm>(guest needsconsole=ttyS0), Proxmoxqm terminal <id>. - VMware: serial port to a named pipe, file or network (vSPC) for appliances.
- Hyper-V: COM ports mapped to named pipes.
Serial consoles are useful when networking is broken and for capturing kernel panics.
ReferenceWhy it matters1 section · depth on demand
In depth
A virtual serial port gives console access independent of the network and graphics — invaluable for Linux kernel messages, boot loaders and network appliances.
qm set 120 --serial0 socket; qm terminal 120
virsh console vm1
# guest kernel: console=tty0 console=ttyS0,115200
VMware can expose serial ports over the network (vSPC) for appliances; disable unused serial ports in hardened templates.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Guest serial-port presence shows device presentation, not backend reachability or data exchange.
Platform-specific console transport belongs to platform branches.
Examples
# Proxmox/KVM: serial console
qm set 101 --serial0 socket
qm terminal 101
# Guest (Linux) kernel parameters: console=tty0 console=ttyS0,115200
Documented example, not captured output. Serial consoles help when the network or display driver is broken, and for capturing kernel panics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VM Hardware → Virtual Devices → Serial Port. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → Virtual Devices → Serial Port reference map
Fast VM-hardware boundaries for VM Hardware → Virtual Devices → Serial Port.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest port | COM/tty device | Virtual interface |
| Backend | Pipe/socket/file/physical | Hypervisor mapping |
| Framing | Baud/parity/etc. when relevant | Peer compatibility |
| Data flow | Bidirectional bytes | Functional proof |