Hyper-V serial port passthrough - add COM port to Hyper-V

Last updated

Numerous advantages make it appealing for companies to use virtual environments. They enhance the capabilities of IT resources by enabling organizations to perform server consolidation, recover more quickly after an outage, and make better use of their hardware. Peripheral equipment can be used by multiple virtual hosts running on a single physical machine. Attaching serial devices to a virtual environment adds value to the peripherals by making them available to additional users.

A common problem is that many virtualization platforms do not provide native support for connecting to COM ports. Therefore, if you plan on using serial ports in Hyper-V you need to use an alternate solution to establish the connection. There are, fortunately, several methods that can be used to redirect COM ports in Hyper-V.

How to add COM ports to a Hyper-V virtual machine


Windows, macOS, Linux, Android
4.8 Rank based on 78+ users
One of the easiest methods for establishing Hyper-V COM port passthrough is with the software utility FlexiHub.

FlexiHub simplifies adding a COM port to Hyper-V guests as well as any other type of virtual platform.

The software works by using the network to establish a virtual connection that enables serial data flows to be redirected to a Hyper-V instance. There are no complicated configuration procedures required. You can implement Hyper-V COM port redirection with just one click.

How to use FlexiHub to enable Hyper-V serial port passthrough:

  1. You need to register for a FlexiHub account where you can select a plan that provides the required number of connections.
  2. Install FlexiHub on the host machine that is directly connected to a serial device.
  3. FlexiHub also needs to be installed on the Hyper-V virtual machine which needs access to the serial port.
  4. Launch the application and log into your FlexiHub account. The serial devices that are available for connection will be displayed by the tool.
  5. Select the device you wish to connect to and click ‘Connect’.

It’s that simple. Hyper-V serial port passthrough is now enabled and any peripherals that are connected to the host’s serial interfaces will be available on the virtual guest operating system. FlexiHub offers a convenient way of managing serial ports in a virtual environment without modifying configuration parameters. It supports major virtualization environments like VirtualBox, VMware, and Hyper-V.

How to redirect a COM port in Hyper-V

You can use other methods to establish Hyper-V serial port passthrough on a Windows 10 or another OS platform. The serial interface must be set up from within the Hyper-V session. To begin, you need to use the Hyper-V Manager by using the following procedure.

  • Right-click the virtual machine and choose “Settings".
  • Select the required serial port from the “Hardware” menu.
  • Click the “Named Pipe” radio button.
  • Enter the pipe’s name in the text box.
  • Document the named pipe path shown by Hyper-V.

On the Hyper-V Host Machine, you can now use the Named pipe path to connect to a serial client.

Alternatively, you can use a different method that employs RDP to allow Hyper-V access to serial ports. Here is how to set up virtual machine access using the "Remote Desktop Connection” app.

  • Locate the “Show Options” button in the bottom-left corner.
  • Find the “Local Resources” tab.
  • Click “More” in the blog labeled "Local Devices and Resources."
  • Check the “Ports” box.
  • Sign in to the virtual machine via the “General” tab.

You can now connect to serial peripherals attached to the local machine from within the virtual guest session.

This detailed guide should have provided you with the knowledge required to add Hyper-V serial port connectivity to your virtual sessions. Once these connections have been established, your virtual machine will enjoy the same functionality as if it had a direct connection to the peripheral serial device.


Requirements: Windows 7/8/10, Server 2008 R2/2012/2016/2019
Size: 7MB
Version: 4.4.13219 ()
User rating: (4.8 based on 78+ users)