Creating an Image
To launch a compute instance in Oracle Cloud Infrastructure, you must create or import an image in the Oracle Cloud Infrastructure Compute tenancy.
The topic includes the following tasks:
Creating a Custom Linux Image
Create an instance in your Oracle Cloud Infrastructure tenancy, and then install your application on this instance. After installing the application on this instance, create a custom image in Oracle Cloud Infrastructure. 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 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 - 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 may encounter an issue where Sysprep fails which will prevent the image generalization process from completing. If this occurs, you may not be able to log into instances launched from the custom image. See Known Issues in Oracle Cloud Infrastructure documentation to work around the issue.
To create a generalized image, do the following: