If you not familiar with Oracle Cloud, want to try it and need an easy steps to configure it..! Please find the details. Here I will provide the easy step by step approach to have your free Oracle Cloud account with your first Virtual Machine Running..

STEP 1 : Signup Oracle Cloud

www.google.com -> “Oracle free Cloud ” > Try Oracle Cloud Free Tier

Click on Start for free

Provide the Account Information, Here i have selected Cloud region India West (Mumbai)

Do the Mobile verification, you will receive verification code on the mobile number provided

Verify the verification code

For free account you need to provide credit card details and validate, initially 1 USD will be charged which will then reverse back to the account. So No Worries 😀

Click on Add payment verification method

for Free only Credit card option is there

Card has been verified and received message on amount reversal

STEP 2 : Login to oracle cloud account

Oracle OCI Dashboard

STEP 3 : Create a Virtual Cloud Network (VCN)

Use the top-left menu to “Networking > Virtual Cloud Networks” option.

Click on “Create VCN”

For CIDR block here i given, Which means i can use private IP range between, You can use http://www.subnet-calculator.com/ to calculate yours

Now we will create subnet, Click on the VCN Name on current screen here “MITVCN

Click Create Subnet
Provide the details as specified on the screenshot. Public subnet selecting to access instance public-ally
Subnet has been created Successfully


Click on Internet Gatewaty > Create Internet Gateway on current VCN page(Virtual Cloud Network)

Provide some name and click on create internet Gateway
Internet Gateway – IGW successfully created


On VCN page Click on Route Tables > select Default route table Default Route Table for MITVCN

Target Type Internet Gateway > Give Name
IGW route has been successfully added


Check Your PUBLIC IP on google and White list your Public IP address to access the Cloud VM that you will be creating on Cloud from your PC.

Click on VCN (MITVCN) > Subnet (MITVCNsubnet) > Security List(Default Security List for MITVCN)

Click on Add Ingress Rules
Source CIDR -> Your Public IP, Protocol -> TCP, Source and Target Port Range – All

Now my IP has been whitelisted, I will now be able access to access VM from the PC once VM’s are created. Since public IP is dynamic, changes when i take my laptop to office and home, so to access VM will check the current IP of the system and update in the security list. Click on the three dots to edit and update in future.


Now will create Oracle Linux 8 Virtual machine

Click Top Menu > Compute > Instances
Click Create Instance
Change Image -> Oracle Linux 8 or your choice , Generate SSH KEY PAIR , make sure you save both Public key and Private key. I have stored my keys on location C:\Users\madhavadas\OneDrive\DBA_Dubai\AA_Learns\oracleprolab\oci
IP address and hostname just providing
Wait for instance to get complete
Instance has been created successfully


I have installed OPENSSH on my windows machine, will be accessing the VM created on cloud from the windows command prompt


Below details are required to access

Private.ppk Private key generated during instance creation time
OPC- Linux OS USer
– Pulic IP IP Address of Virtual Machine –

C:\oracleprolab>ssh -i “C:\Users\madhavadas\OneDrive\DBA_Dubai\AA_Learns\oracleprolab\oci\Private.ppk” opc@152.*.*.112

Login as root user and check

BONUS – Create Block Volume and attach to the Instance created

Oracle is providing some block volume storage for free which can be used, Here we will create a block volume and attach it to the VM instance we have just created above .

Click on the top-left menu >”Block Storage > Block Volumes

Click “Create Block Volumes
Provide Name for Block Volume and Create block
Volume successfully created

Mount the Block Volume to VM

Click on Top Menu > Compute > Instances > (click on the Instance to add vol ) oracleprolab1 > (On Resources Click) Attached Block Volumes > Attach Block Volume

Run Command as root os user, fdisk -l we will be able to see the new 50GB partition


fdisk -l
fdisk /dev/sdb
fdisk -l /dev/sdb1
mkfs.ext4 /dev/sdb1
mkdir /backup
mount /dev/sdb1 /backup/
df -h

Creating a large file on a Linux using fallocate command and test

By mithun

2 thoughts on “Take Your First step to Oracle Cloud Infrastructure (OCI) for Free (Built from Scratch)”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.