Here's what I have going on:
I have a Debian server running several services in Docker and a couple in KVM.
One of the KVM hosts is a Windows 10 VM that I actually use as a desktop by using PCI passthrough of GPU, USB and some other things.
On the Windows VM, I also have a virtual serial device which attaches to /dev/pts/1
If I fire up Putty on the windows VM and attach to Com1, I can echo "something" > /dev/pts/1
on my host server and it shows up in my putty window. I can also cat /dev/pts/1
and type data into my putty window and it shows up in the cat output.
What I'm trying to do: I want a getty to run on /dev/pts/1 so that I can simply open a putty window and get the console of my host device.
This mainly came up when I've noticed that I've done something to the network stack on my host device and couldn't ssh to it.
I've tried just running agetty -s 115200 -t 600 /dev/pts/1 linux
which does nothing.
It seems /etc/inittab
no longer exists.
I've considered just adding a separate vnic attached directly to my host, but I just don't want to do that.