VMware Communities
AJKHAOS
Contributor
Contributor

Unable to open host serial ports through VMware Workstation

Hi folks,

Wondering if anyone can help me with this situation I am facing at the moment.

Currently trying to add a serial device to my VMware player but using the serial port on my host and connecting that to my VM.

However, when I try add the serial port through the VMware Workstation console I get the following message

"serial0: Unable to open the COM4 serial port:

Access is Denied.

Failed to connect virtual device 'serial '"

Can someone please point out to me how to resolve this, I feel this must be simple enough to resolve yet am perplexed that I can't solve It.

I have ran VMware as admin too so any other suggestions would be appreciated

Cheers,

AJKH

0 Kudos
5 Replies
msihtasham
Contributor
Contributor

Is your host Debian, or the guest?

The serial0.virtualDev line in your vmx file must use the OS-specific naming for the serial port (e.g. /dev/tty0 for Linux and COM1 for Windows)...  (or just use "auto detect" instead).

0 Kudos
AJKHAOS
Contributor
Contributor

Hi there may thanks for your quick reply.

My host System is Win 7, my guest is CentOS 7

So when I access the VMX file do I did to state it's a COM4 or a /dev/tty3

Thanks for this help

0 Kudos
AJKHAOS
Contributor
Contributor

Would this also be the same for vSphere / ESX VMs?

0 Kudos
RDPetruska
Leadership
Leadership

You need the port/file/etc. naming which your host recognizes - so for the Windows host, use COMn.

ESX(i) cannot access hardware UART serial ports.  The only way is to use a network serial port redirector

0 Kudos
AJKHAOS
Contributor
Contributor

Appreciate the response thank you

Could you provide me with more information about the Serial Port Redirector please? I can't seem to find much on it

0 Kudos