You are not logged in.

#1 2023-04-11 16:23:37

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

[Solved]kvm not working with latest kernel

All of a sudden all my VMs created using virt-manager stopped working with error

Error launching details: Host does not support domain type kvm with machine 'pc-q35-7.2' for virtualization type 'hvm' with architecture 'x86_64'

svm mode is on in bios, on debugging more, it seems kvm_amd module failed to load at startup. When i try to load using modprobe i get,

modprobe: ERROR: ctx=0x55568ad972a0 path=/lib/modules/6.2.10-arch1-1/kernel/virt/lib/irqbypass.ko.zst error=No such file or directory

dmesg have a bunch of errors regarding kvm


[  207.063868] kvm_amd: Unknown symbol kvm_skip_emulated_instruction (err -2)
[  207.063871] kvm_amd: Unknown symbol kvm_set_or_clear_apicv_inhibit (err -2)
[  207.063874] kvm_amd: Unknown symbol kvm_handle_invalid_op (err -2)
[  207.063877] kvm_amd: Unknown symbol kvm_caps (err -2)
[  207.063880] kvm_amd: Unknown symbol kvm_sev_es_mmio_write (err -2)
[  207.063883] kvm_amd: Unknown symbol kvm_get_kvm (err -2)
[  207.063885] kvm_amd: Unknown symbol kvm_complete_insn_gp (err -2)
[  207.063889] kvm_amd: Unknown symbol kvm_apic_write_nodecode (err -2)
[  207.063892] kvm_amd: Unknown symbol __SCT__tp_func_kvm_skinit (err -2)
[  207.063895] kvm_amd: Unknown symbol allow_smaller_maxphyaddr (err -2)

no such issue with linux-lts

any help ?

Last edited by jerryDaBaaws (2023-04-16 17:12:10)

Offline

#2 2023-04-12 08:16:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,146

Re: [Solved]kvm not working with latest kernel

Please post the output of

pacman -Qkk linux 

If it shows 0 altered files also post the dmesg & journal (run both with root rights) of  a boot with linux .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-04-12 10:33:08

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

Re: [Solved]kvm not working with latest kernel

warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/aegis128-aesni.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/aesni-intel.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/aria-aesni-avx-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/blowfish-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/camellia-aesni-avx2.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/camellia-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/cast5-avx-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/cast6-avx-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/chacha-x86_64.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/crc32-pclmul.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/arch/x86/crypto/crc32c-intel.ko.zst (No such file or directory)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/drivers/net/ethernet/intel/e1000/e1000.ko.zst (MD5 checksum mismatch)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/drivers/net/ethernet/intel/e1000/e1000.ko.zst (SHA256 checksum mismatch)
warning: linux: /usr/lib/modules/6.2.10-arch1-1/kernel/virt/lib/irqbypass.ko.zst (No such file or directory)
linux: 6962 total files, 14 altered files

damn yea multiple files are missing , installed kernel again, and its alright now
any idea on what could be the cause of it ?

Offline

#4 2023-04-13 10:43:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,146

Re: [Solved]kvm not working with latest kernel

An interrupted kernel install (by a power failure or similar) could cause this . It should leave some trace in /var/log/pacman.log .

Another possibility are drive or filesystem issues. Check the journal for the time around the last linux kernel install before the failures.

Last edited by Lone_Wolf (2023-04-13 10:43:37)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB