How to Create VM Templates in OpenNebula ?

  • VM template is used to instantiate a new virtual machine to perform the execution. The creation of VM template involves the assignment of specifications for the corresponding VM, in which specification parameters such as VM RAM, VM Storage, VM Network and VM input types.

i) Login as the oneadmin user in Terminal.

Type the following command.
<one start>

Screenshot from 2017-10-12 15:12:44

(ii) Start the OpenNebula SunStone.

Type the following command.

<service opennebula-sunstone start>

Screenshot from 2017-10-12 15:12:55

Go to https://localhost:9869 .

Login into OpenNebula Sunstone.

Screenshot from 2017-10-12 14:44:51


Password-xxxxxxxxx and click on “Login” button.

OpenNebula Dashboard screen will be displayed.

Screenshot from 2017-10-12 14:45:04
  • In OpenNebula Dashboard, click the “VirtualNetworks” under the “Network” Tab which is appeared in the Left side menu.
  • Click the “+” button to add a new virtual network.
Screenshot from 2017-10-13 09:49:23
  • Set the Network parameters as per the following specifications:  

    “General” TabName = "Network Name"

Screenshot from 2017-10-13 09:49:30

“Conf” Tab.

Bridge=”Your Bridge Name”.

Network Mode=”Bridged”.

Screenshot from 2017-10-13 09:49:35

“Addresses” Tab.

Select “IPv4”.

First IP address=”Mention the IP address”

Size=”your required IP address binding in network”.

Screenshot from 2017-10-13 09:49:39
  • Now Virtual Network is created in OpenNebula.
  • Step 4: Template Creation
In OpenNebula Dashboard, click the “VM” under the “Templates” Tab which is appeared in the Left side menu.
Screenshot from 2017-10-13 09:49:44
  • Click on the “+” button to create a new template.
Screenshot from 2017-10-13 09:49:48
  • Template Creation :
  • “General” Tab  

    Name = "Template name"
    Memory=”Your required RAM memory in GB”
    CPU=”Required CPU”
    VCPU=”Required VCPU”

Screenshot from 2017-10-13 09:49:53
  • “Storage” Tab  

    Select Disk 0
    Add the ISO image

    Select Disk 1
    Add the Empty Disk Image

Screenshot from 2017-10-13 09:50:05
  • “Network” Tab  

    Select your required virtual network

Screenshot from 2017-10-13 09:50:11
  • “OS Booting” Tab 

    CPU Architecture=”ISO image Type”

  • Boot order 

    Tick the ISO image and move into first position
    Tick the Empty disk image and move into Second position

Screenshot from 2017-10-13 09:50:17
  • “Input/Output” Tab 

    Select “VNC”.
    Listen on IP=””.
    Inputs Type=”Mouse” and “ps2”.

Screenshot from 2017-10-13 09:50:22
  • “Context” Tab 

    Tick the Add SSH contextualization
    Add the SSH Key in SSH public key box

  • Click “Create” button.
Screenshot from 2017-10-13 09:50:25
  • Now VM Templates is created in OpenNebula.
  • Any modification in VM Templates, Click the “update” button and change it.