OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 2:09 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [solved] QEMU + Minix 3 Textbook source code
PostPosted: Thu Nov 01, 2018 10:25 pm 
Offline
Member
Member

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

Attachment:
capture.png
capture.png [ 16.95 KiB | Viewed 3698 times ]


Last edited by quadrant on Fri Nov 02, 2018 4:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: QEMU + Minix 3 Textbook source code
PostPosted: Thu Nov 01, 2018 11:41 pm 
Offline
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 676
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:
-drive file=minix.img,format=raw
as well as the ISO CD image.

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
 Post subject: Re: QEMU + Minix 3 Textbook source code
PostPosted: Fri Nov 02, 2018 4:29 pm 
Offline
Member
Member

Joined: Tue Apr 24, 2018 9:46 pm
Posts: 74
Wow! I feel so stupid #-o #-o #-o #-o #-o !
Thank you for clarifying that! The following code worked:
Code:
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 =/

Attachment:
capture1.png
capture1.png [ 12.64 KiB | Viewed 3640 times ]

Attachment:
capture2.png
capture2.png [ 17.82 KiB | Viewed 3640 times ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 151 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group