pikhq / bootstrap-linux

A Linux system which is just barely capable of building itself.
123 stars 14 forks source link

Can't boot bootstrap-linux in qemu #6

Closed przmv closed 11 years ago

przmv commented 11 years ago

Hello!

I'm sorry for being a total newbie.

I've built bootstrap-linux, made filesystem.img, but when I try to boot it with qemu (qemu-system-x86_64 filesystem.img) I get error:

Booting form Hard disk...
Boot failed: not a bootable disk
pikhq commented 11 years ago

bootstrap-linux doesn't actually set up a bootloader on the filesystem image. You may wish to use a nice feature of qemu, though. qemu is able to load Linux kernels passed to it on the command line. For instance, I usually boot boostrap-linux as follows: qemu-system-x86_64 -kernel path/to/vmlinuz -append "root=/dev/sda" filesystem.img