[solved] QEMU + Minix 3 Textbook source code

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
quadrant
Member
Member
Posts: 74
Joined: Tue Apr 24, 2018 9:46 pm

[solved] QEMU + Minix 3 Textbook source code

Post 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
Last edited by quadrant on Fri Nov 02, 2018 4:38 pm, edited 1 time in total.
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: QEMU + Minix 3 Textbook source code

Post 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.
quadrant
Member
Member
Posts: 74
Joined: Tue Apr 24, 2018 9:46 pm

Re: QEMU + Minix 3 Textbook source code

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