Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KVM not recognized by virt-manager?
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
Dannyje
n00b
n00b


Joined: 23 Jan 2022
Posts: 2

PostPosted: Sun Jan 23, 2022 8:49 pm    Post subject: KVM not recognized by virt-manager? Reply with quote

So I have been trying to set up a Virtual Machine using qemu and kvm. I have compiled kvm support into my current Kernel like this:
Code:
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQFD=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_KVM=y
# CONFIG_KVM_INTEL is not set
CONFIG_KVM_AMD=y
# CONFIG_KVM_XEN is not set
CONFIG_KVM_MMU_AUDIT=y

However, no KVM device appears in /dev. I have definitely checked that SVM is enabled in my bios.
lscpu output shows that its enabled as well.

I also tried modprobe kvm as well as modprobe kvm-amd, which changed nothing.
Yes, my boot partition was mounted when I compiled the kernel(which I did a couple of times by now just to be sure)

Does anybody have an Idea why this is happening? Help would be much appreciated.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23066

PostPosted: Sun Jan 23, 2022 9:33 pm    Post subject: Reply with quote

First, please check that /proc/config.gz agrees with the output you showed above. You said you checked that /boot is mounted, but checking that your running kernel has those features is more thorough, since you both need boot mounted and you need to boot into the copied kernel. On the assumption that will find nothing, next you should check dmesg for any diagnostics printed by the KVM subsystem during startup. A quick read of its source suggests that it logs on most if not all error paths that would let it avoid registering the device node. What is the output of uname -a ; zgrep KVM /proc/config.gz ; echo ; dmesg -T | grep -i kvm?

Note that modprobe is not useful here, since you built these features into the kernel, not as modules. It does not hurt anything, but it does not help, either.
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