[pve-devel] [PATCH 2/2] add section about nested virtualization

Dominik Csapak d.csapak at proxmox.com
Fri May 13 15:49:21 CEST 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 qm.adoc | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/qm.adoc b/qm.adoc
index 9af2eb0..86400e3 100644
--- a/qm.adoc
+++ b/qm.adoc
@@ -71,6 +71,47 @@ lock manually (e.g., after a power failure).
 
  qm unlock <vmid>
 
+Nested Virtualization
+---------------------
+
+If you want to run a hypervisor (such as Proxmox VE) in a virtual machine, and
+still be able to run virtual machines inside of this hypervisor, you have to
+enable nested virtualization.
+
+To check if this is enabled, run
+
+for AMD:
+[source,bash]
+cat /sys/module/kvm_amd/parameters/nested
+
+for Intel:
+[source,bash]
+cat /sys/module/kvm_intel/parameters/nested
+
+An output of '0' or 'N' means it is not active
+
+An output of '1' or 'Y' means you can use nested virtualization
+
+To enable it you have to set the option of the kernel module
+
+for AMD:
+[source,bash]
+----
+echo "options kvm-amd nested=Y" > /etc/modprobe.d/kvm-amd.conf
+modprobe -r kvm-amd
+modprobe kvm-amd
+----
+
+for Intel:
+[source,bash]
+----
+echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
+modprobe -r kvm-intel
+modprobe kvm-intel
+----
+
+Additionally you have to set the CPU type of the guest to 'host'
+
 Examples
 --------
 
-- 
2.1.4





More information about the pve-devel mailing list