Upload an OVA to an OCI storage bucket

Before an Access Gateway OVA can be imported it must be uploaded 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, which will hold the Access Gateway image
  3. Click Upload Object.
  4. In the Upload Objects dialog box, move the Access Gateway OVA from the directory. Alternatively, you can use select files , navigate to the directory containing the Access Gateway OVA, and select it.
  5. Click Upload Objects
  6. The Upload Objects dialog box 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.

    Which returns an output similar to:

    { 
    "data": "id732ljpics9"
    }

  3. Determine the OCI Compartment id by executing the oci iam compartment list --all command.

    Which returns an output similar to:
    {
        "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 --compartment-id <compartment id>.

    Where:
    <compartment id> represents the compartment containing the target bucket.  

    Which returns a result similar to:
    {
        "data": [ {
             "compartment-id": "<compartment id>"
             . . . 
    	 "name":"OAG Bucket"
    	 . . . 
    	 } ]
    }

     

  5. Execute the command to upload the OVA into the buck using a command similar to:
    oci os object put ns <namespace> \
        -bn <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>\
         --parallel-upload-count 5


    For example:

    oci os object put ns id732ljpics9 \
        -bn id732ljpics9 \
        --file ~/Downloads/oag-2019.4.5-1e8896b.ova\
        --name  "OAG-4.5.ova"\
        --part-size 100\
        --parallel-upload-count 5

    Which produces an output similar to:
    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.

See