VM template

From ISPWiki
Jump to: navigation, search
Hierarchy: VMmanager KVM -> VIRTUAL MACHINES
VMmanager Cloud -> VIRTUAL MACHINES

Virtual machines are created on cluster nodes based on pre-defined templates of virtual machines (VM templates).

To create a VM template navigate to the "Cluster section settings' --> "VM templates". For more information on how to create virtual machines from VM templates, please refer to the article "VM management".

VM templates

A virtual machine template allows to facilitate creation of virtual machines based on pre-defined parameters and resources. By default the system creates the “default” template with certain resources. You can edit the properties of the template if needed, or create additional VM templates.

Creating a VM template


  • Name of the template;
  • CPU emulation mode - the default values are set according to the selected VM template (Do not change this mode unless necessary!):
    • Default - virtual QEMU CPU is emulated;
    • Host-model - uses CPU description defined by libvirt, based on a cluster node processor;
    • Host-passthrough - fully emulates CPU of the cluster node;
    • Custom:
  • CPU model - the models are listed in the /usr/share/libvirt/cpu_map.xml file on the cluster node. You can add models corresponding to their vendor, architecture and CPU features;
  • CPU features - CPU features that should be activated. Execute the 'virsh capabilities' command on the cluster node to list all the CPU features.
  • Resources that will be allocated to a virtual machine created from this template:
    • Main disk size, RAM, CPU - set resources for the virtual machines.
  • Limits that will be applied to a virtual machine created from this template:
    • CPU weight - enter the cgroups weight for CPU;
    • I/O usage weight - cgroup weight on group operations;
    • Incoming traffic, Outgoing traffic - traffic limits;
    • Snapshots - the maximum number of snapshots that a user can create for this virtual machine.
  • Storage template - select a template where the VM disk will be located. You can set up storages in the "Cluster settings" section --> "Storage templates". You can add an additional storage after you created the VM template. Select the template on the list and click "Resources". For more information refer to the article “How to connect storages”;
  • Network that the virtual machine will be connected to. Networks can be configured in the "Cluster settings" section --> "Networks". You can add a new network after you created the VM template. Select the template on the list and click "Resources". For more information refer to the article “Networks”;
  • Network card model - a list of models of the virtual network card. The default value is “The model is specified in the template”, so the card model will be selected according to OS template.