amuck-landowner

Providing KVM VPS which come with Nested Virtualizationusing support using SolusVM

happycjx

New Member
Nested Virtualization, permits a deeper solution stack where guest virtual machines sit on a guest hypervisor, which in turn runs on the cloud's chosen hypervisor.


Below is the procedures of providing KVM VPS which come with Nested Virtualizationusing support using SolusVM:


1. Install and configure SolusVM Master and SolusVM Slave KVM successfully.

2. In KVM host node, use below command to confirm whether the kernel supports nested virtualization or not:
    For Intel CPU:
    cat /sys/module/kvm_intel/parameters/nested

    Or for Amd CPU:
    cat /sys/module/kvm_amd/parameters/nested

    If its output like No Such ...., then you need to upgrade your kernel first;

    If its output is Y, then your kernel support nested virtualization and it has been enabled;
    
    If its output is N, it means your kernel support nested virtualization but it has not been enabled, you need to execute below commands:
    For Intel CPU:
    rmmod kvm_intel && modprobe kvm_intel nested=1 && echo "kvm_intel options kvm_intel nested=1" > /etc/modprobe.d/kvm-intel.conf

    For Amd CPU:
    rmmod kvm_amd && modprobe kvm_amd nested=1 && echo "kvm_amd options kvm_amd nested=1" > /etc/modprobe.d/kvm-amd.conf

    After that, you should confirm it has been enabled successfully.
   
3. In SolusVM, setting a KVM VPS, and set its CPU to passthrough.

4. Reboot your KVM VPS, and now you can see guest CPU has Intel-VT or AMD-V support.

5. Done.


References:
1. http://www.ibm.com/developerworks/cloud/library/cl-nestedvirtualization/
 
 

earl

Active Member
Never really played around with solusvm, but thanks for sharing.. hopefully there will be providers that can offer this service.
 

scv

Massive Nerd
Verified Provider
These instructions actually have nothing to do with SolusVM and will work with KVM on any platform (given you pass -cpu host to qemu), period.
 
Top
amuck-landowner