Link to home
Start Free TrialLog in
Avatar of tbeasley123
tbeasley123

asked on

How to configure Ubuntu 12.04 VM to use physical serial port on host

Hello all,

I am trying to configure a Ubuntu 12.04 VM to use a physical serial port on host. When configuring the serial port in vSphere, I am presented with two options – uart0 and uart1. From what I can see, there is only one physical serial port. How am I to determine which one to use? Also should “Connected” and “Yield CPU on poll” be checked in order for this to work?

User generated image
I have been testing with both as I do not know which one should be selected. Both give identical results. Running “dmesg | grep ttyS” shows that the serial port(s) are both being loaded on start up. To my knowledge ttyS0 and ttyS1 correspond with COM1 and COM2. Why are there two and how can I tell which one works?


User generated image
To my knowledge, the user and group for ttyS0 and ttyS1 should be root:dialout. However, on the reboot, the group for ttyS0 resets back to tty – regardless of how many times I change it. Why does this happen?

If anyone can provide any assistance on this it would be greatly appreciated.
Avatar of arnold
arnold
Flag of United States of America image

What is connected to the physical com port?
You can use tee ttys0 on the host to make sure you can communicate with whatever is connected to it, then you can see whether the corresponding uart0 works from within the VM.

Configuring the VM from the host may provide a way to pass the path physical com port from the host to the VM.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial