Launching Your First Instance
Harry
· 14 Sep 2026
· 1 views
Advertisement
Create the VM
- Sign in at console (change the region to your home region first — free-tier resources live there).
- Open Compute → Instances → Create instance.
- Name: e.g.
my-vps. - Image: keep Oracle Linux or choose Ubuntu 24.04 LTS (Canonical).
- Shape: pick
VM.Standard.E2.1.Micro— the always-free AMD option. - Networking: let OCI create a VCN + public subnet automatically, and tick Assign a public IPv4 address.
- Add SSH keys: paste your
id_rsa.pubcontents — you can never add a password later, only keys, so paste carefully and keep the matching private key.
Get the public IP
Once Running, the instance page shows its Public IP, e.g. 150.136.11.42. Connect from your machine:
ssh -i ~/.ssh/oci_vps ubuntu@150.136.11.42
# first boot housekeeping:
sudo apt update && sudo apt -y upgrade
sudo apt -y install openjdk-17-jre-headlessKeep a record
Save the instance OCID and the compartment OCID — every CLI command needs them. Note that the public IP is ephemeral; the next lesson reserves a static one so a reboot never changes your URL.