Write QEMU booting virtual machine output to a file

I've been trying out QEMU to play around with some VMs. It's working well, but I keep wanting to be able to view the text (Linux boot process) that quickly scrolls by in the QEMU window on startup of my Linux virtual machine. Is there a way to retrieve this via QEMU?


Solution 1:

Assuming that gets sent to a virtual serial port - this may need some setup on the guest OS end.

try appending -serial file:FILENAME to the command you use to start QEMU.