Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

Enabling COM3 and COM4 in a Windows virtual machine (1002463)

Last Updated: 1/19/2019Categories: How toTotal Views: 27434Language:
English

12 like this article

Subscribe to get an email
newsletter with new updates

12 people found this helpful Please provide article feedback:

Details

VMware documentation indicates that it is possible to use COM3 and COM4 in a virtual machine, however these ports do not appear in the operating system

This article discusses enabling COM3 and COM4 in a Windows virtual machine

Solution

The VMware virtual BIOS can address two serial ports by default, but allows up to four COM ports total, and also three parallel ports. A similar technique can be used to enable the extra parallel ports, however this article concentrates on the serial ports only.

To enable the COM ports:

Make note of the COM port assignments on the host. These are used later to direct the virtual COM ports to the physical COM ports.

Power on the virtual machine and log on as an administrator.

Open a command prompt. For more information, see Opening a command or shell prompt (1003892).

Type set devmgr_show_nonpresent_devices=1 press Enter.

Open the Device Manager.

Click View > Show Hidden Devices.

Uninstall all COM port devices listed.

Make note of free IRQs for use in creating new COM port assignments. The default COM IRQs must be free unless a device has already been forced to an IRQ normally used by the COM ports.

Shut down the virtual machine.

Power on the virtual machine and enter the BIOS setup program.

Click in the console window to give it focus immediately after powering on, then press F2 repeatedly to enter the virtual BIOS setup program.

Notes:

If the virtual machine is running under Fusion, click Virtual Machine > Power On To Firmware.

If the virtual machine is running under Workstation Pro, click Virtual Machine > Power > Power On To Firmware.

Go to BIOS Advanced settings > I/O Configuration section.

Set Serial Port A and B to Enabled (do not use Auto). Keep the default I/O addresses and IRQ settings.

Press F10 to exit the setup program and the save changes.

Hard power off the virtual machine before the guest operating system loads.

Map the virtual machine's COM port assignments to the COM ports on the host. Edit the .VMX file for the virtual machine, and add the following lines:

serial0.present = "TRUE"
serial0.fileName = "COM1"
serial0.startConnected = "TRUE"
serial0.irq = 4
serial0.baseAddr = 0x3f8

serial1.present = "TRUE"
serial1.fileName = "COM2"
serial1.startConnected = "TRUE"
serial1.irq = 3
serial1.baseAddr = 0x2f8

serial2.present = "TRUE"
serial2.fileName = "COM3"
serial2.startConnected = "TRUE"
serial2.irq = 4
serial2.baseAddr = 0x3e8

serial3.present = "TRUE"
serial3.fileName = "COM4"
serial3.startConnected = "TRUE"
serial3.irq = 3
serial3.baseAddr = 0x2e8

If the host is a Linux PC, Edit the .VMX file for the virtual machine, and add the following lines:

serial0.present = "TRUE"

serial0.fileType = "device"

serial0.fileName = "/dev/ttyS0 "

serial0.tryNoRxLoss = "FALSE"

serial0.autodetect = "FALSE"

Important: The value listed in serialx.fileName = "COMx" correlate to the hardware ports on the host to rout the serial port traffic. All other lines determine the settings and resources used by the virtual COM ports presented to the virtual machine. Some adjustments may be necessary, use the information from step 1 to assist you.

Power on the virtual machine and log on as an Administrator.

Open the Device Manager. Verify that the new COM port devices are listed and have the correct Resource assignments. I f all COM ports do not show up within the guest, run the Add Hardware wizard from the Control Panel to allow Windows Plug & Play to detect the devices and install the drivers.

Note: An additional COM port does not show up in the Device Manager with the same device name as the other COM ports, you must run update driver through the Device Properties dialog, Driver tab.

Note: This procedure may not work if the COM ports are assigned to files. In that case, the IRQs used cannot be shared. Instead, find unused IRQs in the guest operating system.

For example:

COM1 - IRQ4 - 0x3F8
COM2 - IRQ3 - 0X2F8
COM3 - IRQ5 - 0X3E8
COM4 - IRQ7 - 0X2E8

If the COM ports are listed in the Device Manager with a yellow exclamation mark, edit the COM ports and manually force the ports to use the IRQs that have been determined to be free in the previous step.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation

VMware vSphere ESXi

VMware vSphere ESX

VMware vSphere

VMware Server

VMware Player

VMware GSX Server

VMware Fusion

VMware ACE

view all

Related Versions:

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant