Fedora 32
Sponsored Link

KVM : Nested KVM2020/05/07

 
Configure Nested KVM. It's possible to install KVM Hypervisor and Create virtual machines as nested KVM on KVM host.
[1] Enable Nested KVM setting.
# confirm current setting

[root@dlp ~]#
cat /sys/module/kvm_intel/parameters/nested

N    
# disabled

[root@dlp ~]#
vi /etc/modprobe.d/kvm.conf
# uncomment either of the line

# for Intel CPU, select [kvm_intel], for AMD CPU, select [kvm_amd]

options kvm_intel nested=1
#options kvm_amd nested=1
# unload

[root@dlp ~]#
modprobe -r kvm_intel
# reload

[root@dlp ~]#
modprobe kvm_intel
[root@dlp ~]#
cat /sys/module/kvm_intel/parameters/nested

Y    
# just enabled

[2] Edit the configuration of a virtual machine you'd like to set nested like follows.
It's OK to configure nested KVM and you can create virtual machines on the virtual machine nested.
( for details of CPU mode ⇒ libvirt.org/formatdomain.html#elementsCPU )
# edit the settings of a VM [fedora32]

[root@dlp ~]#
virsh edit fedora32
# change [cpu mode] like follows

# if not go weell, specify [host-passthrough]

<cpu mode='
host-model
'>
Matched Content