Difference between revisions of "OpenNebula Templates"
Jump to navigation
Jump to search
Client Admin (talk | contribs) |
|||
Line 12: | Line 12: | ||
#Click on the "+" button to create a new template. See below. | #Click on the "+" button to create a new template. See below. | ||
#Click "Create" button. | #Click "Create" button. | ||
===Configure Template=== | |||
===Configure Template for a Linux VM=== | |||
The basic procedure is as follows: | |||
* Add a template name in "General" menu. | |||
[[File:Template_name.png|thumb|none|upright=2]] | |||
* In "Storage" tab, choose a storage disk. If your template requires more disks, click on "Add another disk" and select it accordingly. | |||
[[File:Template_storage.png|thumb|none|upright=2.5]] | |||
* In "Network" tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on "Add another nic" and select it accordingly. | |||
[[File:Template_interface.png|thumb|none|upright=2.5]] | |||
* If a fixed ip address is required, click on "Advanced Option" button and type the fixed address in the "IP" field. | |||
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]] | |||
* In "Input/Output" menu, select "VNC" Graphics and tick "Generate Random Password". | |||
[[File:Template_vnc.png|thumb|none|upright=1.5]] | |||
* In "Context" menu, add SSH keys in the "Public Key" field and make sure that "Add SSH contextualization" and "Add Network contextualization" are ticked. | |||
[[File:Template_context.png|thumb|none|upright=2.5]] | |||
* In "Context" menu, you can define a root password under "Custom Vars". Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= "password" and press "Add" button. | |||
[[File:Template_rootpwd.png|thumb|none|upright=2.5]] | |||
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open this page]]. | |||
===Configure Template for a Windows VM=== | |||
The basic procedure is as follows: | The basic procedure is as follows: | ||
* Add a template name in "General" menu. | * Add a template name in "General" menu. |
Revision as of 08:48, 25 April 2017
Create a new Template
- Log into OpenNebula Sunstone.
- Go to “Templates” in the left menu and click on “VMs” in the drop down menu.
- Click on the "+" button to create a new template. See below.
- Click "Create" button.
Configure Template for a Linux VM
The basic procedure is as follows:
- Add a template name in "General" menu.
- In "Storage" tab, choose a storage disk. If your template requires more disks, click on "Add another disk" and select it accordingly.
- In "Network" tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on "Add another nic" and select it accordingly.
- If a fixed ip address is required, click on "Advanced Option" button and type the fixed address in the "IP" field.
- In "Input/Output" menu, select "VNC" Graphics and tick "Generate Random Password".
- In "Context" menu, add SSH keys in the "Public Key" field and make sure that "Add SSH contextualization" and "Add Network contextualization" are ticked.
- In "Context" menu, you can define a root password under "Custom Vars". Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= "password" and press "Add" button.
For more information regarding Contextualization open this page.
Configure Template for a Windows VM
The basic procedure is as follows:
- Add a template name in "General" menu.
- In "Storage" tab, choose a storage disk. If your template requires more disks, click on "Add another disk" and select it accordingly.
- In "Network" tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on "Add another nic" and select it accordingly.
- If a fixed ip address is required, click on "Advanced Option" button and type the fixed address in the "IP" field.
- In "Input/Output" menu, select "VNC" Graphics and tick "Generate Random Password".
- In "Context" menu, add SSH keys in the "Public Key" field and make sure that "Add SSH contextualization" and "Add Network contextualization" are ticked.
- In "Context" menu, you can define a root password under "Custom Vars". Add the following entries: KEY= ROOT_PASSWORD, VALUE= "password" and press "Add" button.
Update a Template
- Log into OpenNebula Sunstone.
- Go to “Templates” in the left menu and click on “VMs” in the drop down menu.
- Click on the template and press "Update" button.
- Make the necessary changes and press the green "Update" button to save.