Creating XenServer Templates

Creating Xenserver Templates Using XenCenter

The Module in its current state is supporting 3 types of OSs

1- Ubuntu

2- Debian

3- CentOs


for each one of these Operating Systems you should create one or more templates for each different OS, version or architecture e.g you should create both centos-5.5-i386 and centos-5.5-x86_64



Note: in this example we will show you how to create centos-5.5-i386 template

1- right click on the default template that correspond to your desired Os, Version and architecture and select new VM from template

2-same thing choose the same template with desired os ,version and arch (redundant step)

3- write the name of the template .

  • the name has to be in lower case
  • the name should be of the format OSNAME-VERSION-ARCH where version can be either a number (e.g. centos) or a name (e.g. ubuntu)
  • thee name you write here should match the name of the os option in your configurable options in WHMCS
4- choose install from URL and wite the url of web install that you wish
  • the url for centos templates should be in the following format where VERSION is version number (e.g. 5.5) and ARCH can be either i386 or X86_64
  • the url for Debian templates will be always where ca is your country abbreviation (to get full list of mirrors go to
  • the url for Ubuntu templates will always be
  • you can change these urls by local mirrors if you know what you are doing
5- set number of VCPUs and Memory
  • whenever we create new VM from our module we overwrite these settings by the setting set in product configuration (for more info go to add new product)
  • usually it is a good idea to set those values to minimum allowed
6- set Storage location and size
  • all VMs created from this template will have their storage on the same Storage repository (SR) as this template
  • set the disk size to minimum
7- set networking interfaces for the template
  • by default you will find 2 network interfaces delete the second one as we must have one network interface only
8- on the last step uncheck Start the new VM automatically
  • if you by mistake didn’t uncheck this check box and clicked finish the template will be corrupted and unusable and you should start again
9- right click on the newly created VM (it shouldn’t be in running state) and choose convert to template
and confirm the following popup
10- repeat the whole process for each new vm you are adding to the system

Leave a comment