Difference between revisions of "How To Build New OpenNebula Image Using ISO file"
Line 1: | Line 1: | ||
[[Category:OpenNebula]] | |||
[[Category:How To]] | |||
1. You can use an existing ISO image or you can [[How_To_Upload_ISOs_On_OpenNebula | upload a new one]]. | |||
2. [[How_To_Create_OpenNebula_Datablock | Create an empty disk image where the operating system will be installed]]. | |||
3. [[OpenNebula_Templates | Create or modify a template]]. This template will then be used to instantiate a virtual machine on which the operating system will be install. | |||
* Add the ISO image and the empty image in "Storage" menu | |||
* Configure the boot order in the template in "OS Booting" menu, choosing the ISO image (CDROM) as first option | |||
* Add the | |||
* Configure the boot order in the template in "OS Booting" menu, choosing the ISO | |||
[[File:template_bootorder.png|thumb|none|upright=2]] | [[File:template_bootorder.png|thumb|none|upright=2]] | ||
Line 15: | Line 16: | ||
5. Install the operating system | 5. Install the operating system. | ||
Once the | Once the operating system is installed, [[How_To_Manage_OpenNebula_Virtual_Machines#Shutdown_a_Virtual_Machine | shutdown]] the virtual machine. | ||
6. Go to “Virtual Resources” in the left menu, click on “Images” in the drop down menu and select the | 6. Go to “Virtual Resources” in the left menu, click on “Images” in the drop down menu and select the disk image on which you installed the operating system. | ||
7. Click on the [[File:Img_changetype.png|50px]] icon next to the "type" field and | 7. Click on the [[File:Img_changetype.png|50px]] icon next to the "type" field and modify the image type from "DATABLOCK" to "OS". | ||
[[File:img_toos.png|thumb|none|upright=1.5]] | [[File:img_toos.png|thumb|none|upright=1.5]] | ||
8. Go to “Virtual Resources” in the left menu, click on “Templates” in the drop down menu and select the template used to instantiate the virtual machine. | 8. Go to “Virtual Resources” in the left menu, click on “Templates” in the drop down menu and select the template used to instantiate the virtual machine. | ||
* Remove the uploaded ISO file in "Storage" menu | * Remove the uploaded ISO file in "Storage" menu | ||
* | * "OS Booting" menu change "1st boot" to nothing. | ||
[[File:Template_afterinstall.png|thumb|none|upright=2]] | [[File:Template_afterinstall.png|thumb|none|upright=2]] | ||
Now you can use this template to instantiate | Now you can use this template to instantiate a VM. |
Revision as of 08:38, 20 September 2016
1. You can use an existing ISO image or you can upload a new one.
2. Create an empty disk image where the operating system will be installed.
3. Create or modify a template. This template will then be used to instantiate a virtual machine on which the operating system will be install.
- Add the ISO image and the empty image in "Storage" menu
- Configure the boot order in the template in "OS Booting" menu, choosing the ISO image (CDROM) as first option
4. Click on the template just created and press "Instantiate" button to power on the virtual machine.
5. Install the operating system.
Once the operating system is installed, shutdown the virtual machine.
6. Go to “Virtual Resources” in the left menu, click on “Images” in the drop down menu and select the disk image on which you installed the operating system.
7. Click on the icon next to the "type" field and modify the image type from "DATABLOCK" to "OS".
8. Go to “Virtual Resources” in the left menu, click on “Templates” in the drop down menu and select the template used to instantiate the virtual machine.
- Remove the uploaded ISO file in "Storage" menu
- "OS Booting" menu change "1st boot" to nothing.
Now you can use this template to instantiate a VM.