OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Dec 07, 2021 5:55 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Monitoring Serial Port in QEMU
PostPosted: Sun Sep 19, 2021 4:58 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 71
Location: USS Enterprise NCC-1701, Space
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,
Space

Live Long And Prosper


Top
 Profile  
 
 Post subject: Re: Monitoring Serial Port in QEMU
PostPosted: Sun Sep 19, 2021 6:47 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3498
-serial file:your_file_name_here.log


Top
 Profile  
 
 Post subject: Re: Monitoring Serial Port in QEMU
PostPosted: Tue Sep 21, 2021 6:50 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 71
Location: USS Enterprise NCC-1701, Space
How about sending to it from outside the VM?

_________________
USS Enterprise NCC-1701,
Space

Live Long And Prosper


Top
 Profile  
 
 Post subject: Re: Monitoring Serial Port in QEMU
PostPosted: Tue Sep 21, 2021 8:46 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3498
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group