Difference between revisions of "stoney cloud: Nested virtualization"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Created page with "== Abstract == This document describes how to set up nested virtualization on a default installation (until it gets enabled by default). Nested virtualization permits to sta...")
 
(Setup)
Line 13: Line 13:
  
 
== Setup ==
 
== Setup ==
 +
 +
Login as root, then execute the following and reboot (or <code>rmmod/modprobe</code> the corresponding modules if no VM is running)
 +
 +
<source lang='bash'>
 +
cat > /etc/modprobe.d/nested-virtualization.conf << EOF
 +
options kvm-intel nested=1
 +
options kvm-amd nested=1
 +
EOF
 +
</source>
  
 
[[Category:stoney cloud]][[Category:Installation]]
 
[[Category:stoney cloud]][[Category:Installation]]

Revision as of 13:51, 20 December 2013

Abstract

This document describes how to set up nested virtualization on a default installation (until it gets enabled by default).

Nested virtualization permits to start another hypervisor (in our case KVM) inside a virtual machine.

With the current version of Qemu/KVM you can expect a performance of about 25% of the host performance (concerning CPU and Memory access) in a guest within a guest (L2). In the future Qemu/KVM should support Intels Virtual EPT which should give 80% of the host performance for L2.

See:

Setup

Login as root, then execute the following and reboot (or rmmod/modprobe the corresponding modules if no VM is running)

cat > /etc/modprobe.d/nested-virtualization.conf << EOF
options kvm-intel nested=1
options kvm-amd nested=1
EOF