Blog

[R&D] KVM Nested Virtualization

With KVM is possible to do nested virtualization to create VM inside other VM on your host.

In this video is explained how to do:

Actually we investigate how to create a virtual firewall inside the hostVM to manage the internal network of a new VPS.

Using an old server with Ubuntu 18.04 and kvm we did the first test of nested VMs.
The server in question is a 2Ghz dual processor Xeon with non-SSD disks.
We used the stress-ng software as an evaluation system to make the comparison.

So we ran in sequence:

1) Test on the host machine (Dell R430)

2) Test on the first level VM

3) Test on the second level VM

4) A modern server (DELL-R740 / SSD / DDR4)

This is not a sufficient test, but from an idea of ​​how KVM behaves with the levels of virtualization.

There is almost no difference in performance between the main host and the first level of virtualization.

While on the second level there is a loss of almost 50% of the performances and even if the test is very superficial we do not expect them to improve much.

Having said that, the second level of virtualization is a non-waivable solution for a data center with multiple clients per server, I suppose.

We have not tested the impact on virtIO / macvtap relative to the network-IO

Scoprite cosa possiamo fare per il vostro business
Tecnologie e Partner