KVM : Nested KVM2023/04/27 |
Configure nested KVM.
It's possible to install KVM Hypervisor and create virtual machines as nested KVM on KVM host. |
|
[1] | Enable the setting for Nested KVM. |
# show the current setting ( if the result is [Y], it's OK - default) root@dlp:~# cat /sys/module/kvm_intel/parameters/nested Y # if the result is [N], change like follows and reboot the system ) # specify [kvm_intel] for Intel CPU # specify [kvm_amd] for AMD CPU root@dlp:~# echo 'options kvm_intel nested=1' >> /etc/modprobe.d/qemu-system-x86.conf
|
[2] | Edit configuration of an existing virtual machine you'd like to set Nested like follows. That's OK, it's possible to create virtual machine on GuestOS. |
# edit config of a VM [ubuntu2304] root@dlp:~# virsh edit ubuntu2304 # specify [host-passthrough] or [host-model] for [cpu mode] section # * [host-passthrough] is set by default <cpu mode=' host-passthrough ' check='none' migratable='on'>
|
Sponsored Link |