Enabling the Nested Virtualization on the KVM Host
This is needed on the KVM Host as the nova instances that will be launched in the overcloud will be running on the overcloud nova nodes, that are themselves the virtual machines.
So eventually it is going to be virtual machines running inside the virtual machines. So we are configuring the KVM host for the nested virtualization.
To have this we put the below entries in the file kvm-nested.conf in /etc/modprobe.d/
the file /etc/modprobe.d/kvm-nested.conf reads like
options kvm_intel nested = 1
This is as I am having the Intel processors on the KVM Host.
In case there had been AMD processors, the same entry would have read as
options kvm_amd nested = 1
Reboot the server once here.
Whether the KVM nested virtualization has been enabled or not.
on the KVM host
cat /sys/module/kvm_intel/parameters/nested
If the nested virtualization has been enabled you see a 'Y' here.
Alternative way to test the nested virtualization will be
Using the virt-manager, create a VM and select option for CPU to 'Copy Host Configuration' followed by installation on CentOS minimal on the same.
Post install of the OS, login to the VM and if you can see the same CPU parameters as the Host, then you can be pretty sure that the nested virtualization is enabled.
In the guest if cat /proc/cpuinfo | grep -i -e svm -e vmx shows the flags as svm or vmx then the nested virtualization has been enabled. This means that you can run VMs inside the guest.
No comments:
Post a Comment