how to configure the serial port that will connect to instance via it's xml file?

asked 2018-05-17 03:42:01 -0500

anonymous user

Anonymous

i am trying to set up instances on all-in one configuration that will allow me to connect them via serial port. this is my xml :

...
<serial type='pty'>
   <source path='/dev/pts/1'/>
   <target port='0'/>
   <alias name='serial0'/>
</serial>
 ...
<console type='pty' tty='/dev/pts/1'>
   <source path='/dev/pts/1'/>
   <target type='serial' port='0'/>
   <alias name='serial0'/>
</console>
...

i have been able to set this instance to running via virsh create example.xml. and even connect to it via virsh console instance-id but when i try to connect to this instance via screen /dev/pts/1 it does not connect but it does connect to /dev/pts/0 . btw my main goal is to create multiply instances with this .xml should i change something in this configuration of serial is so which parameter is related to the real pts of my device?

edit retag flag offensive close merge delete