Cookie
Electronic Team, Inc. uses cookies to personalize your experience on our website. By continuing to use this site, you agree to our cookie policy. Click here to learn more.

COM Port in Virtual Machine - Extended guide for Hyper-V, VMware, VirtualBox

Olga Weis Olga Weis Apr 8, 2024

The availability of COM ports provides enhanced functionality in virtual machine environments such as VirtualBox, Hyper-V, and VMware. Serial port hardware can help with server consolidation, data recovery, and improved productivity. This guide discusses connecting virtual machines (VMs) to serial devices with physical or virtual COM ports.

com port in VM

Using COM Ports on Virtual Machines

Guest Virtual Machines can benefit from communication with devices or host applications via serial ports in many usage scenarios. USB to COM devices can be attached directly to a virtual machine. Native COM devices are only accessible to a Virtual Machine if it has been connected to the host computer.

VMs use bridges to forward serial port data to guest machines. When a VM is connected to a particular COM port, it becomes unavailable to the host machine. Establishing a pair of virtual serial ports enables data transfers between host and guest applications.

Setting Bridge Ports Inside Virtual Machines

A setting within virtual machines enables users to establish a bridge between serial ports on the host and guest machine as an alternative to creating a new COM port for connectivity. Windows hosts offer legacy for COM ports numbered 1 through 9. Full device naming conventions are required for higher numbered ports, for example, \.\COM10.

The bridge provides connection mode options to support use with various types of applications. Uses include controlling serial devices from a guest operating system and exchanging data between two real or virtual machines to troubleshoot COM ports and attached equipment.

The connection modes available are:

  • • File
  • • Pipe
  • • TCP

Accessing Serial Ports in VirtualBox,
Hyper-V, and VMware

Serial ports can be accessed in the following virtual environments.

  • VirtualBox - When a VirtualBox serial port is enabled, the guest OS obtains access to a UART device for data transmission. Specific configuration details depend on the host OS in use.
  • Hyper-V - The Hyper-V Manager does not display serial ports by default. COM port connectivity can be established with additional configuration, allowing VMs to implement serial port passthrough functionality.
  • VMware - VMware VMs can create up to four virtual serial ports. Each port facilitates communication with physical serial ports on the host machine and can output data to named pipes or files.

Software to Establish Serial Communication in Virtual Environments

Serial to Ethernet Connector provides users with a streamlined and efficient method of accessing serial devices from virtual machines. The software makes it easy to connect to COM ports in virtual environments like VMware, VirtualBox, and Hyper-V. The following simple steps demonstrate how to set up serial port sharing on a virtual machine.
1
Download and install Serial to Ethernet Connector on the physical host computer that will share a COM port.
2
Start the application and navigate to the Server connection tab.
3
Define the COM port on the host machine and the TCP port that will monitor communication.
4
Create a server connection to connect the physical COM port to the virtual machine.
5
Configure the TCP port and the host computer's IP address on the guest machine.
 Serial to Ethernet Connector
6
Select a name for the virtual machine’s serial port.
7
Create the virtual serial port in the app’s interface.

After configuration is complete, the virtual machine will obtain full functionality over the connected physical COM port and any attached devices.

Conclusion

This guide illustrates how you can manage serial ports in various types of virtual environments. The options and steps discussed will help you implement efficient and effective communication between serial devices and virtual machines. VM users can enjoy improved productivity and superior utilization of peripheral devices.

small logo Serial to Ethernet Connector
#1 at Serial Port Software
Serial to Ethernet Connector
Access remote serial port over IP Network for Windows
4.7 rank based on 243 + users
Get a download link for your desktop
Submit your email address to get a link for quick download on your desktop and get started!
or
Also Available:

Serial to Ethernet Connector [Linux]

Requirements: Linux 32-bit or 64-bit
Version 8.0.822 (25 May, 2021) Download the trial version →