I just finished a fresh installation of gentoo on a laptop and everything seems to be working fine when I boot with a standard gentoo-sources kernel.
My intention is to use Xen on this machine, so I followed the Gentoo Xen Wiki and I believe that I did it properly but when I rebooted the computer, the system didn't boot, it got stuck on a kernel panic.
Considering that the system boots and works fine with the non Xen kernel, I didn't expect any problem so right now I'm a bit lost about what to look for.
If this message will be better placed on another subforum, please move it to the relevant place and excuse my ignorance.
This is some of the information that may be relevant but if I'm missing something, please let me know and I'll update this message with the requested information:
uname -a
Code: Select all
Linux patitotil 6.12.58-gentoo #9 SMP PREEMPT_DYNAMIC Wed Jan 21 16:54:33 CET 2026 x86_64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz GenuineIntel GNU/LinuxCode: Select all
[I] app-emulation/xen
Available versions: 4.19.3^st ~4.20.2^st {+boot-symlinks debug flask secureboot uefi}
Installed versions: 4.19.3^st(16:24:41 20/01/26)(boot-symlinks uefi -debug -flask -secureboot)
[I] app-emulation/xen-tools
Available versions: 4.19.3(0/4.19)^t ~4.20.2(0/4.20)^t {api debug doc +hvm +ipxe lzma ocaml ovmf pygrub python +qemu +qemu-traditional +rombios screen sdl selinux static-libs system-ipxe system-qemu system-seabios systemd zstd PYTHON_SINGLE_TARGET="python3_11 python3_12 python3_13"}
Installed versions: 4.19.3(0/4.19)^t(16:13:09 20/01/26)(hvm ipxe qemu qemu-traditional rombios -api -debug -doc -lzma -ocaml -ovmf -pygrub -python -screen -sdl -selinux -static-libs -system-ipxe -system-qemu -system-seabios -systemd -zstd PYTHON_SINGLE_TARGET="python3_13 -python3_11 -python3_12")
Code: Select all
-rw-r--r-- 1 root root 14M ene 21 16:56 System.map
-rw-r--r-- 1 root root 15M abr 7 2025 System.map-6.12.21-gentoo
-rw-r--r-- 1 root root 15M abr 7 2025 System.map-6.12.21-gentoo.old
-rw-r--r-- 1 root root 14M ene 21 16:56 System.map-6.12.58-gentoo
-rw-r--r-- 1 root root 15M ene 21 11:01 System.map-6.12.58-gentoo.old
-rw-r--r-- 1 root root 15M ene 21 11:01 System.map.old
-rw-r--r-- 1 root root 15M abr 3 2025 System.old
-rw-r--r-- 1 root root 173K ene 20 12:42 amd-uc.img
-rw-r--r-- 1 root root 197K abr 7 2025 config-6.12.21-gentoo
-rw-r--r-- 1 root root 197K abr 7 2025 config-6.12.21-gentoo.old
-rw-r--r-- 1 root root 201K ene 21 16:56 config-6.12.58-gentoo
-rw-r--r-- 1 root root 201K ene 21 11:01 config-6.12.58-gentoo.old
drwxr-xr-x 6 root root 4,0K ene 21 19:34 grub
-rw-r--r-- 1 root root 37M abr 7 2025 initramfs-6.12.21-gentoo.img
-rw-r--r-- 1 root root 37M abr 7 2025 initramfs-6.12.21-gentoo.img.old
-rw-r--r-- 1 root root 14M ene 21 16:56 initramfs-6.12.58-gentoo.img
-rw-r--r-- 1 root root 14M ene 21 11:01 initramfs-6.12.58-gentoo.img.old
-rw-r--r-- 1 root root 25M ene 20 12:37 intel-uc.img
-rw-r--r-- 1 root root 25M ene 21 16:56 vmlinuz
-rw-r--r-- 1 root root 25M abr 7 2025 vmlinuz-6.12.21-gentoo
-rw-r--r-- 1 root root 25M abr 7 2025 vmlinuz-6.12.21-gentoo.old
-rw-r--r-- 1 root root 25M ene 21 16:56 vmlinuz-6.12.58-gentoo
-rw-r--r-- 1 root root 25M ene 21 11:01 vmlinuz-6.12.58-gentoo.old
-rw-r--r-- 1 root root 25M ene 21 11:01 vmlinuz.old
-rw-r--r-- 1 root root 2,8K ene 20 16:24 xen-4.19.3.config
-rw-r--r-- 1 root root 1,2M ene 20 16:24 xen-4.19.3.gz
-rw-r--r-- 1 root root 1,2M ene 20 16:24 xen-4.19.gz
-rw-r--r-- 1 root root 1,2M ene 20 16:24 xen-4.gz
-rw-r--r-- 1 root root 1,2M ene 20 16:24 xen.gz
Code: Select all
Runlevel: shutdown
killprocs [ stopped ]
savecache [ stopped ]
mount-ro [ stopped ]
Runlevel: sysinit
devfs [ started ]
kmod-static-nodes [ started ]
systemd-tmpfiles-setup-dev [ started ]
sysfs [ started ]
udev [ started ]
dmesg [ started ]
udev-trigger [ started ]
cgroups [ started ]
Runlevel: nonetwork
local [ started ]
Runlevel: default
metalog [ started ]
wpa_supplicant [ started ]
dhcpcd [ started ]
dbus [ started ]
net.enp9s0f1 [ started ]
net.eth0 [ stopped ]
net.wlp8s0 [ stopped ]
netmount [ stopped ]
thermald [ started ]
acpid [ started ]
consolefont [ stopped ]
cronie [ started ]
tlp [ started ]
local [ started ]
Runlevel: xen
xencommons [ stopped ]
xenstored [ stopped ]
xenconsoled [ stopped ]
xen-watchdog [ stopped ]
xendomains [ stopped ]
Runlevel: boot
hwclock [ started ]
modules [ started ]
fsck [ started ]
termencoding [ started ]
hostname [ started ]
procfs [ started ]
root [ started ]
mtab [ started ]
swap [ started ]
localmount [ started ]
seedrng [ started ]
sysctl [ started ]
bootmisc [ started ]
save-termencoding [ started ]
loopback [ started ]
binfmt [ started ]
alsasound [ started ]
keymaps [ started ]
save-keymaps [ started ]
systemd-tmpfiles-setup [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
Dynamic Runlevel: manual
Code: Select all
GRUB_DISTRIBUTOR="Gentoo"
GRUB_THEME="/boot/grub/themes/gentoo_glass/theme.txt"
GRUB_DISABLE_LINUX_PARTUUID=false
GRUB_CMDLINE_XEN="gnttab_max_frames=256 sched=credit"
GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=1024M,max:1024M"
GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT="softlevel=xen"
Code: Select all
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-88d5675a-e2a6-48f2-a784-7f5e291228f9' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88d5675a-e2a6-48f2-a784-7f5e291228f9
else
search --no-floppy --fs-uuid --set=root 88d5675a-e2a6-48f2-a784-7f5e291228f9
fi
echo 'Loading Linux 6.12.58-gentoo ...'
linux /boot/vmlinuz-6.12.58-gentoo root=UUID=88d5675a-e2a6-48f2-a784-7f5e291228f9 ro
echo 'Loading initial ramdisk ...'
initrd /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.12.58-gentoo.img
}
Code: Select all
menuentry 'Gentoo GNU/Linux, with Xen hypervisor' --class gentoo --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-88d5675a-e2a6-48f2-a784-7f5e291228f9' {
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88d5675a-e2a6-48f2-a784-7f5e291228f9
else
search --no-floppy --fs-uuid --set=root 88d5675a-e2a6-48f2-a784-7f5e291228f9
fi
echo 'Loading Xen xen ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen.gz placeholder gnttab_max_frames=256 sched=credit dom0_mem=1024M,max:1024M ${xen_rm_opts}
echo 'Loading Linux 6.12.58-gentoo ...'
module2 /boot/vmlinuz-6.12.58-gentoo placeholder root=UUID=88d5675a-e2a6-48f2-a784-7f5e291228f9 ro softlevel=xen
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initramfs-6.12.58-gentoo.img
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/intel-uc.img
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/amd-uc.img
}
It is a bit too long so I left it on a pastebin
Picture with the panic
Kernel panic - not syncing: Attempt to kill init! exitcode=0x00000004
Building / compiling the kernel ( same computer, run on the system with the kernel that boots fine )
Code: Select all
clear && make && emerge @module-rebuild && make modules_install && make install
grub-mkconfig -o /boot/grub/grub.cfg
Code: Select all
dracut --force
dracut[I]: Executing: /usr/bin/dracut --force
dracut[I]: 70bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
find: '/etc/dracut.conf.d': No such file or directory
dracut[I]: 74nfs: Could not find any command of 'rpcbind portmap'!
dracut[I]: 70bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
find: '/etc/dracut.conf.d': No such file or directory
dracut[I]: 74nfs: Could not find any command of 'rpcbind portmap'!
dracut[I]: *** Including module: bash ***
dracut[I]: *** Including module: i18n ***
dracut[E]: i18n_vars not set! Please set up i18n_vars in configuration file.
dracut[I]: No KEYMAP configured.
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: initqueue ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
grep: /var/tmp/dracut.di9PZMr/initramfs/etc/shadow: No such file or directory
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing GenuineIntel.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: Stored kernel commandline:
dracut[I]: root=UUID=88d5675a-e2a6-48f2-a784-7f5e291228f9 rootfstype=ext4 rootflags=rw,noatime
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initramfs-6.12.58-gentoo.img.tmp' ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: Using auto-determined compression method 'zstd'
dracut[I]: *** Creating initramfs image file '/boot/initramfs-6.12.58-gentoo.img.tmp' done ***
dracut[I]: *** Moving image file '/boot/initramfs-6.12.58-gentoo.img.tmp' to '/boot/initramfs-6.12.58-gentoo.img' ***
dracut[I]: *** Moving image file '/boot/initramfs-6.12.58-gentoo.img.tmp' to '/boot/initramfs-6.12.58-gentoo.img' done ***
thanks for the help and the time


