The following sub-sections describe the steps involved in creating a cartridge base image on the OpenStack GCE IaaS:toc
- Step 1 - Spawn an instance
- Step 2 - Configure the cartridge base image
- Step 3 - Create a snapshot of the instance
Step 1 - Spawn an instance
...
Set the auto-delete state of the root persistent disk to
false
as follows:
This is done to avoid the persistent disk from being automatically deleted when you terminate the instance.- On the Compute menu, click Compute Engine and then click VM Instances.
Click on the name of the instance.
Edit the settings related to the instance.
Uncheck the Delete boot disk when instance is deleted option. This is done to ensure that all the data is not deleted when you terminate the instance.
Click Save.
If you wish to view details on the disk related to the instance, click Compute Engine and then click Disks.
Delete the instance.
Initially, you need to terminate the spawned instance using the root persistent disk to be able to create an image. When you are terminating the instance make sure that the persistent disk is not attached to any other virtual machines.- On the Compute menu, click Compute Engine and then click VM Instances.
- Check the instance that you need to delete.
- Click Delete to delete the instance.
Create a new image as follows:
- On the Compute menu, click Compute Engine and then click Images.
- Click Create Image.
- Provide the Source type as
Disk
and select the relevant disk name from the dropdown menu. You need to do this to create the image based on the persistent disk. - Click Create.
The newly created image is immediately available under the Images section.
Table of Contents |
---|