Upload an OVA to an OCI storage bucket

Before an Access Gateway OVA can be imported it must be uploaded to a bucket.
During this task we will upload an OVA to a bucket.

  1. Using the navigation menu in the upper left corner select Object Storage Object Storage.
  2. In the Buckets in named Compartment pane, click the name of the bucket. This bucket holds the Access Gateway image.
  3. Click Upload Object.
  4. In the Upload Objects dialog, move the Access Gateway OVA from the directory. Alternatively, you can click Select files, navigate to the directory containing the Access Gateway OVA, and select it.
  5. Click Upload Objects.
  6. The Upload Objects dialog shows a percent complete indicator. Wait while the Access Gateway OVA file is uploaded.
  1. Return to the OCI command line.
  2. Determine the OCI Object storage namespace by executing the oci os ns get command.

    {
    "data": "id732ljpics9"
    }

  3. Determine the OCI Compartment id by executing the oci iam compartment list --all command.{ "data": [ { "compartment-id": "ocid1...", . . . "id": "ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq", . . . "name": "OAG", "time-created": "2019-12-11T20:54:25.053000+00:00" } ] }
  4. Use the compartment ID to generate a list of all bucket names by executing the oci os bucket list command.

    oci os bucket list --compartment-id <compartment id>

    • <compartment id> represents the compartment containing the target bucket.

    When you run the oci os bucket list command, the following results appear:
    { "data": [ { "compartment-id": "<compartment id>" . . . "name":"OAG Bucket" . . . } ] }

  5. Run the oci os object put command to upload the OVA into the buck using a command similar to this one:
    Copy

    Upload ova

    oci os object put --namespace <namespace> \
    --bucket-name <bucket name>\
    --file <fully qualified path to Access Gateway file> \
    --name "<name for file in bucket" \
    --part-size <maximum size of each part of the file upload in MB, default 128>\
    --parallel-upload-count 5

    Here is an example of the oci os object put command with the parameters populated with values:

    oci os object put --namespace id732ljpics9 \ --bucket-name "OAG-bucket \ --file ~/Downloads/oag-2021.10.2-1e8896b.ova\ --name "OAG-20210.10.ova"\ --part-size 100\ --parallel-upload-count 5

    When you run the oci os object put command, the following result appears:

    Upload ID: dab2a2d8-. . .
    Split file into 15 parts for upload.
    Uploading object [#######################################--] 95%
    {
    "etag":"ec4...",
    "last-modified": "Thu, 12 Dec 2019 19:46:29 GMT",
    "opc-multipart-md5": "J3E5yqVdsL6K5sHeekFZhw==-15"
    }
  6. Wait for the file to upload.

Related resources

Manage Buckets for more information on OCI buckets.