Serial Port
Cheat sheet · https://pcornel.dk/topic.php?topic=3473
Answer
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.
Remember
- 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.
First checks
virsh console <vm>— serial console (libvirt)qm terminal <vmid>— Proxmox serialSet-VMComPort <vm> -Number 1 -Path \\.\pipe\vm1— Hyper-V named pipe
Commands
virsh console <vm>qm terminal <id>
Verify in this order
guest console → serial device → host socket/pipe
Where it usually breaks
First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.
VM Hardware → Virtual Devices → Serial Port reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3473