Back to Blog
Virtual Servers in Oracle Cloud Infrastructure

Virtual Servers in Oracle Cloud Infrastructure

   Mariusz Antonik    Oracle Cloud (OCI)    3 min read    837 views

Virtual Servers in Oracle Cloud Infrastructure (OCI): What They Are and How to Create a VM

After your network is ready, provision compute. This guide explains OCI virtual machines (VMs), shape selection, networking, and step-by-step creation via Console and CLI.

1. What Is a Virtual Server in OCI?

An OCI VM is an isolated compute instance on shared hardware. You control the OS, packages, and services, just like a traditional server—without managing physical infrastructure.

  • Elastic performance: choose CPU, RAM, storage.
  • OS flexibility: Oracle Linux, Ubuntu, Windows, custom images.
  • Global placement: any region/AD.
  • Integrated security: IAM, NSGs, private networking.

2. VM Shapes — Picking the Right Size

Shape Type Description Typical Use
VM.Standard.E5/E4/E3 AMD-based, balanced General web/app servers
VM.Standard3.Flex Flexible OCPU/RAM Cost-efficient workloads
VM.Standard.A1.Flex Arm-based Ampere (Always Free eligible) Light web/API, dev
VM.DenseIO NVMe local storage DBs, caching, IO-heavy
VM.GPU NVIDIA GPUs AI/ML, graphics

Tip: Start with a flexible shape, then right-size as usage grows.

3. Networking the VM

Place VMs in a VCN and subnet:

  • Public subnet: for web-facing servers needing a public IP.
  • Private subnet: for databases/internal tiers.
VCN: 10.0.0.0/16 ├─ Public Subnet: 10.0.1.0/24 (Web VM) └─ Private Subnet: 10.0.2.0/24 (DB VM)

4. Launch a VM from the Console

  1. Compute → Instances → Create: name, compartment, AD.
  2. Image: e.g., Oracle Linux 9.
  3. Shape: pick VM.Standard3.Flex or A1.Flex (for Free).
  4. Networking: choose VCN/subnet; public IP if needed.
  5. SSH Keys: upload/generate public key.
  6. Boot Volume: size & backups.
  7. Create: when running, SSH in:
    ssh -i ~/.ssh/id_rsa opc@<public-ip>

5. Manage & Scale

  • Scale: change shape, attach block volumes, autoscale behind an LB.
  • Monitor: use OCI Monitoring & Alarms.
  • Security: restrict SSH, update OS regularly, back up boot volumes, use images.

6. Always Free VM Options

  • Up to 2× A1.Flex instances (Arm) within Free limits.
  • Up to 4 OCPUs / 24 GB RAM total, plus block storage and generous egress.

Great for websites, APIs, dev boxes—at zero cost.

7. Automate with OCI CLI (Optional)

oci compute instance launch \ --compartment-id ocid1.compartment.oc1... \ --availability-domain "Uocm:PHX-AD-1" \ --display-name "DevServer01" \ --shape VM.Standard3.Flex \ --shape-config '{"ocpus":1,"memoryInGBs":4}' \ --subnet-id ocid1.subnet.oc1... \ --assign-public-ip true \ --image-id ocid1.image.oc1... \ --ssh-authorized-keys-file ~/.ssh/id_rsa.pub

8. Summary

OCI VMs provide control and flexibility for apps, APIs, and services. Choose the right shape, place instances correctly in your VCN, and use automation to keep deployments consistent.


About the Author
Mariusz Antonik

Oracle Cloud Infrastructure expert and consultant specializing in database management and automation.

All Tags
#Advanced #alerts #Bash #bash cpu monitoring script #bash monitoring #bash scripting #Beginner #Best Practices #block volume backup #Capacity Planning #cloud backup strategy #cpu bottleneck #CPU Monitoring #cpu monitoring linux #cpu monitoring script linux #cpu trends #cpu usage trends #cpu usage trends linux #create oracle db system in oci #cron cpu monitoring #cron cpu monitoring linux #cron jobs #database monitoring #database performance #detect slow queries mysql #devops #disk capacity planning server #disk forecasting linux #disk growth trend linux #Disk Monitoring #disk usage #disk usage script linux #disk usage trends #Early Detection #easy infrastructure monitoring #free-tier #Guide #health dashboards #Health Reporting #historical server monitoring #how to monitor cpu usage linux #infrastructure #infrastructure health #infrastructure health dashboard #infrastructure health reporting #infrastructure monitoring #infrastructure monitoring report #infrastructure trends #infrastructure trends monitoring #Infrastructure Visibility #lightweight linux monitoring #lightweight monitoring #linux #linux administration #linux cpu monitoring #linux cpu usage #linux disk capacity planning #linux disk usage #Linux monitoring #linux monitoring setup #linux monitoring tools #linux performance #linux performance monitoring #linux server #linux server monitoring #linux servers #linux storage #linux tools #low maintenance monitoring #monitor cpu usage over time linux #monitor linux server health #monitor server trends #monitor small production server #monitoring without complexity #MySQL #mysql health reporting #MySQL monitoring #mysql optimization #MySQL Performance #mysql performance degradation #mysql performance monitoring #mysql performance trends #mysql query performance issues #mysql server monitoring #mysql slow queries #mysql slow query analysis #mysql slow query monitoring #mysql trends #mysql-health #networking #nsg #OCI #oci backup #oci bastion tutorial #oci block volume #oci infrastructure as code #OCI monitoring #oci networking #oci oracle database private subnet setup #oci oracle database tutorial #oci security #oci setup guide #oci terraform tutorial #oci tutorial for beginners #oci vcn terraform #oci virtual machine db system guide #oracle base database service tutorial #oracle cloud bastion #oracle cloud free tier tutorial #oracle cloud infrastructure step by step #oracle cloud infrastructure tutorial #oracle cloud storage #oracle database on oci setup #oracle-cloud #Performance #Performance Degradation #performance monitoring #performance trend monitoring #performance trends #plan disk growth server #practical server monitoring #predict disk usage growth #private instance access #query optimization #Security #security lists #server health #server health reporting #server health weekly report #server monitoring #Server Performance #server trend analysis #server-trends #simple cpu monitoring linux #simple linux monitoring #simple monitoring small business #simple monitoring system #simple ops monitoring #slow queries #slow query reporting mysql #small business infrastructure #small business IT #small business servers #small infrastructure monitoring #small server monitoring #ssh bastion #storage capacity planning linux #storage monitoring #subnets #system health reporting #terraform oci compute #terraform oracle cloud infrastructure #Trend Monitoring #trend-analysis #trends #Tutorial #vcn