View previous topic :: View next topic |
Author |
Message |
MadWhiteCat n00b


Joined: 09 Mar 2025 Posts: 3
|
Posted: Sun Mar 09, 2025 8:52 pm Post subject: Enabling KVM for AMD leads to boot hang |
|
|
Hello everyone,
I've been following Gentoo QEMU setup instructions.
I enabled "Virtualization -> KVM for AMD processors support" kernel option (I have Ryzen 7 9800X3D), as well as virtualization support (SVM Mode) in BIOS.
After building kernel and rebooting, the system hangs indefinitely at either "Setting system clock using the hardware clock" or "Activating swap devices" - seemingly random on each reboot.
What made no difference:
- Setting "KVM for AMD processors support" as built-in or module
- Enabling other kernel options suggested in the QEMU guide (Intel module and "Useful kernel configuration options")
I also checked that I have IOMMU enabled in BIOS and valid IOMMU groups according to this Arch Wiki guide.
Tried seeing if anything useful appears in /var/log/rc.log (I enabled logging in /etc/rc.conf), but it seems that writing starts after these failure points. The log file wasn't updated on unsuccessful boots - I checked its contents from my Windows installation after a failed Gentoo boot.
What can I do to debug this further? Has anyone seen a similar problem before? |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6239 Location: Dallas area
|
Posted: Sun Mar 09, 2025 9:06 pm Post subject: |
|
|
Did you set IOMMU_DEFAULT_PASSTHROUGH _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
 |
MadWhiteCat n00b


Joined: 09 Mar 2025 Posts: 3
|
Posted: Sun Mar 09, 2025 9:39 pm Post subject: |
|
|
Tried this now, rebuilt kernel - still got stuck at "Activating swap devices". |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6239 Location: Dallas area
|
Posted: Sun Mar 09, 2025 9:48 pm Post subject: |
|
|
sounds like not all of the kvm stuff is set or set right.
Best to have kvm as a separate module, but kvm_amd needs to also be set the same way (both modules or both built in)
wgetpaste your .config file and maybe something will show there. _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
 |
MadWhiteCat n00b


Joined: 09 Mar 2025 Posts: 3
|
Posted: Sun Mar 09, 2025 10:39 pm Post subject: |
|
|
Tried building everything as module, no difference.
Here's my .config - https://0x0.st/8SsR.txt |
|
Back to top |
|
 |
|