Find Ubuntu images on Oracle Cloud

Different versions of Ubuntu images are available on Oracle Cloud:

  • All LTS releases that haven’t reached end of life

  • Full and minimal versions

  • Versions for x86_64 and AArch64 (ARM64) platforms

For each of these versions, Oracle publishes a new image build every month. The latest three builds (for each version) are always listed on their cloud console, while the older ones are archived.

Find the latest Ubuntu images

You can find the latest three image builds using either the web console or the CLI.

While creating an instance using Compute > Instances > Create instance, under Image and shape select Change image > Ubuntu. From the displayed list, select your desired LTS release and variant (full or minimal). Then use the drop-down to select one of the three builds available for it.

../../_images/1_latest_ubuntu_image.png

The latest build is always recommended as it’ll have the most recent package updates and security vulnerability fixes. However, if you need a specific build, you can either choose one of the remaining two builds or refer to the Find older Ubuntu images section ahead.

Find older Ubuntu images

If you want to use an image that is older than the latest three builds, you need to know its Oracle Cloud Identifier (OCID) and use that while creating the instance.

To find the OCID of archived images, visit Oracle’s image documentation website and select the required Ubuntu release. A list of all available variants for that release will be displayed. Browse to the desired variant to see its OCID for each region.

With the region / image specific OCID, you can create an instance either through the web console or through the CLI.

While creating an instance using Compute > Instances > Create instance, under Image and shape select Change image > My images. Then choose Image OCID as the image source and enter the OCID (obtained above) before launching the instance.

../../_images/2_older_ubuntu_image.png

Find Ubuntu images for use on OKE nodes

Ubuntu images are available for worker nodes on Oracle Kubernetes Engine (OKE) in Oracle Cloud.

Get Ubuntu image access

Attention

Ubuntu worker node images for OKE are currently in a Limited Availability (LA) release. To gain access to the images, reach out to your Oracle account or support teams to express interest in this LA.

Once access has been provided to your tenancy and region then you must add an additional Policy to your root compartment to permit the listing of these images.

Use the Show manual editor button while creating the policy and add:

Define tenancy oke as ocid1.tenancy.oc1..aaaaaaaa5vrtu4bjcqpjvbworiwffgccrgrbkum64mtn33yrccjrqpzuyara
Endorse any-user to read instance-images in tenancy oke

Note

The tenancy OCID listed above for the policy belongs to the OCI OKE Service, it is not owned by Canonical.

Find an Ubuntu image

Once your tenancy has been enabled for the LA, you will be able to list the images from the CLI or view them through the OCI Console.

Prior to running any oci commands, be sure that your ~/.oci/config is configured to use your region specified for the LA enablement.

Using the oci command, list all OKE compatible images and save them to the node-pool-options.json file. The file will contain a list of all available OKE images including your newly added Ubuntu images.

oci ce node-pool-options get --compartment-id <compartment-id> --node-pool-option-id all | tee node-pool-options.json

Use the following to filter it down to only the newly added Ubuntu images.

jq -r '.data.sources[] | select(."source-name" | contains("ubuntu"))' node-pool-options.json

The result will contain objects of the form:

{
  "image-id": "ocid1.image.oc1.phx.aaaaaaaajqzb5jcbcvh5obyg2l2hzzw5qewwhrknvlyb3zaglduivigvo4sq",
  "source-name": "ubuntu-amd64-minimal-22.04-jammy-v20250604.1-OKE-1.31.1",
  "source-type": "IMAGE"
}

Make note of the image-id for the image(s) that you wish to use since they will be required in later steps.