mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 21:35:17 +00:00
Technical review of using nested virtualization
This commit is contained in:
parent
5f4f52dc1f
commit
73c781cd26
3 changed files with 14 additions and 13 deletions
|
@ -22,12 +22,12 @@ To enable nested virtualization for Intel processors:
|
|||
. Shut down all running VMs and unload the `kvm_probe` module:
|
||||
+
|
||||
----
|
||||
# modprobe -r kvm_intel
|
||||
$ sudo modprobe -r kvm_intel
|
||||
----
|
||||
. Activate the nesting feature:
|
||||
+
|
||||
----
|
||||
# modprobe kvm_intel nested=1
|
||||
$ sudo modprobe kvm_intel nested=1
|
||||
----
|
||||
+
|
||||
. 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:
|
||||
|
@ -41,12 +41,12 @@ To enable nested virtualization for AMD processors:
|
|||
. Shut down all running VMs and unload the `kvm_amd` module:
|
||||
+
|
||||
----
|
||||
# modprobe -r kvm_amd
|
||||
$ sudo modprobe -r kvm_amd
|
||||
----
|
||||
. Activate the nesting feature:
|
||||
+
|
||||
----
|
||||
# modprobe kvm_amd nested=1
|
||||
$ sudo modprobe kvm_amd nested=1
|
||||
----
|
||||
. 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:
|
||||
+
|
||||
|
|
|
@ -5,16 +5,17 @@
|
|||
. On the virtual machine, run:
|
||||
+
|
||||
----
|
||||
# dnf group install virtualization
|
||||
$ sudo dnf group install virtualization
|
||||
----
|
||||
+
|
||||
. Verify that the virtual machine has virtualization correctly set up:
|
||||
+
|
||||
----
|
||||
# virt-host-validate
|
||||
$ 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
|
||||
QEMU: Checking if device /dev/kvm exists : PASS
|
||||
QEMU: Checking if device /dev/kvm is accessible : PASS
|
||||
QEMU: Checking if device /dev/vhost-net exists : PASS
|
||||
QEMU: Checking if device /dev/net/tun exists : PASS
|
||||
...
|
||||
----
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
ifdef::context[:parent-context: {context}]
|
||||
:context: using-nested-virtiualization-in-kvm
|
||||
[id='using-nested-virtiualization-in-kvm']
|
||||
= How to enable nested virtualization in KVM
|
||||
|
||||
include::{partialsdir}/unreviewed-message.adoc[]
|
||||
|
||||
Learn how to run a virtual machine within a virtual machine.
|
||||
|
||||
include::{partialsdir}/proc_enabling-nested-virtualization-in-kvm.adoc[leveloffset=+1]
|
||||
|
@ -16,7 +15,8 @@ include::{partialsdir}/proc_testing-nested-virtualization.adoc[leveloffset=+1]
|
|||
== Additional resources
|
||||
|
||||
* https://bugzilla.redhat.com/show_bug.cgi?id=1055002
|
||||
* http://kashyapc.wordpress.com/2012/01/14/nested-virtualization-with-kvm-intel/
|
||||
* https://kashyapc.wordpress.com/2012/01/14/nested-virtualization-with-kvm-intel/
|
||||
* https://kashyapc.wordpress.com/2012/01/18/nested-virtualization-with-kvm-and-amd/
|
||||
|
||||
ifdef::parent-context[:context: {parent-context}]
|
||||
ifndef::parent-context[:!context:]
|
||||
|
|
Loading…
Reference in a new issue