Fedora Christmas: Re-wrote nested virtualization content and split it into three proc modules; added to _topic_map.yml. Authors: Julie Wu, Andrew Burden

This commit is contained in:
Andrew Burden 2017-12-14 14:07:48 +10:00
parent 048353c1d9
commit 7813befccd
4 changed files with 86 additions and 2 deletions

View file

@ -0,0 +1,15 @@
= Configuration nested virtualization in virt-manager
[[configuration-nested-virtualization-in-virt-manager]]
Configure your VM to use nested virtualization:
. Open *virt-manager*, double-click the VM, and click the *Show virtual hardware details* icon.
. Click *CPUs* in the side menu. In the *Configuration* section, there are two options - either type
`host-passthrough` in the *Model:* field or select *Copy host CPU
configuration* check box (that fills the `host-model` value in the Model
field).
+
[NOTE]
Using host-passthrough is not recommended for general usage and just for nested virtualization purposes.
. Click Apply.

View file

@ -0,0 +1,48 @@
= Enabling nested virtualization in KVM
[[enabling-nested-virtualization-in-kvm]]
Nested virtualization allows you to run a virtual machine (VM) inside
another VM while still using hardware acceleration from the host.
== Checking if nested virtualization is supported
For Intel processors, check the `/sys/module/kvm_intel/parameters/nested` file.
For AMD processors, check the `/sys/module/kvm_amd/parameters/nested` file.
If you see `1` or `Y`,nested virtualization is supported; if you see `0` or `N`, nested virtualization is not supported.
For example:
....
$ cat /sys/module/kvm_intel/parameters/nested
Y
....
== Enabling nested virtualization
To enable nested virtualization for Intel processors:
1. Shut down all running VMs and unload the `kvm_probe` module:
----
# modprobe -r kvm_intel
----
2. Activate the nesting feature:
----
# modprobe kvm_intel nested=1
----
3. Nested virtualization is enabled until the host is rebooted. To enable it permanently, add the following line to the `/etc/modprobe.d/kvm.conf` file:
----
options kvm_intel nested=1
----
To enable nested virtualization for AMD processors:
1. Shut down all running VMs and unload the `kvm_amd` module
----
# modprobe -r kvm_amd
----
2. Activate the nesting feature:
----
# modprobe kvm_amd nested=1
----
3. Nested virtualization is enabled until the host is rebooted. To enable it permanently, add the following line to the `/etc/modprobe.d/kvm.conf` file:
----
options kvm_amd nested=1
----

View file

@ -0,0 +1,17 @@
= Testing nested virtualization
[[testing-nested-virtualization]]
. Start the virtual machine.
. On the virtual machine, run `sudo dnf group install virtualization`.
. Verify that the virtual machine has virtualization correctly set up:
----
$ sudo virt-host-validate
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking for device /dev/kvm : PASS
QEMU: Checking for device /dev/vhost-net : PASS
QEMU: Checking for device /dev/net/tun : PASS
LXC: Checking for Linux >= 2.6.26 : PASS
----