* [Qemu-devel] A question about virtual machine communication with Guest through serial device @ 2016-10-31 6:41 Liu Pedroa 2016-11-04 13:12 ` Stefan Hajnoczi 0 siblings, 1 reply; 2+ messages in thread From: Liu Pedroa @ 2016-10-31 6:41 UTC (permalink / raw) To: qemu-devel@nongnu.org Hi Everyone. I have a sample question. As the subset description. Guest OS : Ubuntu OS QEMU : linux kernel 4.8 so i want the virtual client OS can communication( can send and receive messages through serial device) with Guest OS. what should i do? ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] A question about virtual machine communication with Guest through serial device 2016-10-31 6:41 [Qemu-devel] A question about virtual machine communication with Guest through serial device Liu Pedroa @ 2016-11-04 13:12 ` Stefan Hajnoczi 0 siblings, 0 replies; 2+ messages in thread From: Stefan Hajnoczi @ 2016-11-04 13:12 UTC (permalink / raw) To: Liu Pedroa; +Cc: qemu-devel@nongnu.org [-- Attachment #1: Type: text/plain, Size: 1012 bytes --] On Mon, Oct 31, 2016 at 06:41:23AM +0000, Liu Pedroa wrote: > Hi Everyone. > > > I have a sample question. As the subset description. > > > Guest OS : Ubuntu OS > > QEMU : linux kernel 4.8 > > > so i want the virtual client OS can communication( can send and receive messages through serial device) with Guest OS. what should i do? Add a chardev to your QEMU command-line (try -serial unix:/tmp/test.sock,server,nowait). Read the qemu(1) man page for details on chardevs and all the options. Inside the guest you need to access the serial port (e.g. /dev/ttyS0 on Linux but make sure no login tty is running on that port). On the host you can access the UNIX domain socket given on your QEMU command-line. That would be /tmp/test.sock in this example. Also consider using virtio-serial instead of the traditional ISA serial device. It allows you to add/remove named (e.g. org.myproject.agent.0) ports at run-time. Search online to find example syntax. Stefan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 455 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-04 13:12 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-10-31 6:41 [Qemu-devel] A question about virtual machine communication with Guest through serial device Liu Pedroa 2016-11-04 13:12 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).