Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel Crash during boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Wed Mar 23, 2016 1:44 pm    Post subject: [SOLVED] Kernel Crash during boot Reply with quote

I will be the first to admit I'm a little rusty (it has been over a year since I've run Gentoo on bare metal, and this is my first time as a VM), but here we go!

TL;DR: My system won't boot.

Setup

Host OS: OS X 10.11.4
VMWare: 8.1.0 Pro
VM Details: UEFI Boot (unsupported by VMWare; part of the reason I'm attempting Gentoo on VMWare, long story), X86_64, no-multilib, 3GB RAM, SATA Disks, 2 CPU, no initramfs (I boot straight into the kernel from rEFInd)

Installation Methodology:

Due to the fact EFI support within VMWare is sketchy at best and the Gentoo minimal CD doesn't seem to want to boot from an EFI booted VM, I opted to bootstrap Gentoo from Arch's install image (since I've been using Arch for the past year and know it fairly well).

Basically I followed the handbook, with manual steps for places where the handbook called for using a Gentoo tool (such as mirrorselect).

My boot loader is rEFInd, following: https://wiki.gentoo.org/wiki/Refind#Manual_installation as the refine-install script wouldn't install drivers for my /boot. I modified my EFI boot table to load refind_x64.efi rather than just rename it to bootx64.efi.

FS Layout:

/dev/sda1: fat32 EFI partition, mounts at /boot/efi (no auto)
/dev/sda2: ext4 partition, mounts at /boot
/dev/sda3: ext4 partition, rootfs
/dev/sda4: jfs partition, mounts at /var
/dev/sda5: jfs partition, mounts at /home
/dev/sda6: swap partition

Mount points /boot, /boot/efi, /var, and /home are immutable (chattr -i <dir>).

Kernel:

My kernel is manually configured, using an amalgamation of a dump of my Arch kernel config from a working VM, an article on the Gentoo forums from 2013, the Gentoo Handbook guidelines, and my own reading of every single option. I will post my .config if and when we need it.

The Problem:

When trying to boot with a standard setup or single user mode, the VM simply locks up. When I put the kernel into debug mode (I preconfigure several common setups in refind_linux.conf just in case) VMWare throws an error alerting me that the VM has stopped the CPU and I need to reboot.

The last line printed in all cases is this (typing manually as I don't have copy/paste working yet as I can't boot):

Code:
sd 0:0:0:0: [sda] Attached SCSI disk


Before that I see a ton of errors about ata* SATA link down (SStatus 0 SControl 300).

What I want to do next:

Obviously I would love to get the machine booted, but without any logs or ability to control the console (due to VM lock up) I don't even know where to start. So, my first question is how do I do one or more of the following:

  • Capture the kernel debugging output in absence of a working system logger? In Arch systemd seemed to do this for me (I've done quite a bit of reading kernel debug lines due to some EFI issues in that space), but I refuse to use systemd on Gentoo. I mean, I can try to make the switch and rollback to a snapshot worse case once I know the error.[/*]
  • Load the kernel (i.e. put it through its paces) in my archiso environment without actually having it run the system (so I can make changes and test)?[/*]


Is it worth trying the genkernel route? In my many years of using Gentoo I've never used genkernel, so I'm a bit wary of having to do so now. I am perfectly willing to use it as a debugging step (I can just snapshot before moving over to it; easy roll back) if it will help.
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.


Last edited by RazielFMX on Wed Mar 23, 2016 6:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Wed Mar 23, 2016 6:32 pm    Post subject: Reply with quote

Alright, I fixed the kernel crash and fixed the subsequent module load failure... mostly. I'm going to mark this as solved as the problems I have now are kernel related but I should be able to work through without assistance.

The fix: There was a typo in my PARTUUID statements (the PARTUUID I stated was for /dev/sda2 instead of /dev/sda3) in refind_linux.conf so it was failing to find my root file system. The module loading issue was due to a typo in /etc/conf.d/modules.

I've got a host of other issues (errors from openrc as well as the fact by keyboard doesn't work) but I should be able to work through them in a chroot'd environment.
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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