Page 1 of 1

[solved] QEMU + Minix 3 Textbook source code

Posted: Thu Nov 01, 2018 10:25 pm
by quadrant
Hi there!

I am trying to run the image from the Minix 3 textbook on QEMU. I am following the how-to guide from their Wiki. These are the commands I have entered:

Code: Select all

qemu-img create minix.img 1G
qemu-system-x86_64 -m 256 -cdrom minix.img -boot d -display curses
However I get the following error:

Code: Select all

Booting from DVD/CD...
Boot failed: Could not read from CDROM (code 0005)
I am running a x64 windows machine, and using WSL if that helps.

Hoping someone can help me out...

Note: I only allocate 1G because that's what the textbook says it needs. After the textbook version, Minix 3 becomes more complex and needs more space.
capture.png

Re: QEMU + Minix 3 Textbook source code

Posted: Thu Nov 01, 2018 11:41 pm
by klange
You've created a blank hard disk image and are then trying to pass it as a CD ROM image to QEMU with nothing else. You need to give QEMU the hard disk image you created with

Code: Select all

-drive file=minix.img,format=raw
as well as the ISO CD image.

Re: QEMU + Minix 3 Textbook source code

Posted: Fri Nov 02, 2018 4:29 pm
by quadrant
Wow! I feel so stupid #-o #-o #-o #-o #-o !
Thank you for clarifying that! The following code worked:

Code: Select all

qemu-system-x86_64 -m 256 -cdrom minix-3.1.0-book.iso -hda minix.img -boot d -display curses
Sometimes working when tired isn't the most intelligent thing to do =/
capture1.png
capture2.png