KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS.

Znuf

Member
Mar 29, 2021
26
1
8
38
Hello,

I have change my CPU from AMD 3700 to 5700G on my proxmox server and i have a big problem.

SVM is well enabled on the bios :

grep flags /proc/cpuinfo | tail -n 1
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca

My CPU is compatible SVM

lsmod | grep kvm give nothing

modprobe kvm-amd
modprobe: FATAL: Module kvm-amd not found in directory /lib/modules/5.4.106-1-pve

I'm a little bit stuck here

Thanks for your help
 
Last edited:
Try it with an underscore instead:
Code:
modprobe kvm_amd
 
If that doesn't work, check whether you have the file at /lib/modules/5.4.106-1-pve/kernel/arch/x86/kvm/kvm-amd.ko
 
  • Like
Reactions: Znuf
Try it with an underscore instead:
Code:
modprobe kvm_amd
same result : FATAL: Module kvm_amd not found in directory /lib/modules/5.4.106-1-pve

root@pve:/lib/modules/5.4.157-1-pve/kernel/arch/x86/kvm# ls kvm-amd.ko kvm-intel.ko kvm.ko
 
I didn't have 5.4.106

root@pve:/lib/modules# ls
5.13.19-2-pve 5.15.107-2-pve 5.15.108-1-pve 5.15.35-2-pve 5.15.39-3-pve 5.3.10-1-pve 5.3.18-3-pve 5.4.157-1-pve 6.2.16-5-pve 6.2.16-8-pve
 
It seems you are booted into a different kernel version. Did you update your kernel by any chance?
 
You can get a list of the installed kernels with this command:
Bash:
dpkg --list | grep pve-kernel
 
Try to reinstall kernel with no luck :

Code:
apt-get install --reinstall pve-kernel-6.2.16-5-pve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  inetutils-telnet libboost-coroutine1.74.0 libbpf0 libcbor0 libdns-export1110 libicu67 libisc-export1105 libleveldb1d
  libmpdec3 libopts25 libperl5.32 libprocps8 libprotobuf23 libpython3.11 libpython3.9 libpython3.9-minimal
  libpython3.9-stdlib libtiff5 liburing1 libwebp6 perl-modules-5.32 pve-kernel-5.13 pve-kernel-5.13.19-6-pve
  pve-kernel-5.15.107-2-pve python3-ldb python3-talloc python3.9 python3.9-minimal telnet
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 97.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-kernel-6.2.16-5-pve amd64 6.2.16-6 [97.7 MB]
Fetched 97.7 MB in 8s (12.8 MB/s)
(Reading database ... 128184 files and directories currently installed.)
Preparing to unpack .../pve-kernel-6.2.16-5-pve_6.2.16-6_amd64.deb ...
Unpacking pve-kernel-6.2.16-5-pve (6.2.16-6) over (6.2.16-6) ...
Setting up pve-kernel-6.2.16-5-pve (6.2.16-6) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-5-pve /boot/vmlinuz-6.2.16-5-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-5-pve
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/3D38-8A16
        Copying kernel and creating boot-entry for 5.15.108-1-pve
        Copying kernel and creating boot-entry for 6.2.16-5-pve
cp: error copying '/boot/initrd.img-6.2.16-5-pve' to '/var/tmp/espmounts/3D38-8A16/EFI/proxmox/6.2.16-5-pve/initrd.img-6.2.16-5-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-6.2.16-5-pve.postinst line 20.
dpkg: error processing package pve-kernel-6.2.16-5-pve (--configure):
 installed pve-kernel-6.2.16-5-pve package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 pve-kernel-6.2.16-5-pve
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
it's look like grub is messed up. the only bootlable kernel is 5.4.106-1. olders didn't boot (busybox)

dpkg --list | grep pve-kernel

Code:
dpkg --list | grep pve-kernel
ii  pve-firmware                         3.7-1                               all          Binary firmware code for the pve-kernel
rc  pve-kernel-5.13                      7.1-9                               all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.13.19-2-pve             5.13.19-4                           amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.13.19-3-pve             5.13.19-7                           amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.13.19-4-pve             5.13.19-9                           amd64        The Proxmox PVE Kernel Image
rH  pve-kernel-5.13.19-6-pve             5.13.19-15                          amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.15                      7.4-4                               all          Latest Proxmox VE Kernel Image
rc  pve-kernel-5.15.102-1-pve            5.15.102-1                          amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.107-1-pve            5.15.107-1                          amd64        Proxmox Kernel Image
ii  pve-kernel-5.15.107-2-pve            5.15.107-2                          amd64        Proxmox Kernel Image
ii  pve-kernel-5.15.108-1-pve            5.15.108-2                          amd64        Proxmox Kernel Image
ii  pve-kernel-5.15.35-2-pve             5.15.35-5                           amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.15.39-1-pve             5.15.39-1                           amd64        Proxmox Kernel Image
ii  pve-kernel-5.15.39-3-pve             5.15.39-3                           amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.53-1-pve             5.15.53-1                           amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.64-1-pve             5.15.64-1                           amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.74-1-pve             5.15.74-1                           amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.83-1-pve             5.15.83-1                           amd64        Proxmox Kernel Image
rc  pve-kernel-5.15.85-1-pve             5.15.85-1                           amd64        Proxmox Kernel Image
ii  pve-kernel-5.3                       6.1-6                               all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.3.10-1-pve              5.3.10-1                            amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.3.18-3-pve              5.3.18-3                            amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.4                       6.4-11                              all          Latest Proxmox VE Kernel Image
rc  pve-kernel-5.4.106-1-pve             5.4.106-1                           amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.4.143-1-pve             5.4.143-1                           amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-5.4.157-1-pve             5.4.157-1                           amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.4.78-1-pve              5.4.78-1                            amd64        The Proxmox PVE Kernel Image
rc  pve-kernel-5.4.78-2-pve              5.4.78-2                            amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-6.2                       8.0.5                               all          Proxmox Kernel Image for 6.2 series (transitional package)
iF  pve-kernel-6.2.16-5-pve              6.2.16-6                            amd64        Proxmox Kernel Image
rc  pve-kernel-helper                    7.3-8                               all          Function for various kernel maintenance tasks.
 
To get your currently running kernel use:
Bash:
uname -r

This will probably output 5.4.106-1-pve.

The easiest solution would be to just reboot into one of the versions listed by ls /lib/modules.
 
Last edited:
Try uninstalling the old kernels with
Code:
apt autoremove
And then reboot
 
Last edited:
Try uninstalling the old kernels with
Code:
apt autoremove
And then reboot
Tried but No space left on device like with kernel reinstallation


Code:
root@pve:~# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  pve-kernel-5.13.19-6-pve
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 328 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 118408 files and directories currently installed.)
Removing pve-kernel-5.13.19-6-pve (5.13.19-15) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.13.19-6-pve /boot/vmlinuz-5.13.19-6-pve
update-initramfs: Deleting /boot/initrd.img-5.13.19-6-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.13.19-6-pve /boot/vmlinuz-5.13.19-6-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.13.19-6-pve /boot/vmlinuz-5.13.19-6-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/3D38-8A16
        Copying kernel and creating boot-entry for 5.15.108-1-pve
        Copying kernel and creating boot-entry for 6.2.16-5-pve
cp: error copying '/boot/initrd.img-6.2.16-5-pve' to '/var/tmp/espmounts/3D38-8A16/EFI/proxmox/6.2.16-5-pve/initrd.img-6.2.16-5-pve': No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.13.19-6-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.13.19-6-pve (--remove):
 installed pve-kernel-5.13.19-6-pve package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 pve-kernel-5.13.19-6-pve
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code:
root@pve:~# df -h
Filesystem                    Size  Used Avail Use% Mounted on
udev                           32G     0   32G   0% /dev
tmpfs                         6.3G  1.4M  6.3G   1% /run
rpool/ROOT/pve-1              1.6T  525G  1.1T  34% /
tmpfs                          32G   46M   32G   1% /dev/shm
tmpfs                         5.0M     0  5.0M   0% /run/lock
rpool                         1.1T  128K  1.1T   1% /rpool
rpool/data                    1.1T  128K  1.1T   1% /rpool/data
rpool/ROOT                    1.1T  128K  1.1T   1% /rpool/ROOT
Backup_HDD                    2.4T  128K  2.4T   1% /Backup_HDD
Backup_HDD/subvol-108-disk-0   64G  281M   64G   1% /Backup_HDD/subvol-108-disk-0
Backup_HDD/subvol-103-disk-1  100G  5.3G   95G   6% /Backup_HDD/subvol-103-disk-1
/dev/fuse                     128M   24K  128M   1% /etc/pve
tmpfs                         6.3G     0  6.3G   0% /run/user/0
 
Last edited:
Then you will have to free up some space. A simple way to temporarily free up some space is to run apt clean
 
nothing change look like the device var/tmp/espmounts/3D38-8A16/... is not mounted
 
After reading your output of apt autoremove it seems to me that there is no space left on your boot partition.
 
To resolve this, you could mount the EFI partition and delete the older kernels.
To find out where that partition is, please run:
Code:
ls -l /dev/disk/by-uuid/
lrwxrwxrwx 1 root root 10 Aug  9 13:21 1ac77cfb-d1de-416d-aba9-1ef021066212 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Aug  9 13:21 f41a9212-3205-48aa-a778-46281b117212 -> ../../dm-0
lrwxrwxrwx 1 root root 15 Aug  9 13:21 3D38-8A16 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 10 Aug  9 13:21 f41a9212-3205-48aa-a778-46281b117212 -> ../../dm-7

There should now be one shorter entry. In this case it is this one:
Code:
lrwxrwxrwx 1 root root 15 Aug  9 13:21 3D38-8A16 -> ../../nvme0n1p2

Now that you know where your boot partition is, please mount it:
Code:
mkdir /mnt/myesp
mount /dev/nvme0n1p2 /mnt/myesp
 
Last edited:
  • Like
Reactions: Znuf
I have only one file bootx64.efi

Thanks a lot for your help.

I will reinstall proxmox.
I thing is the best thing to do.
 
Last edited:
Try checking how much space you have on that partition with df -h
 

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!