Page 1 of 1

Cannot boot iso from Bare Bones tutorial

Posted: Fri Dec 12, 2014 2:15 pm
by blackgin
I'm trying to boot the myos.iso from Bare Bones tutorial using qemu:

Code: Select all

qemu-system-i386 -cdrom myos.iso
However the system doesn't boot. When trying to boot from CDROM it says:
Booting from DVD/CD...
Boot failed: Could not read from CDROM (code 0009)
I created the iso with grub-mkrescue following the tutorial:

Code: Select all

mkdir -p isodir
mkdir -p isodir/boot
cp myos.bin isodir/boot/myos.bin
mkdir -p isodir/boot/grub
cp grub.cfg isodir/boot/grub/grub.cfg
grub-mkrescue -o myos.iso isodir
Grub version installed on my system is:

Code: Select all

grub-install --version 
grub-install.real (GRUB) 2.02~beta2-9ubuntu1
Moreover the kernel boots fine with:

Code: Select all

qemu-system-i386 -kernel myos.bin
Where could the problem be?

Re: Cannot boot iso from Bare Bones tutorial

Posted: Fri Dec 12, 2014 2:17 pm
by iansjack
And then how did you create the CD from the ISO image?

Re: Cannot boot iso from Bare Bones tutorial

Posted: Fri Dec 12, 2014 2:20 pm
by blackgin
iansjack wrote:And then how did you create the CD from the ISO image?
I did not create a CD. I'm using the iso as cdrom image for qemu:

Code: Select all

qemu-system-i386 -cdrom myos.iso

Re: Cannot boot iso from Bare Bones tutorial

Posted: Sun Dec 14, 2014 4:55 am
by blackgin
To update, I think the problem resides in grub-mkrescue, since it shows also with the Meaty Skeleton tutorial, where I run the os in qemu with the automated script.
Any advice?

Re: Cannot boot iso from Bare Bones tutorial

Posted: Sun Dec 14, 2014 11:51 am
by jnc100
Do you have the 'grub-pc' package installed? There have been reports of issues with running grub-mkrescue on EFI systems that don't by default install the PC-BIOS version of grub.

Regards,
John.

edit: following a quick test with an EFI version of ubuntu 14.10, it appears you need the 'grub-pc-bin' package installed for grub-mkrescue to make a hybrid ISO. Obviously this is only your problem if you are using EFI ubuntu.