[Solved] Virtualbox 6.1 crashes. Host Arch 5.11.11. Guest Gentoo 5.11.27.

Discussions related to using VirtualBox on Linux hosts.
Post Reply
poxu
Posts: 4
Joined: 1. Jun 2017, 10:36

[Solved] Virtualbox 6.1 crashes. Host Arch 5.11.11. Guest Gentoo 5.11.27.

Post by poxu »

I am trying to install Gentoo in Virtualbox. My host is Arch.
My CPU is Ryzen 3600

Gentoo live cd loads just fine and I can compile software.
I am using genkernel to compile the kernel and grub2 as a bootloader.

After I install grub and reboot VM, I see a message that says grub is loading.
And then, Virtualbox crashes.

I have no idea why ((. Could somebody help me? Here are logs attached
Attachments
VBoxlog.zip
(63.57 KiB) Downloaded 8 times
Last edited by poxu on 11. Apr 2021, 14:51, edited 1 time in total.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox 6.1 crashes. Host Arch 5.11.11. Guest Gentoo 5.11.27.

Post by scottgus1 »

00:00:08.027821 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:00:08.031698 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:08.033148 Changing the VM state from 'RUNNING' to 'GURU_MEDITATION'
00:00:08.033166 Console: Machine state changed to 'GuruMeditation'
00:00:08.033438 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00:00:08.033438 !!
00:00:08.033438 !! VCPU0: Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)
Crashes less than a hundredth of a second after touching the hard disk. Triple Fault means the instructions tried something so odd that Virtualbox said Oh no you don't! I can't figure out why, though.
poxu wrote:Gentoo live cd loads just fine and I can compile software.
I am using genkernel to compile the kernel and grub2 as a bootloader.
Maybe something here didn't compile correctly.

Try an Ubuntu VM to see if a regular OS will run OK. If it does, either there's an incompatibility or a setting off.
poxu
Posts: 4
Joined: 1. Jun 2017, 10:36

Re: Virtualbox 6.1 crashes. Host Arch 5.11.11. Guest Gentoo 5.11.27.

Post by poxu »

Crashes less than a hundredth of a second after touching the hard disk. Triple Fault means the instructions tried something so odd that Virtualbox said Oh no you don't! I can't figure out why, though.
Thank you so much!

I looked through what I have done with Gentoo and it appears I messed up grub installation.

I have partitioned my drive as GPT , but I'm using BIOS. And grub wants an empty partition marked as bios_boot (not the one mounter to /boot) if you want to load your system from GPT drive with BIOS. After I created it, everything went just fine.

That thing you mentioned should be somewhere in FAQ or among troubleshooting instructions. I didn't look thorough enough? Or I can make a proposal for that somewhere? You have told me, that the issue wasn't with Virtualbox and that helped me a lot.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: [Solved] Virtualbox 6.1 crashes. Host Arch 5.11.11. Guest Gentoo 5.11.27.

Post by scottgus1 »

Great! Glad you found the problem!

The things that can go wrong with a VM often change over time, and the manual would get bigger and bigger. And often the forum gurus (not me, I just read a lot) are able to figure out what the codes mean. What can help to understand a log message or error is to web-search the error (especially if it is in CAPITALIZED_UNDERSCORE_SPACED_WORDS) along with 'site:forums.virtualbox.org'. I do that web-search myself when an unfamiliar error message shows itself.
Post Reply