How to configure /dev/ttyS0 to display login

Issues related to applications and software problems and general support
Post Reply
bodisha
Posts: 47
Joined: 2015/06/06 23:55:29

How to configure /dev/ttyS0 to display login

Post by bodisha » 2020/03/25 19:36:58

I'm running two Oracle VirtualBox guests (Oracle VB 6 running on Windows 10) running CentOS 8... and I want to configure them so one can login to the other threw /dev/ttyS0

I configured the COM1 on both guests for Port Mode of "Host Pipe" with the name "\\.\pipe\serial1"... and unselected "connect to existing pipe/socket" on the master


Image

Image


I then copied the serial getty template

Code: Select all

# cp /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttyS0.service

and then created a symlink

Code: Select all

ln -s /etc/systemd/system/serial-getty@ttyS0.service /etc/systemd/system/getty.target.wants/
and then reloaded the daemon and started the service

Code: Select all

# systemctl daemon-reload
# systemctl start serial-getty@ttyS0.service
# systemctl enable serial-getty@ttyS0.service


From there I'm expecting to see a login prompt when I start putty..... Unfortunately, putty opens a window and just sits there... Does anything leap out at what I'm doing wrong???

Post Reply

Return to “CentOS 8 - General Support”