Could not access KVM kernel module: No such file or directory kvm: failed to initialize KVM: No such file or directory

enzopaez

New Member
Jan 26, 2021
3
0
1
27
Hello,

In a proxmox server I have 2 Container and 2 VM.

1611663521775.png




The 4 were working well correctly , until yesterday we had a power cut. The containers start correctly but I can't get the VMs to work.

I get the error:


VM 100 not running
TASK ERROR: Failed to run vncproxy.

Could not access KVM kernel module: No such file or directory
kvm: failed to initialize KVM: No such file or directory
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -name VM-SVN -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=d9133527-0d19-442e-a651-46e910217ab7' -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/100.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 4096 -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:6594b6a2967b' -drive 'if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.vmdk,if=none,id=drive-sata0,format=vmdk,cache=none,aio=native,detect-zeroes=on' -device 'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=16:5C:B0:12:26:AF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1

In the two VMs.

I have another proxmox server, in which I also have VMs and containers and in that it starts all correctly.
I clarify that I am not an expert in proxmox since the person who configured everything is not there.
 
hi,
Could not access KVM kernel module: No such file or directory
kvm: failed to initialize KVM: No such file or directory
it seems the KVM module is not loaded so the VM cannot start.

you can check ls -l /dev/kvm and lsmod | grep kvm to check if the kvm device exists (but it seems that it isn't!)

The 4 were working well correctly , until yesterday we had a power cut. The containers start correctly but I can't get the VMs to work.
if you have backups of the VMs then you could reinstall that node and restore the backups. since you had a power cut you should also check for any hardware related issues. if you have regular power cuts then maybe you should also invest in a UPS device
 
The 4 were working well correctly , until yesterday we had a power cut.

Check if VT is still enabled in your BIOS, maybe the power cut did a BIOS reset and by default, VT is off.?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!