I compiled a Linux by doing make menuconfig
then make
and now I have compiled the most recent version of Linux. How can I load the kernel into QEMU?
Asked
Active
Viewed 2.3k times
15
-
1Here is a fully automated QEMU + Buildroot setup that just works: https://github.com/cirosantilli/linux-kernel-module-cheat – Ciro Santilli OurBigBook.com Nov 20 '18 at 11:22
1 Answers
17
From qemu's help:
Linux/Multiboot boot specific:
-kernel bzImage use 'bzImage' as kernel image
-append cmdline use 'cmdline' as kernel command line
-initrd file use 'file' as initial ram disk
-dtb file use 'file' as device tree image
A quick test here using Arch's kernel/initrd (qemu -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img
) worked (dropped me into a recovery shell since I didn't provide a root device).

Renan
- 17,136
-
-
-
-
http://unix.stackexchange.com/questions/48302/running-bzimage-in-qemu – Coder404 Sep 16 '12 at 01:00