Nested Virtualization

seb_taillon

Member
Jul 23, 2021
1
0
6
48
Can u help me please... to resolve this error

When i Start my VM i Receive This

---------------------------------------------------------------------------------------------------------------------------------

kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

---------------------------------------------------------------------------------------------------------------------------------

My setup si on OVH Bare Metal Server Dedicated.....

This is my step to enable Nested Virtualization....

--------------------------------------------------------------------------------------------------------------------------------

1: > Login to PVE terminal or via SSH
2: > cat /sys/module/kvm_intel/parameters/nested = N

To enable
1: > echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
Then
2: > modprobe -r kvm_intel
modprobe kvm_intel
Check again
3: > cat /sys/module/kvm_intel/parameters/nested = Y
To enable nested virtulizatoin for guest VMs
4: > args: -cpu host,+svm > /etc/pve/qemu-server/ vm.conf

Finish

When i start my vm all is fine so i expected the start command on host in ssh and i receive...

kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
kvm: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

I discover this when i would like install WSL2 on my vm....

I choose distro ubuntu 20.04
And ubuntu dont want start !!!
 
A (real or virtual) Intel CPU that supports hardware virtualization has the vmx flag. A (real or virtual) AMD CPU that supports hardware virtualization has the svm flag.
You are enabling kvm_intel, so I assume OVH provides you a (virtual) Intel CPU. Check if it exposes the vmx flag using cat /proc/cpuinfo.
It looks like you give a virtual AMD CPU to your VM, which requires the svm flag, which requires a (virtual) AMD CPU. This mismatch will not work.
 
  • Like
Reactions: Dominic