OS booting in Qemu but not in VirtualBox v6

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
LIC
Member
Member
Posts: 44
Joined: Mon Jun 04, 2018 8:10 am
Libera.chat IRC: lic

OS booting in Qemu but not in VirtualBox v6

Post by LIC »

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
Octocontrabass
Member
Member
Posts: 5586
Joined: Mon Mar 25, 2013 7:01 pm

Re: OS booting in Qemu but not in VirtualBox v6

Post by Octocontrabass »

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.
LIC
Member
Member
Posts: 44
Joined: Mon Jun 04, 2018 8:10 am
Libera.chat IRC: lic

Re: OS booting in Qemu but not in VirtualBox v6

Post by LIC »

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.
Octocontrabass
Member
Member
Posts: 5586
Joined: Mon Mar 25, 2013 7:01 pm

Re: OS booting in Qemu but not in VirtualBox v6

Post by Octocontrabass »

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!
LIC
Member
Member
Posts: 44
Joined: Mon Jun 04, 2018 8:10 am
Libera.chat IRC: lic

Re: OS booting in Qemu but not in VirtualBox v6

Post by LIC »

Okay, thanks!
Post Reply