OSDev.org
https://forum.osdev.org/

Monitoring Serial Port in QEMU
https://forum.osdev.org/viewtopic.php?f=1&t=53779
Page 1 of 1

Author:  PavelChekov [ Sun Sep 19, 2021 4:58 pm ]
Post subject:  Monitoring Serial Port in QEMU

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

Author:  Octocontrabass [ Sun Sep 19, 2021 6:47 pm ]
Post subject:  Re: Monitoring Serial Port in QEMU

-serial file:your_file_name_here.log

Author:  PavelChekov [ Tue Sep 21, 2021 6:50 pm ]
Post subject:  Re: Monitoring Serial Port in QEMU

How about sending to it from outside the VM?

Author:  Octocontrabass [ Tue Sep 21, 2021 8:46 pm ]
Post subject:  Re: Monitoring Serial Port in QEMU

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/