Free Oracle Cloud Minecraft Server: Setup on the 2 OCPU, 12 GB Always Free Arm VM

A Minecraft Java Edition server can run at $0 a month on Oracle’s Always Free Arm VM, but only at 2 OCPUs and 12 GB of memory. Computer and Mobile points out that many guides still say 4 cores and 24 GB while Oracle’s page now lists half of that, and Oracle’s Always Free Resources page gives the same 2 and 12 for Always Free tenancies. The 13 steps below run from sign-up to a server that restarts on its own. Each is checked against Oracle’s or Mojang’s wording, and the limits that make free servers fail (the monthly hours quota, two separate firewalls, the idle and excess-capacity rules) are worked out in figures you can check.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Why 2 OCPUs and 12 GB is the ceiling: 744 hours against Oracle’s monthly quota

Oracle states the Arm allowance in hours, not cores. Its Always Free Resources page gives every tenancy the first 1,500 OCPU hours and 9,000 GB hours a month on the VM.Standard.A1.Flex shape and says that for Always Free tenancies this is “equivalent to 2 OCPUs and 12 GB of memory.” Hours are cores (or gigabytes) multiplied by the hours the VM runs, so the table, our own arithmetic on those quotas, multiplies out a server that never stops, in a 28, 30 and 31 day month.

Month lengthHours runningOCPU-hours, 2 OCPUs (quota 1,500)OCPU-hours, 4 OCPUs (quota 1,500)GB-hours, 12 GB (quota 9,000)GB-hours, 24 GB (quota 9,000)
28 days6721,3442,6888,06416,128
30 days7201,4402,8808,64017,280
31 days7441,4882,9768,92817,856

A 31 day month at 2 OCPUs and 12 GB leaves 12 OCPU-hours (1,500 minus 1,488) and 72 GB-hours (9,000 minus 8,928) spare. Dividing the quota by 744 hours gives the largest server that can run non-stop in the longest month: 1,500 / 744 is 2.02 OCPUs and 9,000 / 744 is 12.10 GB, so 2 and 12 are the biggest whole figures that fit. A 4 OCPU, 24 GB server would need 2,976 OCPU-hours and 17,856 GB-hours in a 31 day month, about 1.98 times the quota on both measures. The 4 OCPUs and 24 GB older guides promise therefore exceed the current quota.

Two other free allowances touch this build. The same Oracle page lists up to two AMD VM.Standard.E2.1.Micro servers at 1/8 of an OCPU and 1 GB each, and gives a default boot volume of 47 GB (minimum 47 GB), drawn from the 200 GB Always Free block storage (page checked November 13, 2026). Computer and Mobile adds 10 TB of outbound traffic a month. A 1 GB micro cannot hold the 8 GB heap used in step 9, so the Arm shape is the Minecraft host. Computer and Mobile’s setup note also allows the Arm allowance to be split, for example into two servers of 1 OCPU and 6 GB each, which halves what each server gets.

Going over the allowance has a deletion deadline, not only a bill. Oracle’s Free Tier page says to keep no more than 2 OCPUs and 12 GB in total across all Ampere A1 instances in the tenancy, and that excess instances are disabled and deleted after 30 days unless you upgrade to a paid account (page checked November 13, 2026). The VM is Arm (aarch64), so anything you download separately, such as a plugin with native libraries, needs an Arm build (Computer and Mobile).

Steps 1 to 3: the home region, the key pair and the A1.Flex launch screen

Step 1: Sign up and choose the home region

Oracle asks for a credit or debit card for identity checks. Its sign-up page says you may see a small temporary verification hold and that the card is not charged unless you elect to upgrade. Computer and Mobile adds that prepaid and virtual cards are often refused. The home region you choose at sign-up is the only place free resources exist, and it cannot be changed later. Popular regions also run out of free Arm servers more often. Choose the region nearest your players and treat the choice as final.

Step 2: Generate the SSH key pair

Oracle’s Ubuntu tutorial warns that you can’t retrieve keys again after the instance has been created, and Computer and Mobile notes that without the private key you cannot log in. Make a dedicated key and paste the public half into the launch form in step 3. On Windows, run the same commands in WSL.

ssh-keygen -t ed25519 -C "oci-minecraft-server" -f ~/.ssh/oci_minecraft
chmod 600 ~/.ssh/oci_minecraft
cat ~/.ssh/oci_minecraft.pub

Step 3: Launch the instance

In the console choose Compute, then Instances, then Create instance, following Oracle’s launch instructions. Oracle lists VM.Standard.A1.Flex under the Ampere shapes as the Always Free shape. Set these values:

  • Image: Canonical Ubuntu 24.04 (the commands below assume it). Oracle’s connection guide gives the login name as ubuntu on Ubuntu images and opc on Oracle Linux images.
  • Shape: choose Change shape, then Ampere, VM.Standard.A1.Flex, with 2 OCPUs and 12 GB of memory.
  • Networking: let the console create a new VCN and subnet, and tick the option to assign a public IPv4 address.
  • SSH keys: paste the contents of the .pub file from step 2.
  • Boot volume: Oracle’s Always Free page gives 47 GB as the default size (checked November 13, 2026), enough for a vanilla world. Raise it to 100 to 150 GB only for a heavily modded pack with frequent backups, and remember the boot volume is drawn from the 200 GB free storage.

If you may later swap the instance for a new one, reserve a public IP first so players keep one address. Oracle’s reserved public IP tutorial has you go to Networking under Core Infrastructure, click IP Management, select a compartment in the Compartment list, and click Reserve Public IP Address. Then attach the reserved address to the instance (checked November 13, 2026).

If creation fails with “Out of host capacity”, Computer and Mobile says no free Arm servers are available in that part of the region and it is not a problem with your account. Try another availability domain on the same screen, a smaller shape of 1 OCPU and 6 GB, or a different time of day. Oracle’s Always Free page describes upgrading to Pay As You Go as a way to get more compute types, and says Oracle “will only charge you for resource usage above the Always Free limits.” Computer and Mobile reports that the upgrade often eases Arm capacity and advises setting a budget alert first so nothing paid starts by mistake.

Steps 4 and 5: two firewalls, and the REJECT rule that swallows appended rules

Computer and Mobile puts the problem plainly: a port has to be open in both the VCN security list and the server’s own iptables, and “this is where most people get stuck.”

Step 4: Add the ingress rule in the VCN

Oracle’s security list documentation says a subnet without a custom list uses its VCN’s default security list automatically, that you can add rules to it, and that it already allows stateful ingress on TCP port 22 for SSH. Oracle also recommends network security groups over security lists; the Ubuntu tutorial linked above, which this guide follows, uses the default list. Open the subnet attached to your instance, then Security Lists, then the default list, and add an ingress rule with source CIDR 0.0.0.0/0, protocol TCP, the source port range left blank and destination port 25565. Computer and Mobile gives TCP 25565 as the port to open for Minecraft.

Java Edition needs TCP only. If you run Bedrock Dedicated Server instead, Microsoft’s server properties reference lists a default IPv4 port of 19132, so that rule would be UDP 19132 in both layers.

Step 5: Insert the rule above the REJECT line in iptables

Oracle’s Ubuntu image ships iptables rules that allow only SSH and end with a rule rejecting everything else. Computer and Mobile warns that “a rule added after it is never reached”, so a rule added with -A silently does nothing. Insert by line number instead. Oracle’s tutorial says the Ubuntu firewall is disabled by default but iptables still needs updating, and that rules are saved with netfilter-persistent save. Log in with ubuntu and the public IP shown on the instance page, list the INPUT chain with line numbers, and replace LINE below with the number of the line whose target is REJECT. Inserting at that number puts the new rule directly above it.

ssh -i ~/.ssh/oci_minecraft ubuntu@PUBLIC_IP
sudo iptables -L INPUT -n --line-numbers
sudo iptables -I INPUT LINE -p tcp --dport 25565 -j ACCEPT
sudo netfilter-persistent save
sudo iptables -L INPUT -n --line-numbers

The second listing should show the ACCEPT rule above REJECT. Leave the SSH rule alone, and do not enable ufw. Computer and Mobile warns that ufw and these iptables rules get in each other’s way and a mistake can lock you out of SSH. For Bedrock, run the same insert with -p udp --dport 19132.

If you chose an Oracle Linux image instead of Ubuntu, the iptables commands above are not the path. Oracle’s page on securing instances says that on Oracle Linux 8 and the other listed Oracle Linux releases you need to use firewalld to interact with the iptables rules. Open the game port there with sudo firewall-cmd --permanent --add-port=25565/tcp, then run sudo firewall-cmd --reload and sudo firewall-cmd --list-all to confirm, in addition to the security list rule from step 4, and log in as opc.

sudo firewall-cmd --permanent --add-port=25565/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --list-all

Java Edition needs TCP only, so no UDP rule is added.

If apt or downloads later time out on a VM that should have working networking, Oracle’s known issues page lists VM.Standard.A1.Flex among shapes that can see DNS lookup timeouts on UDP source port 4791 when the Mellanox RDMA driver is loaded. Oracle adds that inclusion in the list doesn’t imply every instance of a shape experiences the issue.

Steps 6 to 9: Java 25, a service user, the server jar and an 8 GB heap

Step 6: Update the system and install Java 25

Computer and Mobile’s Minecraft snippet comments that Minecraft 26.1 and newer need Java 25, installed on Ubuntu as openjdk-25-jre-headless. If apt cannot find the package, Computer and Mobile’s fix is a newer Ubuntu image.

sudo apt update && sudo apt upgrade -y
sudo apt install -y openjdk-25-jre-headless
java -version

Step 7: Create a service user and directory

Run the server under its own account with no login shell, so a vulnerable plugin does not run with your admin user’s rights.

sudo useradd --system --home-dir /opt/minecraft --shell /usr/sbin/nologin minecraft
sudo mkdir -p /opt/minecraft
sudo chown minecraft:minecraft /opt/minecraft

Step 8: Download the server jar and accept the EULA

Copy the current server jar link from Minecraft’s official download page rather than reusing an old URL. Computer and Mobile notes that the first run creates eula.txt and stops, and that you then set eula=true, which means you accept Minecraft’s EULA. Read it before you run the second command below.

sudo -u minecraft wget -O /opt/minecraft/server.jar "PASTE_SERVER_JAR_URL"
sudo -u minecraft sh -c 'cd /opt/minecraft && java -Xmx8G -jar server.jar nogui'
sudo -u minecraft sed -i 's/eula=false/eula=true/' /opt/minecraft/eula.txt

No second manual run is needed: the systemd unit in step 11 does the real start.

If you plan to run plugins, Paper’s getting-started page describes Paper as a drop-in replacement for both CraftBukkit and Spigot that needs no changes on your side, and it adds server-side optimizations over vanilla. Mod-based setups need a mod-loader compatibility check before you swap the jar.

Stable jar or the 26.4 snapshot

Mojang published Minecraft 26.4 Snapshot 7 on November 3, 2026. On a server where every player’s builds share one world, keep the stable jar on the live world. To try a snapshot, use a separate directory, a copy of the world and a different port, and stop it when you finish.

Step 9: Size the heap

Computer and Mobile’s command uses -Xmx8G, which on a 12 GB VM leaves 4 GB for Ubuntu, Java’s non-heap memory and the file cache. Snapshot 6 of 26.4 added automatic heap sizing of up to 25% of system RAM with a maximum of 4 GB, which works out to 3 GB on this VM. That default appears in the snapshot, so a stable server should carry an explicit -Xmx as in the unit file below. Do not set it to the full 12 GB. Computer and Mobile says 2 Arm cores and 12 GB are enough for a small group of friends.

Steps 10 and 11: the port setting and a systemd unit that survives reboots

Step 10: Check server.properties

The first run in step 8 wrote /opt/minecraft/server.properties. Confirm that server-port is 25565, the port opened in both firewalls. If you change it, change the security list rule and the iptables rule to match.

Step 11: Run it as a systemd service

Computer and Mobile says to keep the server running after you log out by using screen, tmux or a systemd service. systemd also starts it after a reboot and restarts it after a crash.

sudo tee /etc/systemd/system/minecraft.service > /dev/null <<'EOF'
[Unit]
Description=Minecraft Java server
After=network-online.target
Wants=network-online.target

[Service]
User=minecraft
WorkingDirectory=/opt/minecraft
ExecStart=/usr/bin/java -Xmx8G -jar server.jar nogui
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now minecraft
sudo journalctl -u minecraft -f

Steps 12 and 13: Oracle’s idle rule in figures, and a backup that leaves the VM

Step 12: Know the reclaim thresholds

Oracle’s Always Free page says idle Always Free compute instances may be reclaimed, and deems an instance idle if, during a 7 day period, 95th percentile CPU utilization is under 20%, network utilization is under 20%, and (A1 shapes only) memory utilization is under 20%. On this VM, 20% of 12 GB is 2.4 GB and 20% of 2 OCPUs is 0.4 OCPU. This guide does not recommend scripts that burn CPU to dodge the rule. Oracle’s page says that after an upgrade to Pay As You Go it charges only for usage above the Always Free limits; it does not say the upgrade prevents idle reclamation. Set the budget alert first, as in step 3.

To see where you stand, check your instance’s CPU, memory and network utilization in the console, the same three measures the idle rule uses. For an alert, Oracle’s alarm walkthrough uses the oci_computeagent metric namespace and the CpuUtilization metric at a 1 minute interval; an alarm on that metric can email you when CPU stays near zero for a long window (checked November 13, 2026).

Step 13: Back up the world off the instance

Because an instance can be reclaimed or deleted, a backup that lives only on the VM is not enough. The script below stops the service so the world files are not written mid-archive, archives the world directory, prunes archives older than 7 days, and restarts the service even if tar fails. Save it as mc-backup.sh.

#!/bin/bash
set -euo pipefail
systemctl stop minecraft
trap 'systemctl start minecraft' EXIT
mkdir -p /var/backups/minecraft
tar -czf "/var/backups/minecraft/world-$(date +%Y%m%d-%H%M).tar.gz" -C /opt/minecraft world
find /var/backups/minecraft -name 'world-*.tar.gz' -mtime +7 -delete

Install it and schedule it from the root crontab (sudo crontab -e), here once a day with the @daily shortcut:

sudo install mc-backup.sh /usr/local/bin/mc-backup.sh
sudo chmod +x /usr/local/bin/mc-backup.sh
@daily /usr/local/bin/mc-backup.sh

Then pull the archives to your own machine, and check that an archive reads back cleanly. A full restore into a scratch folder on another machine is the real test.

scp -i ~/.ssh/oci_minecraft -r ubuntu@PUBLIC_IP:/var/backups/minecraft ./mc-backups
tar -tzf ./mc-backups/minecraft/world-YYYYMMDD-HHMM.tar.gz > /dev/null && echo archive-ok

First join, and the symptoms that name their cause

In the Minecraft client, add a server at PUBLIC_IP:25565, using the public IPv4 address from the instance page. If the client then times out, one of the two firewall layers is still closed.

What you seeCauseFix
Client says connection timed outNo ingress rule in the VCN, or the iptables rule sits below the REJECT lineRecheck step 4, list INPUT with line numbers, re-insert above REJECT, run netfilter-persistent save
Client says connection refusedNothing is listening: the service is stopped or has crashedsudo systemctl status minecraft, then journalctl -u minecraft
SSH says Permission denied (publickey)Wrong username for the image, or the private key is not mode 600Use ubuntu on Ubuntu or opc on Oracle Linux; run chmod 600 on the key
Console says Out of host capacityNo free Arm servers in that part of the regionAnother availability domain, a 1 OCPU and 6 GB shape, a later time, or the Pay As You Go upgrade
UnsupportedClassVersionError at launchThe installed Java is older than the jar needsInstall Java 25 for Minecraft 26.1 and newer (step 6)
Server stops right after the first starteula.txt still says eula=falseSet it to true as in step 8
Locked out of SSH after a firewall changeufw was enabled on top of Oracle’s iptables rulesLeave ufw off; step 5 uses iptables only
apt or downloads time outOracle lists A1.Flex among shapes that can see DNS timeouts on UDP source port 4791Read Oracle’s known issues entry; not every instance is affected

For another game’s cloud server, see the Palworld cloud server setup guide or the Valheim dedicated server setup guide. If Arm capacity in your region stays full, the Fly.io Machines game server setup guide covers a different host.

Elias Virtanen

Elias Virtanen

Games and consoles

Elias Virtanen covers games and consoles for Tech Insider: console and handheld hardware, game releases, emulators and the business of the games industry. His comparisons start from the makers' specifications and published independent results, and he says plainly what the evidence supports.

View all articles