KVM : Nested KVM
If you want to create virtual machines as nested KVM on KVM host:
- Enable the setting for Nested KVM.
# show the current setting ( if the result is [Y], it's OK )
root@localhost:~# cat /sys/module/kvm_intel/parameters/nested
Y
# if the result is [N], change like follows and reboot the system )
root@localhost:~# 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:
# edit config of a VM [ubuntu1804]
root@localhost:~# virsh edit ubuntu1804
# change [cpu mode] like follows
<cpu mode='host-passthrough'>
ref: https://www.server-world.info/en/note?os=Ubuntu_18.04&p=kvm&f=8