Creating an Image
To launch a compute instance in Oracle Cloud Infrastructure (OCI), you must create or import an image in the Oracle Cloud Infrastructure Compute tenancy.
The page includes the following tasks:
Creating a Custom Linux Image
Create an instance in your OCI tenancy, and then install your application on this instance. After installing the application on this instance, create a custom image in OCI. Follow the image guidelines while creating the custom image.
Follow the instructions provided in this section to create a custom Linux image. To create a custom Windows image, see Creating a Generalized Image. To create a custom Linux image, do the following:
Creating a Generalized Image
Generalized images are images that have been cleaned of instance-specific information. It has a generalized OS disk, cleaned of computer-specific information. The images are generalized using Sysprep. Generalized images can be configured to re-create the opc
user account, including generating a new, random password that you retrieve by using the API.
Creating a generalized image from an instance will render the instance non-functional, so you should first create a custom image from the instance, and then launch a new instance from the custom image. Steps 1 and 2 describe how to do this. This is the instance that you'll generalize. Alternatively, you can make a backup image of the instance that you can use to launch a replacement instance if needed.
If you upgrade to PowerShell 5.0/WMF 5.0, you might encounter an issue where Sysprep fails, which prevents the image generalization process from completing. If this issue occurs, you may not be able to log in to instances launched from the custom image. See Known Issues in the Compute documentation for a workaround.
To create a generalized image, follow these steps: