srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-02-24 12:33:17 +0200
committersrdusr <[email protected]>2023-02-24 12:33:17 +0200
commit3ad4f62f174651db0d98a2de9f9d298a4db23b9d (patch)
tree82a51dbb968002c7a59691a898a3467eac457a98 /virt
parentbecbde4e745dbb0e765349aadab446cc4504fe27 (diff)
downloadnotes-3ad4f62f174651db0d98a2de9f9d298a4db23b9d.tar.gz
notes-3ad4f62f174651db0d98a2de9f9d298a4db23b9d.zip
Enable Nested Virtualization option added to KVM
Diffstat (limited to 'virt')
-rw-r--r--virt/vm.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/virt/vm.md b/virt/vm.md
index 4e9f3f2..290c4da 100644
--- a/virt/vm.md
+++ b/virt/vm.md
@@ -66,3 +66,27 @@ unix_sock_rw_perms = "0770"
- Restart libvirt daemon.
`$ sudo systemctl restart libvirtd.service`
- - -
+4. Enable Nested Virtualization (optional)
+`$ ### Intel Processor ###`
+`$ sudo modprobe -r kvm_intel`
+`$ sudo modprobe kvm_intel nested=1`
+
+`$ ### AMD Processor ###`
+`$ sudo modprobe -r kvm_amd`
+`$ sudo modprobe kvm_amd nested=1`
+- To make this configuration persistent, run:
+`$ echo "options kvm-intel nested=1" | sudo tee /etc/modprobe.d/kvm-intel.conf`
+- Confirm that Nested Virtualization is set to Yes:
+`$### Intel Processor ###`
+`$ systool -m kvm_intel -v | grep nested`
+ `nested = "Y"`
+ `nested_early_check = "N"`
+`$ cat /sys/module/kvm_intel/parameters/nested `
+`Y`
+
+`$### AMD Processor ###`
+`$ systool -m kvm_amd -v | grep nested`
+ `nested = "Y"`
+ `nested_early_check = "N"`
+`$ cat /sys/module/kvm_amd/parameters/nested`
+`Y`