I’m actually trying to emulate the linux kernel using Qemu and busybox.
So far I made this kernel image:
http://depositfiles.com/files/l9x9veg09
And launched Qemu using these arguments:
qemu-system-x86_64 -m 256 -s -hda rootfs.img -kernel linux-2.6.34.12/arch/x86/boot/bzImage -append “root=/dev/sda \ init=/bin/sh”
But once the kernel is launched I get a message saying:
Kernel Panic. No init found. Try passing init= option to kernel…
I though adding “init=/bin/sh” to the arguments would solve the problem but it didn’t. I’m a begginer in this domain. Can someone help me with this? Thank you
I’m actually trying to emulate the linux kernel using Qemu and busybox. So far
Share
When using Busybox, you want to pass -initrd initramfs instead of init=/bin/sh to qemu. Try this