When deploying cloud servers, one of the most common challenges is configuring each instance with the required operating system, software packages, security settings, and application components. Repeating these steps for every new server can be time-consuming and error-prone.
Oracle Cloud Infrastructure (OCI) solves this problem with Custom Images.
In this article, we'll explore what OCI Custom Images are, why they are useful, how they work, and how to create and use them.
What is a Custom Image?
A Custom Image is a reusable template created from an existing OCI Compute instance. It captures the contents of the instance's boot volume, including:
- Operating System
- Installed software
- Configuration settings
- Security updates
- Custom scripts
- Application components
You can use this image to launch new compute instances that are identical to the original server.
Think of a Custom Image as a snapshot of a fully configured server that can be reused whenever needed.
Imagine you have configured a web server with:
- Oracle Linux
- Apache Web Server
- Java Runtime Environment
- Application code
- Security configurations
Without Custom Images, every new server would require manual installation and configuration.
With Custom Images, you simply create a reusable image and launch new instances from it.
To create Custom Image follow the below steps:
- Login to Cloud Console https://cloud.oracle.com/
- Open the Navigation Menu and click on Instances under the Compute Section
- Now in Instances screen, click on the Virtual Machine name for which you want to create the Custom Image
- Once, instance page is opened, click on Actions and then select More actions -> Create custom image
- Then on Create custom image screen, enter the Name and select the compartment in which you want to store the image
- Now, state of the virtual machine will be changed to Creating Image
- Once done, state will be again change back to previous one. This new Custom Image will be stored in the compartment which you selected
- Now when you create new Virtual Machine, then while creation you can select the Custom Image shape that we created
- Choose custom Image that we just created and click on Select Image:
- So, by this way you can create a new virtual Machine with all the software packages installed similar to installed one.


Comments
Post a Comment