Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KVM/QEMU/libvirt VM won't boot due to kernel module shenanig
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
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 80

PostPosted: Sun Nov 24, 2024 4:47 pm    Post subject: KVM/QEMU/libvirt VM won't boot due to kernel module shenanig Reply with quote

I've got this VM I'm trying to boot, and whenever I try, I get this:
Code:
Error starting domain: Failed to open file '/lib/modules/6.12.1-gentoo/modules.alias': No such file or directory
This isn't so strange to me, as I have a purely monolithic kernel with loadable modules disabled. However, I have no clue what to do about this error message, short of enabling loadable modules, which I'd prefer not to do. Anyone know what's going on?
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 661

PostPosted: Sun Nov 24, 2024 5:18 pm    Post subject: Reply with quote

What are you trying to start the VM in?
libvirt, qemu and docker all work fine here with a monolithic kernel.*
You can use
Code:
ebuild /var/db/repos/gentoo/path/to/ebuild.ebuild prepare clean
to force a re-showing of any "CONFIG_SOMETHING is not set and it should be" messages you may have missed during emerge time.

*hardware passthrough fails though, fyi.
Back to top
View user's profile Send private message
leyvi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2023
Posts: 80

PostPosted: Sun Nov 24, 2024 8:49 pm    Post subject: Reply with quote

Ralphred wrote:
What are you trying to start the VM in?
libvirt, qemu and docker all work fine here with a monolithic kernel.*
You can use
Code:
ebuild /var/db/repos/gentoo/path/to/ebuild.ebuild prepare clean
to force a re-showing of any "CONFIG_SOMETHING is not set and it should be" messages you may have missed during emerge time.

*hardware passthrough fails though, fyi.
:? you know, I'm actually trying to do PCIe passthrough with this VM. Maybe that's the problem? In any case, I'd like to know why...
Ralphred wrote:
What are you trying to start the VM in?
Virtual Machine Manager.
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