intermezzOS / kernel

A hobby operating system, in Rust
http://intermezzos.github.io/
Apache License 2.0
1.39k stars 90 forks source link

On systems that boot from EFI by default, qemu cannot read the image #56

Closed sigmavirus24 closed 8 years ago

sigmavirus24 commented 8 years ago

So I've spent a couple days struggling with this, but I finally found an answer that helped.

tl;dr If you're developing in an OS that has been booted on an EFI system, grub-mkrescue assumes you want your image to have the EFI protections as well. In that case, you'll see a message about failing to boot from CDROM, specifically code 0009. In that case, you need to install grub-pc-bin and update your Makefile so the grub-mkrescue line looks like:

    grub-mkrescue /usr/lib/grub/i386-pc -o build/os.iso build/isofiles

Cheers!

sigmavirus24 commented 8 years ago

I just found the trouble shooting section :+1: