X

An Oracle blog about Solaris

Oracle Cloud Infrastructure Tools

Chris Beal
Senior Principal Software Engineer

As mentioned on my blog about getting a Solaris 10 image running in OCI, here we discuss the steps to get the OCI tools installed on Oracle Linux, so you can do the image management of your Solaris 10 image.

VirtualBox has already created a vmdk image for you which is a format natively understood by OCI. So on the host where I had VirtualBox installed I need to perform the following steps.

$ sudo yum install gcc libffi-devel python-devel openssl-devel
$ sudo easy_install pip

It's recomended to install the oci tools in a virtualenv environment, so download and configure virtualenv

$ sudo pip install virtualenv $ mkdir -p myvirtualspaces/virtualenvs $ virtualenv myvirtualspaces/virtualenvs/cli-testing --no-site-packages $ virtualenv cli-testing $ wget https://github.com/oracle/oci-cli/releases/download/v2.4.34/oci-cli-2.4.34.zip $ unzip oci-cli-2.4.34.zip $ pip install --user oci-cli

Start a fresh terminal

$ cd myvirtualspaces/virtualenvs/cli-testing/bin $ source activate

The oci tool is installed in ~/.local/bin so add that to your path

Now configure the tools

https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/cliconfigure.htm

Simply run oci setup config

It will ask you for your OCID and tenancy OCID which you can copy from the console

It will let you create keys, and make sure you have a passphrase.

Then simply upload the key to the console following these instructions

https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#How2

You can now use the oci command to upload disk images

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha