OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 5:08 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: OS booting in Qemu but not in VirtualBox v6
PostPosted: Wed Mar 06, 2019 8:02 am 
Offline
Member
Member

Joined: Mon Jun 04, 2018 8:10 am
Posts: 44
Hi!
I recently updated VirtualBox to version 6.0.4 and it does not want to boot my OS anymore (it did on version 5.x.x). Also the OS is booting fine in Qemu.
I have tried (almost) every system configuration (I/O APIC enabled/disabled, EFI on/off, Hardware clock in UTC time on/off, Chipset PIIX3 / ICH9).

When booting from a SATA or IDE controller my OS as Optical Drive it says "Could not read from the boot medium!" and when I boot with my OS as a floppy disk it goes into my bootloader and my bootloader tells me it cannot read from disk (my bootloader loads the kernel without a problem in Qemu or even in a real machine).

Any idea why VirtualBox does not want to boot my OS?

Thanks fro your help, regards


Top
 Profile  
 
 Post subject: Re: OS booting in Qemu but not in VirtualBox v6
PostPosted: Wed Mar 06, 2019 8:43 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5143
LIC wrote:
When booting from a SATA or IDE controller my OS as Optical Drive it says "Could not read from the boot medium!"

Are you creating a valid El Torito bootable CD image?

LIC wrote:
and when I boot with my OS as a floppy disk it goes into my bootloader and my bootloader tells me it cannot read from disk (my bootloader loads the kernel without a problem in Qemu or even in a real machine).

That means your code is wrong. Most likely, you didn't initialize all of the registers you're using. I can't tell you any more without seeing your code though.


Top
 Profile  
 
 Post subject: Re: OS booting in Qemu but not in VirtualBox v6
PostPosted: Wed Mar 06, 2019 9:52 am 
Offline
Member
Member

Joined: Mon Jun 04, 2018 8:10 am
Posts: 44
Is the El Torito mandatory? Because I don't remember having to create such a CD with virtualBox version 5 or with my real machine (USB or SATA boot).

Ok, for my bootloader I'll try to fix it on my own and I'll come back on the forum if I can't figure out the issue.


Top
 Profile  
 
 Post subject: Re: OS booting in Qemu but not in VirtualBox v6
PostPosted: Wed Mar 06, 2019 11:08 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5143
LIC wrote:
Is the El Torito mandatory?

It's mandatory for booting from a CD. You don't need it to boot from hard drives or USB flash drives.

LIC wrote:
Ok, for my bootloader I'll try to fix it on my own and I'll come back on the forum if I can't figure out the issue.

Good luck!


Top
 Profile  
 
 Post subject: Re: OS booting in Qemu but not in VirtualBox v6
PostPosted: Wed Mar 06, 2019 3:25 pm 
Offline
Member
Member

Joined: Mon Jun 04, 2018 8:10 am
Posts: 44
Okay, thanks!


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 118 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