[SOLVED] Nested Virtualization

w00t

New Member
Sep 23, 2013
3
0
1
Hi,

Trying to enable nested-KVM, Hardware(Proxmox)->VM->(KVM VM).

gK0Unou.png


For my Proxmox VM I have "host" as CPU-type, and under Options I have "KVM hardware virtualization" ticked for Enabled.
Code:
egrep '(vmx|svm)' --color=always /proc/cpuinfo
Within the VM gives me nothing, so no virtualization-availability.

According to https://pve.proxmox.com/wiki/Nested_Virtualization I should go with:
Code:
echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf

However, I'm on a intel-platform and a
Code:
cat /sys/module/kvm_intel/parameters/nested

outputs a "N". So, I guess the correct command should be:
Code:
echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf

kvm-intel.conf does not exist, is this wiki up to date with latest PVE?
 
hi,

except the change from 0|1 to N|Y the guide on the wiki is correct (tested it here)
and yes, your command is correct and should work
(/etc/modprobe.d/kvm-intel.conf does not exist by default)
 
hi,

except the change from 0|1 to N|Y the guide on the wiki is correct (tested it here)
and yes, your command is correct and should work
(/etc/modprobe.d/kvm-intel.conf does not exist by default)
Can confirm,
Code:
echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
and a reboot enables nested virtualization.
 
For kvm-amd, I had to use nested=1. Otherwise, the following would show up in the 'dmesg' output.

[ 5.345816] kvm_amd: `Y' invalid for parameter `nested'
[ 5.375344] kvm_amd: `Y' invalid for parameter `nested'

If anyone else sees a similar issue, perhaps the wiki should be updated.

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

jeffl@40356m:~$ pveversion -v
proxmox-ve: 4.3-66 (running kernel: 4.4.19-1-pve)
pve-manager: 4.3-1 (running version: 4.3-1/e7cdc165)
pve-kernel-4.4.19-1-pve: 4.4.19-66
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-46
qemu-server: 4.0-88
pve-firmware: 1.1-9
libpve-common-perl: 4.0-73
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-61
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6.1-6
pve-container: 1.0-75
pve-firewall: 2.0-29
pve-ha-manager: 1.0-35
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.4-1
lxcfs: 2.0.3-pve1
criu: 1.6.0-1
novnc-pve: 0.5-8
zfsutils: 0.6.5.7-pve10~bpo80
jeffl@40356m:~$
 

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!