KVM wont show in virt-manager and virtual machines freezes computer

Launching any virtual machine will freeze my computer after a few minutes
Output of sudo systemctl status libvirtd: [user@billy ~]$ LC_ALL=C lscpu | grep VirtualizationVirtualization: - Pastebin.com
AMD-V is enabled, according to LC_ALL=C lscpu | grep Virtualization.
Output of inxi -Fxza --no-host: inxi -Fxza --no-host - Pastebin.com
I get this message when trying to create a VM in virt-manager:

Any help would be appreciated
Thanks.

The next step after checking whether virtualization is possible and enabled would be checking whether the modules are all loaded.
Link goes to the kvm Arch wiki.

lsmod | grep kvm gives me this:

kvm                   933888  0
irqbypass              16384  1 kvm

still same after manually loading the modules using modprobe
LC_ALL=C lscpu | grep Virtualization outputs AMD-V, so i’m guessing that means that it is enabled.

What does that command yield?
(it’s in the linked wiki)
zgrep CONFIG_KVM /proc/config.gz

for me it yields:

CONFIG_KVM_GUEST=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_AMD_SEV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_MMU_AUDIT=y

that means that there is a module

kvm_amd

that should be loaded - but so far isn’t

[user@billy ~]$ zgrep CONFIG_KVM /proc/config.gz
CONFIG_KVM_GUEST=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_AMD_SEV=y
CONFIG_KVM_MMU_AUDIT=y

the question was rather rhetorical
leading up to
the module kvm_amd not being loaded

ah sorry
i have also tried loading kvm_amd, but no luck.

There should be no luck involved here. :wink:
If the module is there and you have an AMD machine … you should be able to load it

when i try to load it

[user@billy ~]$ sudo modprobe kvm_amd
[sudo] password for user: 
modprobe: ERROR: could not insert 'kvm_amd': Operation not supported

lsmod | grep kvm doesnt change

In that case I can just say I don’t know.
I’d suspect Bios/Uefi settings and check those.

The wiki says it needs to be there.
For me, the corresponding module is loaded (I have an Intel machine).

Maybe it is the order the modules are loaded in - this one should probably be loaded first.
Maybe your processor is still not fully supported by the kernel you are using (5.10).
I’m speculating here.

Turns out that virtualisation was disabled in my bios, even tho i swear it was enabled.
Thanks for the help

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.