Nested virtualization allows you to run virtual machines inside a virtual machine. Though this is not good for any kind of production use case because of the performance issues involved, this is usually good for testing purposes. Eg, students can be given virtual machines to test virtualization without allocating physical systems per head count.
I am only covering intel cpus in this blog post. The steps are very simple.
N
options kvm-intel nested=1I am only covering intel cpus in this blog post. The steps are very simple.
- Verify that nested virtualization is not enabled already.
N
- Add below line to /etc/modprobe.d/kvm-intel.conf
- Reboot the host or do
modprobe kvm-intel
- Verify that nested virtualization is enabled.
Y
2 comments:
What should we do when we have the kvm-intel module, but don't have "nested" parameters in it ?
Make sure that you use latest version of kvm-intel which has nested support. I think latest version has this parameter.
If kvm-intel is not compiled as a module, you would have to add a kernel parameter for same.
Post a Comment