r/virtualbox • • Jan 02 '21

Solved KERNEL PANIC! when installing a linux distro [SOLUTION]

For anyone in the present or near future who might have a problem when installing a linux distro on VB and encounter a kernel panic error when installing. I've scoured the internet for answers and without any luck until I accidentally toggled the enable nested virtualization/v-AMD option which seemed to fix it; hope this helps.

[Manjaro KDE x64]

19 Upvotes

10 comments sorted by

2

u/[deleted] Jan 05 '21 edited Jan 05 '21

Adding this into the thread, because the VT-x/AMD-V checkbox was greyed out and I was facing similar issues to what OP was describing (context: on my end, Arch Linux guest ISO kept kernel panicking on Windows 10 Pro host, VBox ver. 6.1.16 r140961). Some features in Windows like WSL 2 (not WSL 1) were making it so I could not enable that setting, so I found this on VBox's fourm - https://forums.virtualbox.org/viewtopic.php?f=1&t=62339

(ETA: revised wording)

1

u/NotthegardenofEden Jan 05 '21

Thanks for the extra note

1

u/TheTruffi Feb 06 '21

Thanks man for the link to this thread!!! i couldn't get Fedora 33 1.2 running on my Win10 Host. Every other VM works just fine. It was the VT-x/AMD-V checkbox blocked by Hyper-V

2

u/[deleted] Feb 06 '21

You're welcome

1

u/there_NOW Aug 31 '22

You are amazing

1

u/jimoconnell Jan 03 '21

Commenting so I can find this again.

No more “Panic! At the Distro”

2

u/NotthegardenofEden Jan 03 '21

Absolute gold 🥇

1

u/Face_Plant_Some_More Jan 03 '21 edited Jan 04 '21

I'm glad you appear to have resolved your issue. However, I don't think that toggling the setting you described is a general solution of kernel panic errors on Linux Guests running on a Virtual Box hypervisor. To be useful as a solution to the general public, you are going to add a little more detail about your Virtual Box setup, and the hardware you are using.

I'd note, for example, you can easily see kernel panics on Linux Guests, running with Virtual Box VMs on Windows Hosts, when hyper-v is enabled on said Windows Hosts. Turning of hyper-v on said Windows Hosts is the accepted solution.

1

u/NotthegardenofEden Jan 03 '21

For me it worked. I'm only adding to the list of possible solutions

1

u/Face_Plant_Some_More Jan 04 '21

Great! Again, for this to be useful to other users, you are going to have to explain what setup you have Virtual Box host / guest wise, and your actual hardware.