Pcornel
Virtualization · VM Hardware › Virtual Devices

Serial Port

Cheat sheet · https://pcornel.dk/topic.php?topic=3473

Back to the Topic

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 serial
  • Set-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

BoundaryMeaningEvidence limit
Guest portCOM/tty deviceVirtual interface
BackendPipe/socket/file/physicalHypervisor mapping
FramingBaud/parity/etc. when relevantPeer compatibility
Data flowBidirectional bytesFunctional proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3473

Confirmation

Confirm action

Continue?