Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enabling KVM for AMD leads to boot hang
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
MadWhiteCat
n00b
n00b


Joined: 09 Mar 2025
Posts: 3

PostPosted: Sun Mar 09, 2025 8:52 pm    Post subject: Enabling KVM for AMD leads to boot hang Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6239
Location: Dallas area

PostPosted: Sun Mar 09, 2025 9:06 pm    Post subject: Reply with quote

Did you set IOMMU_DEFAULT_PASSTHROUGH
_________________
UM780, 6.12 zen kernel, gcc 13, openrc, wayland
Back to top
View user's profile Send private message
MadWhiteCat
n00b
n00b


Joined: 09 Mar 2025
Posts: 3

PostPosted: Sun Mar 09, 2025 9:39 pm    Post subject: Reply with quote

Tried this now, rebuilt kernel - still got stuck at "Activating swap devices".
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6239
Location: Dallas area

PostPosted: Sun Mar 09, 2025 9:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
MadWhiteCat
n00b
n00b


Joined: 09 Mar 2025
Posts: 3

PostPosted: Sun Mar 09, 2025 10:39 pm    Post subject: Reply with quote

Tried building everything as module, no difference.
Here's my .config - https://0x0.st/8SsR.txt
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