Page 1 of 1

Monitoring Serial Port in QEMU

Posted: Sun Sep 19, 2021 4:58 pm
by PavelChekov
I'm a bit of a newbie when it comes to QEMU, and I wondered how I tell it to put the serial ports output into a file?

Thanks

Re: Monitoring Serial Port in QEMU

Posted: Sun Sep 19, 2021 6:47 pm
by Octocontrabass

Re: Monitoring Serial Port in QEMU

Posted: Tue Sep 21, 2021 6:50 pm
by PavelChekov
How about sending to it from outside the VM?

Re: Monitoring Serial Port in QEMU

Posted: Tue Sep 21, 2021 8:46 pm
by Octocontrabass
Pick a different character device instead of "file".

If you still need to write the output to a log, use chardev to specify the device. Here's an example of using chardev in place of "-serial stdio" to write the output to a log.

The "-chardev" option is explained in more detail in the QEMU manual.