TheKoguryo's Tech Blog

 Version 2024.04.01

Warning

This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.

9.3 Custom Image Export/Import

Custom Image provides import and export functions. The Custom Image belongs to the Comparment within the Region, and to copy it to another Compartment or to another Region, it is exported to Object Storage and then imported again at the desired location.

For the description of creating a Bucket in Object Storage and pre-authentication, see [7. Using Object Storage] (/oci/chapter07/).

Custom Image Export

  1. Open the navigation menu in the OCI console. Go to Compute > Custom Images.

  2. Click the image you want to export.

  3. Click Export Image in the action menu to the right of the target image. image-20220114235202296

  4. Export can be done in two ways, and the format is exported in OCI format.

    • Object Storage Bucket: Export as an Object Storage Bucket within the logged-in Tenancy. Select the target compartment and bucket.
    • Object Storage URL: Export through URL. Exporting to another Tenancy becomes possible.
  5. Enter your Export information and click Export Image at the bottom.

    • Bucket name: Select the target Object Storage Bucket name, if it does not exist, create it in advance.

    • Image name: Ex) ExampleLinuxCustomImage

    • Image format: Select .oci format

      image-20220114235720991

  6. You can check the export start and end times by going to the detail screen of Custom Image and looking at the Work requests below. You can see that it took about 8 minutes.

    image-20220115001217891

  7. If you go to the target Object Storage Bucket, you can see what has been exported.

    As you can see in the picture, 1.28 GiB took about 8 minutes.

    image-20220115001440831

Custom Image Import

Object Pre-Authenticated Request setting

In order to import from the Object Storage URL, pre-authentication (Pre-Authenticated Request) that allows the target object to access without additional authentication must be set. Public Bucket is not supported as of the date of creation.

  1. Create a temporary pre-authentication link with read access to the Custom Image Object through the Create Pre-Authenticated Request command in the right action menu of the Custom Image Object.

    image-20220115001831145

    • Copy the link created below.

      image-20220115001808109

Import from another Region or another Cloud Account

  1. Open the navigation menu in the OCI console. Go to Compute > Custom Images.

  2. In the upper right corner, change to the region you want to import and click Import Image

    image-20220115002308564

  3. Import input information

    • Name: Enter the image name

    • Operating system: Select Linux

    • Object Storage URL: Copy the Object Storage URL of the previously copied image

    • Image type: Select OCI

      image-20220115002536308

  4. After entering information, click Import image at the bottom

  5. Go to the detail screen of the custom image being imported and see the work requests below to see the progress, and when the import is complete, you can check the start and end times. You can see it took about 10 minutes.

    image-20220115003746913

  6. Import is complete.

    image-20220115004002116



As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 14 Jan 2022