How to communicate 2 guest machines over serial in qemu?

Alex Bennée alex.bennee at linaro.org
Wed May 17 00:48:10 AEST 2023


Sidhartha Reddy Kaliki <sidhartha at drut.io> writes:

> Hi,
>
> We have 2 independent devices running openbmc software on each of
> them. These devices can communicate with each other over a serial line
> using SLIP protocol. Now we would like to emulate the same using qemu.
>
> Do we have any provision to communicate 2 guest machines over a serial
> interface using SLIP protocol?

You can connect the two chardev backends to each other. One will want to
be a server, the other a client. You can use pipe, socket or network
backends to do this.

> We have tried a few options which are not helpful to solve our purpose.
> It will be really helpful if you can provide us some guidance on this.

What have you tried so far?

>
> Thanks


-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


More information about the openbmc mailing list