Monitoring Serial Port in QEMU

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Monitoring Serial Port in QEMU

Post 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
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Monitoring Serial Port in QEMU

Post by Octocontrabass »

User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Monitoring Serial Port in QEMU

Post by PavelChekov »

How about sending to it from outside the VM?
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Monitoring Serial Port in QEMU

Post 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.
Post Reply