How to Start a VM on Oracle Cloud Infrastructure

The goal of this blog article is to make sure the readers know how to spin up a VM and SSH into it so that they can start to manage it. My ultimate goal is to migrate this blog hosted at to Oracle Cloud Infrastructure. Before I can start to migrate my blog to Oracle Cloud Infrastructure (OCI), I need to be able to spin up a VM on it.

First of all, you need to create an account. It’s mostly you entering your information such as your name, credit card, address and phone number. If you don’t want to do it, you are out of luck unless your company provides you with an access. Most cloud services charge based on your usage and there are options to limit your usage based on your budget, but to use it as a resource for your personal blog site, the amount of money you’d have to spend should not be much. I will show the amount I’m spending every month.

If you go to, there is a link to get into Oracle Cloud Infrastructure (OCI). Click Sign in to Cloud. I obviously assume that you’ve already created an account.

Now you are asked to enter your account (tenancy) name.

Then you will be asked to enter username (your email) and password.

The image below shows the console of OCI as of January 2020.

Click upper left corner to show the OCI menu and click Instances under Compute.

Click Create Instance button.


Now I’m naming the VM “wordpress”. We will choose to use Oracle Linux 7.7 for this time. You can alternatively click Change Image Source to select a different image.

If you click Show Shape, Network and Storage Options link, you can choose different options for your VM. We will choose all free options for this.

Make sure you select Assign public IP address option so that you can access the VM from your local machine.

Click Paste SSH Keys option and copy and paste your public SSH key from your machine to the textbox. If you have not created an SSH key on your local machine, refer to a document like this one to create one.

Click Create button. You will have to wait for a while until the VM is provisioned. Once it’s complete, check the public IP address for the VM.

Now, open your terminal and enter a command like the following.

$ ssh opc@[the public IP address]

opc is the default user for Oracle Linux instance provided by Oracle and it has sudo privilege.

Execute yum to update the host.

$ sudo yum -y update


In this blog, we covered how to create an instance of VM and to SSH into it on Oracle Cloud Infrastructure.

Leave a Reply

Your email address will not be published.