<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cipherspace.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Valentina</id>
	<title>CipherSpace Client Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cipherspace.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Valentina"/>
	<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php/Special:Contributions/Valentina"/>
	<updated>2026-04-06T23:49:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=680</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=680"/>
		<updated>2017-04-25T09:24:42Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Basic Template for Windows VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
The  [[Contextualization_of_Linux_VMs|following page]] contains more information regarding the Context section.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
The  [[Contextualization_of_Windows_VMs|following page]] contains more information regarding the Context section.&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=679</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=679"/>
		<updated>2017-04-25T09:24:23Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Basic Template for Windows VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
The  [[Contextualization_of_Linux_VMs|following page]] contains more information regarding the Context section.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
The  [[Contextualization_of_Linux_VMs|following page]] contains more information regarding the Context section.&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=678</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=678"/>
		<updated>2017-04-25T09:23:52Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Basic Template for Linux VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
The  [[Contextualization_of_Linux_VMs|following page]] contains more information regarding the Context section.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=677</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=677"/>
		<updated>2017-04-25T09:11:19Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for Windows VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section[[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=676</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=676"/>
		<updated>2017-04-25T09:11:01Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for Linux VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Basic Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section[[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=675</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=675"/>
		<updated>2017-04-25T09:05:30Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Windows VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section[[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for Windows VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=674</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=674"/>
		<updated>2017-04-25T09:05:19Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Linux VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for Linux VMs===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section[[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=673</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=673"/>
		<updated>2017-04-25T09:02:29Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Linux VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section[[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=672</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=672"/>
		<updated>2017-04-25T09:01:35Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Windows VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section [[Contextualization_of_Windows_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=671</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=671"/>
		<updated>2017-04-25T09:01:15Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Linux VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open the relative page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=670</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=670"/>
		<updated>2017-04-25T08:59:45Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Windows VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open this page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Context section&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=669</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=669"/>
		<updated>2017-04-25T08:51:45Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Windows VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open this page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;your-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;your-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=668</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=668"/>
		<updated>2017-04-25T08:51:01Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configure Template for a Windows VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open this page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a user account under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= USERNAME, VALUE= &amp;quot;account-username&amp;quot;, KEY= PASSWORD, VALUE= &amp;quot;account-plain-password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_userpassword.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Template_userpassword.png&amp;diff=667</id>
		<title>File:Template userpassword.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Template_userpassword.png&amp;diff=667"/>
		<updated>2017-04-25T08:50:55Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=666</id>
		<title>OpenNebula Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=OpenNebula_Templates&amp;diff=666"/>
		<updated>2017-04-25T08:48:55Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Create a new Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu. &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the &amp;quot;+&amp;quot; button to create a new template. See below.&lt;br /&gt;
#Click &amp;quot;Create&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Linux VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= CRYPTED_PASSWORD_BASE64, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button. &lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
For more information regarding Contextualization [[Contextualization_of_Linux_VMs| open this page]].&lt;br /&gt;
&lt;br /&gt;
===Configure Template for a Windows VM===&lt;br /&gt;
The basic procedure is as follows:&lt;br /&gt;
* Add a template name in &amp;quot;General&amp;quot; menu.&lt;br /&gt;
[[File:Template_name.png|thumb|none|upright=2]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Storage&amp;quot; tab, choose a storage disk. If your template requires more disks, click on &amp;quot;Add another disk&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_storage.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Network&amp;quot; tab, select a Virtual Network, which the instantiated virtual machine(s) will be connected to. If your template requires more network interfaces, click on &amp;quot;Add another nic&amp;quot; and select it accordingly.&lt;br /&gt;
[[File:Template_interface.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If a fixed ip address is required, click on &amp;quot;Advanced Option&amp;quot; button and type the fixed address in the &amp;quot;IP&amp;quot; field.&lt;br /&gt;
[[File:Template_adv_net_opt.png|thumb|none|upright=2.0]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Input/Output&amp;quot; menu, select &amp;quot;VNC&amp;quot; Graphics and tick &amp;quot;Generate Random Password&amp;quot;. &lt;br /&gt;
[[File:Template_vnc.png|thumb|none|upright=1.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, add SSH keys in the &amp;quot;Public Key&amp;quot; field and make sure that &amp;quot;Add SSH contextualization&amp;quot; and &amp;quot;Add Network contextualization&amp;quot; are ticked.&lt;br /&gt;
[[File:Template_context.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Context&amp;quot; menu, you can define a root password under &amp;quot;Custom Vars&amp;quot;. Add the following entries: KEY= ROOT_PASSWORD, VALUE= &amp;quot;password&amp;quot; and press &amp;quot;Add&amp;quot; button.&lt;br /&gt;
[[File:Template_rootpwd.png|thumb|none|upright=2.5]]&lt;br /&gt;
&lt;br /&gt;
==Update a Template==&lt;br /&gt;
#[[OpenNebula_Administrative_Functions | Log into OpenNebula Sunstone]].&lt;br /&gt;
#Go to “Templates” in the left menu and click on “VMs” in the drop down menu.  &lt;br /&gt;
#:[[File:Templates_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#:&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on the template and press &amp;quot;Update&amp;quot; button.&lt;br /&gt;
#Make the necessary changes and press the green &amp;quot;Update&amp;quot; button to save.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Template_rootpwd.png&amp;diff=665</id>
		<title>File:Template rootpwd.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Template_rootpwd.png&amp;diff=665"/>
		<updated>2017-04-25T08:28:12Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=662</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=662"/>
		<updated>2017-04-21T13:43:02Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
These last attributes are also automatically filled up adding SSH public keys in the [[Contextualization_of_Linux_VMs#Configuration | Context Configuration Section]] of the template:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=661</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=661"/>
		<updated>2017-04-21T13:42:45Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
These last attributes are also automatically filled up adding SSH public keys in the [[Contextualization_of_Linux_VMs#Configuration | Context Configuration Section]]:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=660</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=660"/>
		<updated>2017-04-21T13:42:04Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
These last attributes are also automatically filled up adding SSH public keys in the [[Contextualization_of_Linux_VMs#Configuration | Configuration Section]]:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=659</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=659"/>
		<updated>2017-04-21T13:32:56Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
These last attributes are also automatically filled up adding SSH public keys in the [[Contextualization_of_Linux_VMs#Configuration | Configuration Section]]:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=658</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=658"/>
		<updated>2017-04-21T13:25:22Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
These last attributes are also automatically filled up if you add SSH public keys in the [[Contextualization_of_Linux_VMs#Configuration | Configuration Section]]:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=657</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=657"/>
		<updated>2017-04-21T13:22:33Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network and the [[Contextualization_of_Linux_VMs#Configuration | Context Configuration]] section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=656</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=656"/>
		<updated>2017-04-21T13:17:26Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Custom Vars */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the Network and [[Contextualization_of_Linux_VMs#Configuration | Context Configuration]] section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=655</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=655"/>
		<updated>2017-04-21T13:15:33Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root). &amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; SSH daemon on the host is configured to deny access to user &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; and it does not support password authentication. If you specify &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; such account will be created and any SSH keys you may have configured will be allowed to login as that user. If you use any of the context variables below then password will be set for the user too. If username is not root you will be able to SSH in using SSH key and you will be able to login on the VNC console but you will &amp;#039;&amp;#039;&amp;#039;not be able escalate your privileges&amp;#039;&amp;#039;&amp;#039; to root. If username is &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; or you do not use &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; then you will be able to login on the VNC console but you will not be able to SSH in. &amp;#039;&amp;#039;&amp;#039;Contextualization script always creates an user &amp;#039;&amp;#039;cloudUser&amp;#039;&amp;#039; which is allowed to login SSH using the keys you have configured in the template. Also cloudUser is allowed to elevate its privileges via sudo without password. the following command will make you root without password:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*: sudo -s&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user. You can use the following command:&lt;br /&gt;
*: openssl passwd -1 | base64&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead. You can use the following command:&lt;br /&gt;
*: openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the network and context section of the template: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=654</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=654"/>
		<updated>2017-04-21T13:02:58Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; - Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
The following attributes are automatically filled up configuring the network section of the template:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=653</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=653"/>
		<updated>2017-04-21T12:54:16Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; - Password encoded in base64. To be set for the user USERNAME.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=652</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=652"/>
		<updated>2017-04-21T10:13:30Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;br /&gt;
#:[[File:disk_info_resized.png|thumb|none|upright=1.3]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=651</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=651"/>
		<updated>2017-04-21T10:13:18Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;br /&gt;
#:[[File:disk_info_resized.png|thumb|none|upright=1]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=650</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=650"/>
		<updated>2017-04-21T10:12:55Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;br /&gt;
#:[[File:disk_info_resized.png|thumb|none|upright=1.5]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=649</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=649"/>
		<updated>2017-04-21T10:12:47Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;br /&gt;
#:[[File:disk_info_resized.png|thumb|none|upright=1]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=648</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=648"/>
		<updated>2017-04-21T10:12:09Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;br /&gt;
#:[[File:disk_info_resized.png|thumb|none|upright=2.5]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Disk_info_resized.png&amp;diff=647</id>
		<title>File:Disk info resized.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Disk_info_resized.png&amp;diff=647"/>
		<updated>2017-04-21T10:12:04Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=646</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=646"/>
		<updated>2017-04-21T10:08:15Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot;, you can resize the image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Disk_resize.png&amp;diff=645</id>
		<title>File:Disk resize.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Disk_resize.png&amp;diff=645"/>
		<updated>2017-04-21T10:04:54Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=644</id>
		<title>How To Resize An Image In OpenNebula</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=How_To_Resize_An_Image_In_OpenNebula&amp;diff=644"/>
		<updated>2017-04-21T10:03:46Z</updated>

		<summary type="html">&lt;p&gt;Valentina: Created page with &amp;quot;Category:OpenNebula Category:How To Category:CloudInfrastructure #Open OpenNebula Sunstone and  login. #Go to “Storage...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:CloudInfrastructure]]&lt;br /&gt;
#Open OpenNebula Sunstone and [[OpenNebula_Administrative_Functions | login]].&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu.&lt;br /&gt;
#:[[File:Img_menu.png|thumb|none|upright=0.5]]&lt;br /&gt;
#Click on the image you want to resize, and make sure is not persistent in &amp;quot;Info&amp;quot; tab.&lt;br /&gt;
#:[[File:Img_information.png|thumb|none|upright=1.5]]&lt;br /&gt;
#[[How_To_Manage_OpenNebula_Virtual_Machines#Instantiate_a_Virtual_Machine | Instantiate a Virtual Machine ]] attaching your image as Storage Disk (See [[How_To_Create_OpenNebula_Template | How modify a VM Template]]).&lt;br /&gt;
#A flyout will appear. In the right side, under &amp;quot;Disks&amp;quot; you can resize the disk image. Once done, click Instantiate button.&lt;br /&gt;
#:[[File:disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#As soon as the VM is running, [[How_To_Manage_OpenNebula_Virtual_Machines#Poweroff | Power it Off]].&lt;br /&gt;
#Click on your VM and Go to &amp;quot;Storage&amp;quot; tab. &lt;br /&gt;
#:[[File:storage_tab_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Click &amp;quot;Save As&amp;quot; Action next to the disk image information.Specify an Image name and click &amp;quot;Save As&amp;quot;.&lt;br /&gt;
#:[[File:saveas_disk_resize.png|thumb|none|upright=2]]&lt;br /&gt;
#Go to “Storage” in the left menu and click on “Images” in the drop down menu. You should see the new image with a resized disk.&lt;br /&gt;
#:While OpenNebula is saving the image, it will be in &amp;quot;LOCKED&amp;quot; state. This image cannot be used until the state changes to &amp;quot;READY&amp;quot;.&lt;br /&gt;
#:[[File:list_resized.png|thumb|none|upright=2.5]]&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Storage_tab_resize.png&amp;diff=643</id>
		<title>File:Storage tab resize.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Storage_tab_resize.png&amp;diff=643"/>
		<updated>2017-04-21T10:00:17Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Saveas_disk_resize.png&amp;diff=642</id>
		<title>File:Saveas disk resize.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Saveas_disk_resize.png&amp;diff=642"/>
		<updated>2017-04-21T09:52:56Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:List_resized.png&amp;diff=641</id>
		<title>File:List resized.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:List_resized.png&amp;diff=641"/>
		<updated>2017-04-21T09:51:58Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=File:Img_information.png&amp;diff=639</id>
		<title>File:Img information.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=File:Img_information.png&amp;diff=639"/>
		<updated>2017-04-21T09:43:27Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=609</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=609"/>
		<updated>2017-03-20T09:31:22Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=608</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=608"/>
		<updated>2017-03-20T09:31:17Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=607</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=607"/>
		<updated>2017-03-20T09:30:50Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Make sure that &amp;#039;&amp;#039;&amp;#039;context.ps1&amp;#039;&amp;#039;&amp;#039; has been selected.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=606</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=606"/>
		<updated>2017-03-20T09:29:41Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh service will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=605</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=605"/>
		<updated>2017-03-20T09:29:17Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. The VM will be configured with the information added in the network section or in [[#Custom Vars|Custom Var]] section of the template.&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Ssh will be enabled.&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=604</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=604"/>
		<updated>2017-03-20T09:21:46Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can include files in your vm. Files can be added in OpenNebula in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can select files from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
If the file is a script you want to run at boot you can add it INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=601</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=601"/>
		<updated>2017-03-15T14:23:44Z</updated>

		<summary type="html">&lt;p&gt;Valentina: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=600</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=600"/>
		<updated>2017-03-15T13:40:57Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Make sure that &amp;#039;&amp;#039;&amp;#039;context.ps1&amp;#039;&amp;#039;&amp;#039; has been selected.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=599</id>
		<title>Contextualization of Windows VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Windows_VMs&amp;diff=599"/>
		<updated>2017-03-15T13:37:36Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Make sure that &amp;#039;&amp;#039;&amp;#039;context.ps1&amp;#039;&amp;#039;&amp;#039; has been selected.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=598</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=598"/>
		<updated>2017-03-15T13:13:50Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file ([[#Custom Vars|See custom section]]) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
	<entry>
		<id>https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=597</id>
		<title>Contextualization of Linux VMs</title>
		<link rel="alternate" type="text/html" href="https://wiki.cipherspace.com/index.php?title=Contextualization_of_Linux_VMs&amp;diff=597"/>
		<updated>2017-03-15T13:06:57Z</updated>

		<summary type="html">&lt;p&gt;Valentina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:OpenNebula]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OpenNebula uses a method called contextualization to send information to the VM at boot time. Information is collected in the Template and is essential to configure the VM.&lt;br /&gt;
&lt;br /&gt;
The VM template has a section called &amp;quot;&amp;#039;&amp;#039;&amp;#039;Context&amp;#039;&amp;#039;&amp;#039;&amp;quot; where you can automate different configuration aspects.&lt;br /&gt;
&lt;br /&gt;
The Context section has 3 parts:&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configuration&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
 &lt;br /&gt;
[[File:Template-Configuration.png|768px]]&lt;br /&gt;
&lt;br /&gt;
This is the most basic context configuration provided by OpenNebula, where you can:&lt;br /&gt;
* Enable &amp;#039;&amp;#039;&amp;#039;SSH&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Network&amp;#039;&amp;#039;&amp;#039; contextualization. Text to be added&lt;br /&gt;
* Add &amp;#039;&amp;#039;&amp;#039;SSH public keys&amp;#039;&amp;#039;&amp;#039;. Keys will be added to USERNAME authorized_keys file (see custom section (add link)) or to root in case USERNAME is not set.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;START_SCRIPT&amp;#039;&amp;#039;&amp;#039; -  Script which is executed when the machine starts up. It can contain either shell script or Shebang. For example START_SCRIPT=&amp;quot;yum upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Files&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-Files.png|768px]]&lt;br /&gt;
&lt;br /&gt;
You can select files you want to include from the list and they will be automatically added in FILES_DS attribute.&lt;br /&gt;
&lt;br /&gt;
Also you can define a space-separated list of scripts that will run at boot, using INIT_SCRIPTS attribute.&lt;br /&gt;
&lt;br /&gt;
Files can be added in &amp;quot;Files&amp;quot; section in the left menu under &amp;quot;Images&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Images-Files.png|thumb|none|upright=0.5]]&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Custom Vars&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
[[File:Template-CustomVars.png|768px]]&lt;br /&gt;
&lt;br /&gt;
In this section you can setup a more advanced contextualization, the attributes available are:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;VARIABLE&amp;#039;&amp;#039;&amp;#039; -  Variables that store values related to this virtual machine or others . The name of the variable is arbitrary (in the example, we use hostname).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SET_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -  This parameter value will be the hostname of the VM.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS_HOSTNAME&amp;#039;&amp;#039;&amp;#039; -   	YES to set the VM hostname to the reverse dns name (from the first IP)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GATEWAY_IFACE&amp;#039;&amp;#039;&amp;#039; -  This variable can be set to the interface number you want to configure the gateway. It is useful when several networks have GATEWAY parameter and you want yo choose the one that configures it. For example to set the first interface to configure the gateway you use GATEWAY_IFACE=0&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS&amp;#039;&amp;#039;&amp;#039; -  Specific DNS server for the Virtual Machine&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MAC&amp;#039;&amp;#039;&amp;#039; -  Used to find the correct interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IP&amp;#039;&amp;#039;&amp;#039; -  IPv4 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_IPV6&amp;#039;&amp;#039;&amp;#039; -  IPv6 address for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_NETWORK&amp;#039;&amp;#039;&amp;#039; -  Network address of the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MASK&amp;#039;&amp;#039;&amp;#039; -  Network mask&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY&amp;#039;&amp;#039;&amp;#039; -  Default IPv4 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_GATEWAY6&amp;#039;&amp;#039;&amp;#039; -  Default IPv6 gateway for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_MTU&amp;#039;&amp;#039;&amp;#039; -  MTU value for the interface&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ETHx_DNS&amp;#039;&amp;#039;&amp;#039; - DNS for the network&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039;&amp;#039; -  User to be created in the guest OS. If any password attribute is defined (see below) it will change this user (defaults to root).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Crypted password encoded in base64. To be set for the user USERNAME. If not defined it will change root user.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD_BASE64&amp;#039;&amp;#039;&amp;#039; -  Password encoded in base64. To be set for the user USERNAME.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CRYPTED_PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Crypted password. To be set for the user USERNAME. This parameter is not recommended, use CRYPTED_PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PASSWORD&amp;#039;&amp;#039;&amp;#039; -  Password to be set for the user USERNAME. This parameter is not recommended, use PASSWORD_BASE64 instead.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; -  Key to be added to USERNAME authorized_keys file or root in case USERNAME is not set.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;EC2_PUBLIC_KEY&amp;#039;&amp;#039;&amp;#039; - Same as SSH_PUBLIC_KEY&lt;/div&gt;</summary>
		<author><name>Valentina</name></author>
	</entry>
</feed>