Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to boot as VirtualBox guest
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lucatrv
n00b
n00b


Joined: 10 Mar 2019
Posts: 13

PostPosted: Wed May 22, 2024 10:02 am    Post subject: Unable to boot as VirtualBox guest Reply with quote

I've freshly installed Gentoo with systemd, following all instructions of the handbook and systemd / vmware / virtualbox wiki pages. The system boots successfully as a VMware Player guest, but I am unable to boot as a VirtualBox guest. I tried both with manual kernel configuration, and with the binary distribution kernel, which I thought would have been a safe bet.
Neither one boots under VirtualBox, the system freezes with blinking Caps Lock key and following message:
Code:
Kernel panic - not syncing: Attempted to kill init! exit code=0x00007f00

I tried with the Gentoo Minimal Installation CD, and it boots correctly both under VMware Player and VirtualBox.
After several unsuccessful attempts, I hope that someone can help me out here...
Back to top
View user's profile Send private message
tckosvic
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2023
Posts: 95

PostPosted: Fri May 24, 2024 4:44 pm    Post subject: Reply with quote

gentoo works fine as a qemu/libvirt guest with openSUSE host starting with a desktop profile.

not much help solving problems but might be an easy alternative.

tom kosvic
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54450
Location: 56N 3W

PostPosted: Sat May 25, 2024 10:27 am    Post subject: Reply with quote

lucatrv,

Explain your VBox settings.
Is VBox setting up the guest space of EFI or BIOS.
Where is the emulated guest HDD attached?
SCSI is probably the wrong choice as that needs the Fusion drivers which are not built by default.
AHCI should work.

Any other settings that affect the guest environment

Code:
Kernel panic - not syncing: Attempted to kill init!
usually means that the init script ran of the end, so process ID 1 terminated.
That's not allowed as its in change of userspace.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lucatrv
n00b
n00b


Joined: 10 Mar 2019
Posts: 13

PostPosted: Sat Jun 08, 2024 9:41 pm    Post subject: Reply with quote

NeddySeagoon wrote:
lucatrv,

Explain your VBox settings.
Is VBox setting up the guest space of EFI or BIOS.
Where is the emulated guest HDD attached?
SCSI is probably the wrong choice as that needs the Fusion drivers which are not built by default.
AHCI should work.

Any other settings that affect the guest environment



I'm using BIOS, HDD was attached through virtio-scsi, now I changed it to AHCI but I'm getting the same issue, therefore I'm trying to move to QEMU...
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2971

PostPosted: Sun Jun 09, 2024 2:07 am    Post subject: Re: Unable to boot as VirtualBox guest Reply with quote

lucatrv wrote:
I've freshly installed Gentoo with systemd, following all instructions of the handbook and systemd / vmware / virtualbox wiki pages. The system boots successfully as a VMware Player guest, but I am unable to boot as a VirtualBox guest. I tried both with manual kernel configuration, and with the binary distribution kernel, which I thought would have been a safe bet.
Neither one boots under VirtualBox, the system freezes with blinking Caps Lock key and following message:
Code:
Kernel panic - not syncing: Attempted to kill init! exit code=0x00007f00

I tried with the Gentoo Minimal Installation CD, and it boots correctly both under VMware Player and VirtualBox.
After several unsuccessful attempts, I hope that someone can help me out here...


If you are running Virtualbox on Windows, try disabling Hyper-V in Windows features, following is the tutorial on Virtualbox forums.
Leaving Hyper-V enabled may also cause the kernel panic inside Gentoo guest.
https://forums.virtualbox.org/viewtopic.php?f=25&t=99390
Back to top
View user's profile Send private message
lucatrv
n00b
n00b


Joined: 10 Mar 2019
Posts: 13

PostPosted: Sun Jun 09, 2024 7:03 am    Post subject: Re: Unable to boot as VirtualBox guest Reply with quote

kimchi_sg wrote:
If you are running Virtualbox on Windows, try disabling Hyper-V in Windows features, following is the tutorial on Virtualbox forums.
Leaving Hyper-V enabled may also cause the kernel panic inside Gentoo guest.
https://forums.virtualbox.org/viewtopic.php?f=25&t=99390


I also tried that, at first Hyper-V was not enabled, then I tried to enable and disable it, the issue is still present.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2971

PostPosted: Sun Jun 09, 2024 3:37 pm    Post subject: Re: Unable to boot as VirtualBox guest Reply with quote

lucatrv wrote:
kimchi_sg wrote:
If you are running Virtualbox on Windows, try disabling Hyper-V in Windows features, following is the tutorial on Virtualbox forums.
Leaving Hyper-V enabled may also cause the kernel panic inside Gentoo guest.
https://forums.virtualbox.org/viewtopic.php?f=25&t=99390


I also tried that, at first Hyper-V was not enabled, then I tried to enable and disable it, the issue is still present.

You may also want to boot with kernel option init=/bin/bash for debugging, then see what is the output of
Code:
ls -l /usr/sbin/init

It should be a symlink to systemd executable.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum