Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Serial Port

Direct 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.

When to use this

Use it when configuring out-of-band guest console/debug paths or legacy serial integrations.

First 30 seconds

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.

Operational verification

guest console → serial device → host socket/pipe

Evidence · next step

Test the actual console/protocol/application exchange next.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse it when configuring out-of-band guest console/debug paths or legacy serial integrations.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • virsh console <vm> — serial console (libvirt)
  • qm terminal <vmid> — Proxmox serial
  • Set-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 needs console=ttyS0), Proxmox qm 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Terminology layer

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.

Aliases that resolve here
virtual serial portvm com portvirtual uart
Embedded reference data

Quick lookup tables

VM Hardware → Virtual Devices → Serial Port reference map

Fast VM-hardware boundaries for VM Hardware → Virtual Devices → Serial Port.

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

Confirm action

Continue?