Remove unnecessary command prompts

This commit is contained in:
Connor Lim 2021-01-27 12:28:18 +08:00 committed by pbokoc
parent 73c781cd26
commit 49690fb381
2 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@ For Intel processors, check the `/sys/module/kvm_intel/parameters/nested` file.
For example:
----
$ cat /sys/module/kvm_intel/parameters/nested
cat /sys/module/kvm_intel/parameters/nested
Y
----
@ -22,12 +22,12 @@ To enable nested virtualization for Intel processors:
. Shut down all running VMs and unload the `kvm_probe` module:
+
----
$ sudo modprobe -r kvm_intel
sudo modprobe -r kvm_intel
----
. Activate the nesting feature:
+
----
$ sudo 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:
+
----
$ sudo modprobe -r kvm_amd
sudo modprobe -r kvm_amd
----
. Activate the nesting feature:
+
----
$ sudo 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:
+

View file

@ -5,13 +5,13 @@
. On the virtual machine, run:
+
----
$ sudo dnf group install virtualization
sudo dnf group install virtualization
----
+
. Verify that the virtual machine has virtualization correctly set up:
+
----
$ sudo virt-host-validate
sudo virt-host-validate
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking if device /dev/kvm exists : PASS
QEMU: Checking if device /dev/kvm is accessible : PASS