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
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
You can now use the oci command to upload disk images