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.
- Using the navigation menu in the upper left corner select .
- In the Buckets in named Compartment pane, click the name of the bucket. This bucket holds the Access Gateway image.
- Click Upload Object.
- 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.
- Click Upload Objects.
- The Upload Objects dialog shows a percent complete indicator. Wait while the Access Gateway OVA file is uploaded.
- Return to the OCI command line.
- Determine the OCI Object storage namespace by executing the
oci os ns getcommand.{ "data": "id732ljpics9" } - Determine the OCI Compartment id by executing the
oci iam compartment list --allcommand.{ "data": [ { "compartment-id": "ocid1...", . . . "id": "ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq", . . . "name": "OAG", "time-created": "2019-12-11T20:54:25.053000+00:00" } ] } - Use the compartment ID to generate a list of all bucket names by executing the
oci os bucket listcommand.oci os bucket list --compartment-id <compartment id><compartment id>represents the compartment containing the target bucket.When you run theoci os bucket listcommand, the following results appear:{ "data": [ { "compartment-id": "<compartment id>" . . . "name":"OAG Bucket" . . . } ] } - Run the
oci os object putcommand to upload the OVA into the buck using a command similar to this one: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 5Here is an example of the
oci os object putcommand 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 5When you run the
oci os object putcommand, 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" } - Wait for the file to upload.
Related resources
Manage Buckets for more information on OCI buckets.
Next steps