Re: User question: how to connect two VMs using serial port?

Elazar Leibovich
2016-03-14T11:22:54Z

Not an expert, but looks like

$ mkfifo x
$ kvm -hda img -serial pipe:x&
$ kvm -hda img -serial pipe:x&

Could do the trick.

You can cat and echo information from the VMs when using this approach

On Mon, Mar 14, 2016 at 12:10 PM, Aleksander Alekseev <afiskon@devzen.ru> wrote:
> Hello
>
> I would like to connect two VMs using serial port for kernel debugging
> purposes. It is quite simple in VirtualBox:
>
> https://www.howtoforge.com/how-to-set-up-a-serial-port-between-two-virtual-machines-in-virtualbox
>
> I wonder how to do the same in KVM?
>
> --
> Best regards,
> Aleksander Alekseev
> http://eax.me/
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html