Serial Port Hyper V

Active2 years, 4 months ago

I am using Hyper-V Manager on my Windows 8.1 device to host a virtual machine. As it turns out, there is no way to enable your COM ports through the user interface, instead you must use Windows PowerShell (as described here and shown below).

  • Capture serial console text from a Hyper-V guest. Ask Question Asked 1 year, 8 months ago. Active 1 year, 8 months ago. To add a serial port to a VM, create one (or more) named pipes in PowerShell. Note that PowerShell must be 'run as administrator' for this to work.
  • PipeDream for Hyper-V - add a named pipe serial port to your virtual machine. PipeDream is a software solution that assists in creating connections between virtual machines and COM ports residing on the virtualization hosts. PipeDream offers Hyper-V's named pipe support, meaning that there’s no need to connect to the network.
  • HyperSerialPort is a Serial Terminal Emulator that works with any Serial Port including USB to Serial Virtual COM Ports. The HSP has several built in test tools that assist in the development of.
  • This serial port redirector software supports Linux and Windows operating systems and is compatible with most of virtualization systems - VMWare, VMWare ESX, Citrix XenDesktop, Microsoft Hyper-V, etc. All mentioned above provides you with the most convenient and effective COM port virtualization.

Forwarding serial to VMware, Hyper-V or any other environments makes the serial port hardware usage more efficient. It often happens that in the virtual environment we cannot work with serial ports, as virtualization software tools usually do not support their throughput. Thanks to it you can easily work with local serial ports in a virtual session. This serial port redirector software supports Linux and Windows operating systems and is compatible with most of virtualization systems - VMWare, VMWare ESX, Citrix XenDesktop, Microsoft Hyper-V, etc.

I have followed the directions provided in the link above, and I can see the VM COM ports (1 & 2) listed in the device manager of the VM. I can point at the VM COM ports with the kernel debugger in WinDbg (running on the VM). Finally, I am trying to kernel debug a peripheral device physically plugged into the USB port of the HOST machine (COM4).

How do I map the VM COM ports to the HOST machine?

ZakHyper v serial port passthroughZak
5,90810 gold badges41 silver badges84 bronze badges

1 Answer

You need to access the VM via the 'Remote Desktop Connection' application.

  • There is a 'Show Options' button in the lower-left corner.
  • There will be a tab labelled 'Local Resources'
  • There is a box titled 'Local devices and resources'
  • Click the 'More...' button.
  • Check the 'Ports' check-box.
  • Finally, sign in to your VM under the 'General' tab.

Serial Port Hyper V 1

Now you can access the resources of your local machine in your VM.

Hyper-v Port Mapping

ZakZak

Hyper-v Named Pipe Serial

5,90810 gold badges41 silver badges84 bronze badges

Com Port Hyper-v Named Pipe

Not the answer you're looking for? Browse other questions tagged powershellserial-portvirtual-machinehyper-v or ask your own question.