Cannot boot iso from Bare Bones tutorial

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
blackgin
Posts: 3
Joined: Fri Dec 12, 2014 2:06 pm

Cannot boot iso from Bare Bones tutorial

Post 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?
Last edited by blackgin on Fri Dec 12, 2014 2:18 pm, edited 1 time in total.
User avatar
iansjack
Member
Member
Posts: 4707
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Cannot boot iso from Bare Bones tutorial

Post by iansjack »

And then how did you create the CD from the ISO image?
blackgin
Posts: 3
Joined: Fri Dec 12, 2014 2:06 pm

Re: Cannot boot iso from Bare Bones tutorial

Post 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
blackgin
Posts: 3
Joined: Fri Dec 12, 2014 2:06 pm

Re: Cannot boot iso from Bare Bones tutorial

Post 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?
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: Cannot boot iso from Bare Bones tutorial

Post 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.
Post Reply