Nested: Error Hyper-V enlightened VMCS (hv-evmcs) requires Hyper-V virtual APIC (hv-vapic)

carsten2

Renowned Member
Mar 25, 2017
277
29
68
55
I tried to enable hv-evmcs and "host" for the CPU, but the VM cannot be start of because of the error message "Hyper-V enlightened VMCS (hv-evmcs) requires Hyper-V virtual APIC (hv-vapic)". There is however not hv-apic option in the gui and this also cannot be set in the VM conf file.

apicv seems to be enabled in the system:

cat /sys/module/kvm_intel/parameters/enable_apicv
Result: Y

On page 33 of the presentation https://archive.fosdem.org/2019/sch...2860/vkuznets_fosdem2019_enlightening_kvm.pdf you can read, that there are two option hv_vapic and hv_evmcs:

"QEMU syntax: cpu ....,hv-vapic,hv-evmcs"

It seems that the problem is, that the option cannot be set in VM conf file in proxmox.

Any suggestions / solution?
 
Last edited:
Assuming you're on intel, add +vmx to the VM's config.

/etc/pve/qemu-server/<VMID>.conf

cpu: host,flags=+[someflag];+[someflag];+vmx

Note that the GUI will look like no flags are being used since it doesn't know how to interpret flags outside of the available GUI ones. VMX, at least on my system, includes the vapic flag.
 
Last edited:

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!