Virtual Serial Ports on Windows Server and VMs

Everything about virtual serial ports gets more serious on a server. The driver is the same kind of kernel code, but the machine it lands on runs other people’s workloads, answers to a change board, and enforces signing policy the way servers do — strictly, and with no patience for workarounds that a desktop user might shrug at. This page is the honest server picture: what works, what absolutely should not be attempted, and the architecture that production environments actually converge on.

Signing on servers: stricter ground

The background every desktop guide on this site repeats applies with extra force here: com0com’s driver is test-signed, and its SourceForge signed package depends on a legacy cross-signed certificate that modern Windows accepts only in narrowing exceptions. Industry reporting through 2025 and into 2026 describes the newest releases — the Windows 11 24H2/25H2 generation and Windows Server 2025 — as removing trust in cross-signed roots by default, shrinking those exceptions further. Treat that as reported direction rather than a promise about your exact build, and test on a non-production image first; but plan on the basis that a driver strategy built on a 2012-era cross-signature has no future on server SKUs, even on machines where it happens to load today.

Never test-signing on production

On a personal PC, enabling Test Mode is a weighed trade-off. On a server it is simply not a proposal: bcdedit -set TESTSIGNING ON lowers the driver-integrity bar for the whole machine — every workload on it, not just your serial tool — demands a reboot, fights Secure Boot policy (which will often refuse it outright), and announces itself with a watermark that no audit survives gracefully. If a design document for a production server contains the words “test signing”, the correct review outcome is to send the design back. The free pair driver remains a fine citizen on desktop and lab machines (commercial use, untangled); servers are a different jurisdiction.

What does work on the server itself

If a Windows Server genuinely needs a local virtual pair — an application and its local simulator both on the host, legacy software consolidated onto modern iron — the requirement is a properly Microsoft-signed commercial driver, chosen and licensed like any other server component, tested in the change window, and recorded in the build. That is the beginning and end of the on-host software story: signed, supported, documented. Anything less is a desktop workaround wearing a server costume.

The VM angle: let the hypervisor do it

Virtualisation quietly dissolves many of these requests. Most hypervisors can present a virtual COM port to a guest backed by something other than a physical UART — a named pipe, a file, or a TCP connection to another host. For the classic workloads that drive these projects (a legacy application in a VM that must “have a COM port”, a guest that needs to exchange serial-formatted data with a partner process), a hypervisor-provided port often satisfies the application without any third-party kernel driver inside the guest at all. Equally, USB and PCI passthrough can hand a guest a real serial adapter outright. The discipline is to ask, before installing anything in the guest: does this need to be a driver, or just a port? RDS and session-host scenarios deserve the same scepticism multiplied — per-session serial expectations on a shared host are where device servers (next section) earn their keep.

There is a middle path worth knowing for guests whose serial partner lives on another host entirely: bridge at the network layer rather than the driver layer. A guest can map its end of a conversation onto TCP — the com2tcp pattern from the com0com ecosystem, or the hypervisor’s own network-backed serial port — and meet a partner process, a device server, or a physical machine’s port on the far side. Framed that way, several “the VM needs a pair” requirements turn out to be “the VM needs to reach a port”, which is a networking task with networking tools, and no kernel driver is invited into the guest at all.

The grown-up answer: a serial device server

Production serial-over-network architecture converged years ago: the serial device lives on a dedicated box — a serial device server — attached to the network, and computers reach it over TCP. The application side then needs either a vendor redirector (a signed driver that maps a COM name to the box, maintained by the box’s manufacturer) or a protocol it can speak directly, RFC 2217 being the standard one; our RFC 2217 recipes and com2tcp guide cover the mechanics from the free-tool side. What this buys operations is everything the in-PC driver cannot offer: no kernel code on the server, the serial hardware survives server rebuilds untouched, one device can serve whichever host needs it this quarter, and the security review is about a network appliance with a vendor, not a test-signed driver from 2012. For a single stubborn desktop-class need this is overkill; for anything a business depends on, it is simply how the job is done.

The consolidation scenario, where this usually starts

Most server-side virtual COM projects are born in a consolidation: a physical Windows machine from another era — running a data-collection app, an instrument controller, a serial-fed legacy service — is being virtualised or moved to a current Server release, and the migration stalls on one line in the inventory: “needs a COM port”. Work the options in the order this page has built them. First ask whether the port must be in the server at all: if the serial device still exists physically, a device server beside it ends the project in an afternoon and the application simply sees a network resource. If the “device” is actually another program, ask whether the two still need to share a host — pairs are an intra-machine concept, and splitting the pair across hosts converts the problem into the RFC 2217 pattern. Only if both ends genuinely live on the server does the signed-driver purchase arise, at which point it is a small, clean line in the migration budget rather than the discovery that stops the project.

RDS and shared hosts: extra suspicion, same physics

On a Remote Desktop Session Host, add one more layer of doubt. Serial ports — real or virtual — are machine-scoped, exclusive resources being presented to a multi-tenant session environment; which session sees which port, and what happens when two sessions want it, are questions whose answers vary by product and policy and are miserable to debug in production. The operational consensus is to keep serial off the session host: dedicate a small endpoint — a workstation, a modest dedicated box, or a device server — to the physical serial world, and let sessions consume the result over the network. It is the same conclusion as the device-server argument, reached from the multi-user direction: shared hosts and exclusive ports are natural enemies, and good architecture wins by separating them rather than mediating between them.

Finally, a word about documentation, because servers outlive their builders: whatever pattern you choose, write down where the serial path physically and logically runs — device, device server or hypervisor mapping, port names, and the application’s expectations — in the runbook, not in a ticket that will age out of search. Virtual COM setups fail silently years later, when a host is rebuilt without its undocumented pipe or a device server is factory-reset by a helpful hand; the runbook entry is the cheapest insurance on this entire page.

Decision summary

  • Lab, test and development servers: com0com per the normal desktop guidance, where the signed package loads; Test Mode tolerable on genuinely disposable machines.
  • Production server, on-host pairs truly required: a commercially signed driver, change-managed (the com0com vs Eltima comparison is the honest version of that purchase).
  • VM guests: hypervisor virtual COM (pipe/TCP-backed) or device passthrough first; guest drivers last.
  • Anything shared, remote, or business-critical: serial device server on the network; retire the question permanently.

The exits, for the two branches that involve buying something: serial device servers on Amazon (sponsored) for the hardware route, and Eltima Virtual Serial Port Driver (sponsored) when a signed on-host driver is genuinely the requirement. Everything else on this page was free advice, and on a server, “do not install the clever workaround” is the most valuable kind.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *