ttyS0 create on LXC

frankz

Well-Known Member
Nov 16, 2020
392
25
48
Hello everyone , I need to create a ttyS0 on a server that runs on LXC .

Could you help me with how to do it?
 
What is on the other end(s) of this virtual serial connection? Do you want the container to connect a getty process to it? Or will it be accessible as device to some other software running inside the container? Do you need help with that part?

Do you want to connect the other end to a physical serial device on the host? Or is this supposed to be a virtual device that allows you to talk to container from host?

Lots of different ways of interpreting your question.
 
What is on the other end(s) of this virtual serial connection? Do you want the container to connect a getty process to it? Or will it be accessible as device to some other software running inside the container? Do you need help with that part?

Do you want to connect the other end to a physical serial device on the host? Or is this supposed to be a virtual device that allows you to talk to container from host?

Lots of different ways of interpreting your question.
Hello and thank you for replying. I should connect a virtual device in particular an rs485 to eth converter. However, I think I have solved it on SOCAT.