Unable to run linux kernel image on qemu -


i have compiled linux kernel (stable) tree , got initrd , bzimage. try running on qemu emulator having trouble specifying root file system partition. (i know partition thats loaded run initrd from).

my system ubuntu 12.04 installed via wubi on windows.

the command have been using

qemu-system-x86_64 -kernel bzimage  -initrd initrd.img-3.11 -append "root=/no-clue-what-to-put" 

i know root argument specifies root partition is. image running on qemu appreciated.

do have disk image , root filesystem give qemu , kernel?

you need more linux kernel boot linux system. qemu, need root filesystem contained within virtual disk image well. contain programs kernel "hands control" when it's done booting, 'init' or 'systemd'.

so have generate qemu-disk image contains root filesystem. if created such root filesystem on first partition of virtual disk, can specify virtual disk parameter qemu "-hda /path/to/qemu/disk/image", , can tell kernel use first partition of virtual disk "-append "root=/dev/sda1" (it /dev/vda1 or /dev/hda1 depending on kind of disk image created).

so final command like:

qemu-system-x86_64 -kernel bzimage -initrd initrd.img-3.11 -hda /path/to/your/qemu/disk/image -append "root=/dev/sda1"


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -