Ошибка kvm virtualization configured but not available

dietmar


  • #2

You need to enable virtualisation in the mainboard BIOS …

Stoiko Ivanov


  • #4

You can disable it for a virtual machine in the GUI — go to that virtual machine->Options->KVM Hardware Virtualization (and disable it).

However, be aware that the performance w/o KVM is going to be really slow!

Stoiko Ivanov


  • #6

hm — if the error-message says that ‘KVM virtualisation configured, but not available’ then the system does not see the virtualisation as enabled.
* check the output of `dmesg` after a boot for hints to where the problem might be
* if there are any updates available for your firmware/BIOS make sure to install them

hope this helps

  • #9

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
You_should_put_this_option_at_No.PNG

Last edited: Apr 2, 2021

Доброго дня,

На старый сервер HP установлен Proxmox, ниже скриншот с характеристиками
6348f529a6593224079594.jpeg

Вот какая проблема

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

как понятно из ошибки не включена виртуализация, но по факту в биос она включена и поддерживается, да и раньше до перезагрузки работала.

решается это отключением вот этой галочки, но после этого ВМ начинает тормозить и медленно работать.
6348f6309535c833531460.jpeg

В чем может быть дело?

  • #1

Hi,
I’m new on xproxmox and I don’t know why but when I create a new virtual machine I tried to run but I have thi error:

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

Any know what is this problem ?
Help!

  • aaaaa.png

    aaaaa.png

    211.5 KB

    · Views: 246

dietmar

  • #2

You need to enable virtualisation in the mainboard BIOS …

  • #3

Hi there,

I hit the exact same failure today, when I was to start the VM: «KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS».

So other than » enable virtualisation in the mainboard BIOS «, do I have the option to have it disabled in VM configuration? If so, what are the steps to do it ?

Thanks,

Jack

Stoiko Ivanov

  • #4

You can disable it for a virtual machine in the GUI — go to that virtual machine->Options->KVM Hardware Virtualization (and disable it).

However, be aware that the performance w/o KVM is going to be really slow!

  • #5

Encountered the exact same problem, but «virtualisation» is already enabled in the BIOS. What else can I do?

Stoiko Ivanov

  • #6

hm — if the error-message says that ‘KVM virtualisation configured, but not available’ then the system does not see the virtualisation as enabled.
* check the output of `dmesg` after a boot for hints to where the problem might be
* if there are any updates available for your firmware/BIOS make sure to install them

hope this helps

  • #7

Encountered the exact same problem, but «virtualisation» is already enabled in the BIOS. What else can I do?


Today I fixed this very issue by disabled TPM support on the BIOS on my old Dell Latitude E4300. PVE 6.1

  • #8

I can also agree, today I was able to successfully activate virtualisation on an old Dell Optiplex 780 bios A15, by deactivating the the trust (disable) of Virtual in the BIOS entry.

  • #9

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
You_should_put_this_option_at_No.PNG

Last edited: Apr 2, 2021

  • #11

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
View attachment 24943

Thanks, it works for me.
LMC

  • #12

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
View attachment 24943

Thanks, Perfect

  • #14

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
View attachment 24943

This worked for me as well. Thanks!

  • #15

This is the answer, if only i discovered it 8 hours ago. Oh my god, i want to shoot myself in the head!

you should put this option of your VM you have create on prox mox at No , KVM HARDWARE virtualisation —>NO
View attachment 24943

  • #1

Hi!

So I’m new to using Proxmox and apologies if this question has been asked many times before but i’m really struggling to resolve an issue that i currently getting on my server that i’ve recently set up.

After creating a new VM (with no matter what config) I am getting this message when trying to start the VM:
TASK ERROR: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS.

I’ve done so much googling, many results lead back to this forum of others with similar scenarios, some of the questions back to the OP ask what the results are from some commands like dmesg, etc, which i’ve tried to run which have unfortunately led me nowhere!

Steps i’ve already taken

  • Reset BIos
  • Checked bios to ensure VT-d and cpu virtualisation is enabled
  • I’ve even tried unchecking the kvm hardware virtualisation in the options of the vm
  • lsmod | grep kvm returns nothing.
  • ls -l /etc/modprobe.d returns

    Code:

    total 12
    -rw-r--r-- 1 root root  51 Feb 21 20:47 iommu_unsafe_interrupts.conf
    -rw-r--r-- 1 root root  25 Feb 21 18:54 kvm-amd.conf
    -rw-r--r-- 1 root root 171 Nov 24 17:32 pve-blacklist.conf

    I dont know why there is a kvm-amd.conf should this be kvm-intel.conf?!

in /etc/modules:

Code:

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

Could I be missing something here like a kvm module for the intel processor? or is the proxmox server not seeing the cpu vt-d being enabled?

Hopefully this is enough for someone to help me troubleshoot this!

Thank you in advance.

Cheers
Garry

  • #2

Did you verify that your CPU supports VT-d and virtualization support? Both your mainboard/BIOS and CPU need to support it. If just your BIOS supports it but your CPU not, then you can set whatever you want in the BIOS and it won’t work. Updating the BIOS might also be a good idea if that is a known bug that got fixed meanwhile.

  • #3

Thanks for your reply. Yes the cpu supports both VT-d and virtualisation and my bios is up to date, it’s so strange I’ve had a proxmox server running before on the same hardware.. so not sure what else to do?

Are there any additional configurations I need to check or add? Or specific commands to run?

  • #4

I believe the error is not about VT-d (i.e., PCI passthrough) but about VT-x being disabled. What does grep flags /proc/cpuinfo | tail -n 1 show? Does it contain vmx (for Intel, AMD’s called svm)?
As a work-around you could disable KVM hardware acceleration in VM Options but that would make the VM very, very slow.

  • #5

The output from that command is:

Code:

root@proxmoxgc:~# grep flags /proc/cpuinfo | tail -n 1
vmx flags       : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest

I have already tried disabling the KVM hardware in VM options but that just then gives me another error like this
TASK ERROR: start failed: QEMU exited with code 1

Thanks

  • #6

The output looks strange: almost no flags and vmx at the front of the line. Are you running Proxmox inside some VMWare software instead of real hardware?

EDIT: I was completely wrong, Intel (Xeon?) processors have vmx flags: line as well, which I didn’t know. It was just that the flags: line was truncated.

Last edited: Mar 6, 2022

  • #7

No, I’m not running Proxmox on any VMware or existing virtualisation method. This is installed directly on hardware with nothing else — for what it’s worth, I’ve got it running on a HP Proliant MicroServer Gen 8, with an intel 1265L v2 CPU and 16gb RAM. Using an SSD as the disk where Proxmox is directly installed on.

Not sure if this would affect the kvm error or not but I have also got a 4 port NIC installed in a PCI slot which I am passing through using ‘pci-passthough’ to Proxmox (to do this I had to enable some iommu settings).

Any other ideas? or should I try a fresh install?

Cheers,
Garry

  • #8

Sorry, but I really did not expect plain hardware to have the unrestricted_guest flag. Given the flags you showed, it looks like your CPU does not support vmx with the current Proxmox Linux kernel. What is the output of pveversion?

If your CPU is an Ivy Bridge Intel Xeon E3-1265L v2 then it should definitely support vmx. But it should also show many more flags. Can you show the whole output of cat /proc/cpuinfo? Maybe you need to enable things in the BIOS or update the BIOS?

EDIT: Since your VM won’t start, I’m assuming you run the commands on the Proxmox host and not inside a VM.

Last edited: Mar 5, 2022

  • #9

Yeah it’s an odd one! so output of pvevefsion is pve-manager/7.1-7/df5740ad (running kernel: 5.13.19-1-pve)

Output of cat /proc/cpuinfo is:

(prints out the below 8 times with minimal differences, assuming this is because it’s per processor core or threads or something..)

Code:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 58
model name      : Intel(R) Xeon(R) CPU E3-1265L V2 @ 2.50GHz
stepping        : 9
microcode       : 0x1c
cpu MHz         : 1842.590
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
vmx flags       : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips        : 4988.59
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
  • #10

That looks normal (now that you copied the whole line) and it does contain vmx. It does indeed repeat for each thread
Is there anything in journalctl that can give more information about the problem with starting the VM?
Have you tried updating your Proxmox (no-subscription is at 7.1-10)? Maybe try installing pve-kernel-5.15 after updating?

  • #11

Sorry for delay in coming back

I’m not sure how to update the Proxmox server or the kernel more specifically. The current version of Proxmox I have is just based on the latest .iso available which I downloaded from here (7.1-2) I then made this into a bootable usb to install.

Is there a command to install the latest kernel? Tempted to try a new fresh install if not!

Cheers

  • #13

I have the same problem but I am running ProxMox in VirtualBox on W11. I have the same setup on my old system that is running W10 and there everything runs fine. Old machine is an I7-6700, the new an AMD5700-X. Compared the 2 setups from the virtual machines and they are the same.

  • #14

Does VirtualBox on Windows 11 support nested virtual machines? Maybe it needs to be enabled in Windows 11 or VirtualBox, but I don’t have experience with either.

  • #15

I’ll ask on the VB forum. On W10 it works.

So, one of the tasks I had to complete this past week was: Install an ESXi hypervisor in a virtual machine, on top of a Proxmox VE 4 infrastructure. This post documents the process (since I wasn’t able to find a complete guide, I wrote one : ).

Why ESXi inside of Proxmox?

Test? Laboratory? Proof of Concept? Well the reasons behind this setup may vary, but if you’re going to do this, avoid it in production. From my tests the performance is comparable, but still you will get a lot of headaches and lose many of the benefits a vSphere environment has to offer. But first things first:

Requirements

The first thing to look at is requirements, you will need:

  • A Proxmox node capable of Hardware Assisted Virtualization. (Intel: VT-x ; AMD: AMD-V)
  • QEMU >= 2.3.0
  • Kernel >= 3.19.0-21
  • At least 4GB of RAM for Proof of Concept; 16GB of RAM to add vCenter Server Appliance and another ESXi host.
  • Patience and this guide : )

During this process I used an Intel CPU, Proxmox VE 4.2, pve-qemu-kvm 2.4_14, kernel 4.4.6-1-pve and ESXi 6.0.

Although you shouldn’t encounter any problem with a slightly different environment or a diffrent version of ESXi, it is always best to get the latest software.

Enable nested KVM on host

The first thing you need to do is SSH into the node you plan to install ESXi on. Once in determine the processor:

model name      : Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz

In this case I had an Intel CPU, if you have AMD it is not a problem, follow the appropriate tab:

IntelAMD

Create this file (it shouldn’t exist): /etc/modprobe.d/kvm-intel.conf

Using your favourite editor add the following content to the file:

options kvm ignore_msrs=y
options kvm-intel nested=Y ept=Y

Then reload the modules:

# modprobe -r kvm-intel kvm; modprobe kvm kvm-intel

If this doesn’t work for you, you will have to restart the node.

Create this file (it shouldn’t exist): /etc/modprobe.d/kvm-amd.conf

Using your favourite editor add the following content to the file:

options kvm ignore_msrs=y
options kvm-amd nested=Y ept=Y

Then reload the modules:

# modprobe -r kvm-amd kvm; modprobe kvm kvm-amd

If this doesn’t work for you, you will have to restart the node.

Creating the Virtual Machine

This step is quite straightforward: you just need to create the new virtual machine, but you need to pay attention to three options:

  • OS Type must be “Other OS Types“.
  • CPU Type must be “host“.
  • Network Type must be “VMWare vmxnet3“.

Now, take note of the machine id that you used during the installation. SSH in the node hosting the newly created virtual machine and edit the file named: /etc/pve/qemu-server/YOURVMID.conf (of course replace YOURVMID with the ID of the virtual machine you created). And add at the end of the file:

args: -machine vmport=off

Beware!

Each and every time you will modify things through the Proxmox interface, you will lose all the custom changes to this file. Unfortunately I have yet to come up with a simple way to avoid this without using glued solutions or configuration management.

ESXi Nested - ESXi InstalledIn this way you should be able to complete the ESXi installation without problems. However, when you will try starting your first virtual machine, you will notice that you can’t start virtual machines inside of the ESXi host.

Enabling Nested Virtualization inside ESXi

You will notice that you won’t be able to start virtual machines inside of your new ESXi, that is because you would have to add: vmx.allowNested = “TRUE” to each and every virtual machine inside of that host. That doesn’t sit well with me. The first thing you need to do is to enable SSH on the ESXi host.

Enabling SSH on ESXi

Enabling SSH isn’t a big deal. First access its console, then press F2 and enter your password. You will be facing the menu, from there select Troubleshooting Options and press enter. Then just enable SSH.

Now you have to SSH into the ESXi host and edit (nano and vi are available) the file /etc/vmware/config and append the following vmx.allowNested = “TRUE”. Reboot the host and voilà! You should be able to spawn machines correctly now.

Conclusion

It might not be the best for performance, but this setup is pretty good for proof of concept and laboratories if you already have an existing environment. I was even able to install vCenter Server Appliance though with a bit of pain.ESXi Nested - vCenterThanks to Jitze Couperus for the amazing image on the top.

Thanks to: Matt’s blog and The Perils and Triumphs of Being a Geek blog, from which I gained many information that are part of this guide.

Image courtesy of mark | marksei

  • Author
  • Recent Posts

The IT guy with a slight look of boredom in his eyes. Freelancer. Current interests: Kubernetes, Tensorflow, shiny new things.

The IT guy with a slight look of boredom in his eyes. Freelancer. Current interests: Kubernetes, Tensorflow, shiny new things.

I got fix for this issue : the details of the issue fix are as follows :

KVM Software tools should be on the controller

patterns-sles-kvm_server — KVM Host Server 12-58.8

patterns-sles-kvm_server-32bit — KVM Host Server

patterns-sles-kvm_tools — KVM Virtualization Host and tools

patterns-sles-kvm_tools-32bit — KVM Virtualization Host and tools

qemu-kvm — Kernel-based Virtual Machine

virt-v2v — Convert a virtual machine to run on KVM

yast2-vm — Configure Hypervisor and Tools for Xen and KVM

check the hardware requirement as mentioned below:

1.1. Hardware Requirements¶
Currently, SUSE only supports KVM full virtualization on x86_64 hosts. KVM is designed around hardware virtualization

features included in AMD (AMD-V) and Intel (VT-x) CPUs. It supports virtualization features of chipsets, and PCI devices,

such as an I/O Memory Mapping Unit (IOMMU) and Single Root I/O Virtualization (SR-IOV)).

You can test whether your CPU supports hardware virtualization with the following command:

egrep ‘(vmx|svm)’ /proc/cpuinfo
If this command returns no output, your processor either does not support hardware virtualization, or this feature has been disabled in the BIOS.

The following Web site identifies processors which support hardware virtualization:

how to enable the vx-t in virtual machine :

https://forum.ivorde.com/kvm-nested-in-vmware-esxi-5-5-enable-guest-hypervisor-vmx-svm-flags-without-vsphere-web-client-

t19773.html

GO to the VMS vmdk folders and edit .vmx file and add the following flag in that file and save it.

vhv.enable = «TRUE»

Follow the commands below to restart the VM and reboot the machine.

/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM # vim-cmd vmsvc/getallvms | grep -i sles
15 SLES-82 [datastore1] SLES 1/SLES 1.vmx sles11_64Guest vmx-08
59 SLES 12 VM [datastore1] SLES 12 VM/SLES 12 VM.vmx sles11_64Guest vmx-08
/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM # vim-cmd vmsvc/reload 59
/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM #

Reboot your machine and try to start your controller it will work.

Thanks
Nagesh

TASK ERROR: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS. [SOLVED]

 ketika kita menggunakan proxmox sebagai OS untuk virtualisasi, dan ketika kita mencoba menjalankan sebuah OS di proxmox muncul tulisan
TASK ERROR: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS.


maka untuk mengatasi masalah tersebut sangatlah mudah

 1.PILIH VM YANG INGIN ANDA AKTIFKAN

2.KLIK PADA BAGIAN KANAN TERDAPAT MENU OPTIONS

SETELAH MENU OPTIONS DI KLIK MAKA AKAN ADA MENU SEPERTI DIBAWAH INI

KLIK MENU KVM hardware virtualization rubah tulisan Yes menjadi No dengan cara klik  KVM hardware virtualization dan akan muncul gambar seperti dibawah ini

hilangkan ceklis menjadi seperti dibawah ini

setelah ceklis pada enable dihilangkan maka akan menjadi seperti dibawah ini

setelah KVM hardware virtualization telah di disable maka tulisanya menjadi NO selanjutnya kita coba start VM yang telah kita buat

VM berhasil dijalankan!

Hi,

when i run:

qm create 100 
--name qemuvm 
--ostype l26 
--cpu host 
--cores 1 
--memory 1024 
--scsihw virtio-scsi-pci 
--net0 virtio,bridge=vmbr0 
--bios ovmf 
--efidisk0 local:0,efitype=4m,size=64M,format=qcow2 
--serial0 socket 
--scsi0 local:0,import-from=/root/jammy-server-cloudimg-arm64.img,format=qcow2 
--scsi1 local:cloudinit 
--ciuser root 
--cipassword rootroot 
--ipconfig0 ip=dhcp 
--boot order=scsi0 

I get the following error: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS.

Im running on an Oracle ARM OCI.

Понравилась статья? Поделить с друзьями:
  • Ошибка kpdl принтер kyocera 2040
  • Ошибка kpdl задание отменено как исправить
  • Ошибка kontur 1c plugin host
  • Ошибка kmode exception not handled windows 10 как исправить
  • Ошибка kirin rel 5 121