Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

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).

share|improve this answer
    
could I just do qemu -kernel linux/arch/x86/boot/bzimage? –  Coder404 Sep 9 '12 at 15:06
    
@Coder404 I think so. –  Renan Sep 9 '12 at 15:33
    
Ok thanks! I'll try it and let you know the results! –  Coder404 Sep 9 '12 at 15:42
    

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.