LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   QEMU and kernel testing (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-and-kernel-testing-4175483732/)

szboardstretcher 11-07-2013 07:50 AM

QEMU and kernel testing
 
So I have some custom kernels I need to build and such, and QEMU is the preferred method of testing them.

When using QEMU though, there is no scroll back to the "dmesg" output. And obviously I cant grab the dmesg file after. Also, none of the redirection methods, including TCP, telnet, file, or anything actually put this output into a file.

So. How do I get ALL of the text output from QEMU into a file to debug? OR, how do you kernel experts debug things like this in QEMU?

dyasny 11-07-2013 12:54 PM

normally, you would ssh into the VM and pipe dmesg into less

szboardstretcher 11-10-2013 02:25 PM

Quote:

Originally Posted by dyasny (Post 5060174)
normally, you would ssh into the VM and pipe dmesg into less

Im not following.

If I compile a new kernel and intramfs and boot them up in QEMU, and the kernel crashes halfway through the bootup,.. how am i supposed to SSH to the instance?

I was hoping to find a way to catch all of the kernel text output from start to crash from QEMU. How do kernel/qemu people go about doing that? Because I cannot find the documentation to explain how to do that!

dyasny 11-10-2013 04:58 PM

I thought you meant running the actual build process under QEMU. I'd try to use the qemu-monitor console if I were you:
http://stackoverflow.com/questions/1...-host-terminal

r0b0 11-13-2013 06:29 AM

You could send your boot messages to a serial device and monitor the serial console of qemu on your host.


All times are GMT -5. The time now is 03:24 AM.