diff options
| author | srdusr <[email protected]> | 2023-02-24 12:33:17 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-02-24 12:33:17 +0200 |
| commit | 3ad4f62f174651db0d98a2de9f9d298a4db23b9d (patch) | |
| tree | 82a51dbb968002c7a59691a898a3467eac457a98 /virt | |
| parent | becbde4e745dbb0e765349aadab446cc4504fe27 (diff) | |
| download | notes-3ad4f62f174651db0d98a2de9f9d298a4db23b9d.tar.gz notes-3ad4f62f174651db0d98a2de9f9d298a4db23b9d.zip | |
Enable Nested Virtualization option added to KVM
Diffstat (limited to 'virt')
| -rw-r--r-- | virt/vm.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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` |