← Knowledge Base
Server administrationFrom my setup2 min read · updated 2026-11-27

Oracle Cloud Always Free: notes from setting up a small VM

What I learned running a website on an Oracle Cloud Always Free micro VM: shapes, the ARM capacity problem, the two firewalls, a reserved IP, and why I stay on the free plan.

oracle-cloudalways-freevpsfirewallarm

These are practical notes from setting up this website on Oracle Cloud's Always Free tier, in the Zurich region. Limits and policies change, so check Oracle's current documentation before you plan around any number here.

Which free VM?

Two kinds of VM are relevant:

  • VM.Standard.E2.1.Micro (AMD, x86-64): about 1 GB of RAM. It is small but it is what I could actually create, and it is enough for a static site behind Caddy.
  • VM.Standard.A1.Flex (Ampere ARM): much larger on paper (Oracle advertises up to 4 OCPUs and 24 GB in total for the free tier). This is the interesting one for a homelab.

My micro VM reports about 952 MB of RAM to the operating system, so I added a 2 GB swap file as a safety net. Memory is the limiting factor: Caddy and nginx use roughly 40 MB together, which leaves room for a few small containers and not much more.

The ARM capacity problem

Creating an A1 instance in Zurich failed repeatedly with "Out of host capacity", with every size I tried (down to the smallest) and in every fault domain. That is a shortage on Oracle's side, not a limit on the account. Practical options:

  • retry at different times of day (capacity changes)
  • retry with an automated script
  • upgrade to Pay As You Go, which Oracle documents as giving higher capacity priority while free resources stay free. I decided against it because I do not want any risk of charges.

Remember that Always Free resources can only be created in your home region, chosen at sign-up.

Two firewalls

A port must be opened in both places, or the service stays unreachable:

  1. the Security List of the virtual cloud network, in the console
  2. iptables inside the VM (the Oracle Ubuntu image ships rules that reject everything else)

See Hardening a new Ubuntu 24.04 server for the exact commands.

A reserved public IP

A reserved public IP stays the same if the VM is stopped or rebuilt, so DNS never has to change. Create it, then attach it to the VM's primary private IP.

Backups

Free accounts have no support guarantee, so plan your own backups: restic snapshots on the server, a copy off the server, and a manual boot volume backup in the console before risky changes. See Encrypted nightly backups for a small server with restic.

Idle instances

Oracle documents that idle Always Free instances can be reclaimed. A web server that answers requests is normally not a problem, but read the current rule before leaving an instance unused for weeks.

Why I stay on the free plan

A free trial account is not billed unless you press Upgrade. After the trial it is limited to Always Free resources. That is the behaviour I want for a personal site, so I leave the upgrade button alone and live with the capacity limits.