The purpose of this pull request is to make ranchervm able to run high performance VM meant to be
used network virtual function.
One of the requirement for network virtual function is to leverage SRIOV for multiple network interfaces.
By consequences, the qemu hypervisor has to be configured to use multiple VFIO type interfaces and hugepages memory backing.
This pull request is to propose to add properties to the kubernetes VM object.
image_vmtools property to specify an alternate vm-tools image (which would contain a customized startvm script)
kvm_extra_args property to specify additional parameters to be passed to qemu (-mem-path, -mem-prealloc, multiple VFIO interfaces,...)
use_hugepages property to trigger the use of hugepages as medium for an "empty dir" volume used as "-mem-path" by qemu
Here is an example of a VM making use of those new properties
The purpose of this pull request is to make ranchervm able to run high performance VM meant to be used network virtual function. One of the requirement for network virtual function is to leverage SRIOV for multiple network interfaces. By consequences, the qemu hypervisor has to be configured to use multiple VFIO type interfaces and hugepages memory backing. This pull request is to propose to add properties to the kubernetes VM object. image_vmtools property to specify an alternate vm-tools image (which would contain a customized startvm script) kvm_extra_args property to specify additional parameters to be passed to qemu (-mem-path, -mem-prealloc, multiple VFIO interfaces,...) use_hugepages property to trigger the use of hugepages as medium for an "empty dir" volume used as "-mem-path" by qemu Here is an example of a VM making use of those new properties