<div dir="ltr">Hi all,<div><br></div><div>I'm having some problems getting Virtio-Serial running as I'd like.</div><div><br></div><div>I have 10x USB <-> Serial adapters plugged into my VM Host / Hypervisor, acting as a console server. These are currently operated by the VM Host itself, but I would like to move them to a guest. I have used ISA-Serial but it's limited to 4 'ports' per guest.</div>
<div><br></div><div>I've setup Virtio-Serial for the guest and it works, I can pass info via serial from the Host to Guest. I'd like to use socat to link the physical USB serial TTY's and the guest serial 'ports' in /dev/pts.<br>
</div><div><br></div><div>This is works fine and the guest can communicate with the Serial <-> USB adapter, however the Guest serial 'ports' are in /dev/pts and they are assigned a number dynamically when the VM is started, so I can't automate socat to run at boot.</div>
<div><br></div><div>Is it possible to assign static PTY's in the host, to the Guest? Or, if this needs to be scripted, is there a command I can run to find out which PTY it's on without parsing the XML from a dump?</div>
<div><br></div><div>Thanks.</div></div>