Creating Custom Images

Create a Compute custom image in an Oracle Cloud Infrastructure compartment.

    1. If you're creating a custom image from a Windows instance: Connect to the instance by using a Remote Desktop connection and shut down the instance from the operating system.
    2. Open the navigation menu  and select Compute. Under Compute, select Instances.
    3. Select the instance that you want to use as the basis for the custom image.
    4. Select More Actions, and then select Create custom image.
    5. In the Create in compartment list, select the compartment to create the custom image in.
    6. Enter a Name for the image. You can change the name later, if needed. You cannot use the name of a platform image for a custom image. Avoid entering confidential information.
    7. Show tagging options: If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    8. Click Create custom image.

      To track the progress of the operation and troubleshoot errors that occur during instance creation, use the associated work request.

    Note

    If you see a message indicating that you are at the limit for custom images, you must delete at least one image before you can create another. Or, you can request a service limit increase.

  • Use the image create command and required parameters to create a custom image:

    oci compute image create --from-json <file://path/to/file.json>

    <file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.

    For a complete list of flags and variable options for the Compute Service CLI commands, see the command line reference for Compute.

  • For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.

    Use this API operation to create an instance: