This guide provides a detailed, step-by-step process to create a Virtual Machine (VM) on Oracle Cloud using Always Free resources. Follow these instructions carefully to ensure a successful setup.
- An Oracle Cloud account (sign up at Oracle Cloud)
- Basic understanding of SSH and Linux commands
- A stable internet connection
- Go to Oracle Cloud Console.
- Sign in with your Oracle Cloud credentials.
- Navigate to the Compute section by selecting Menu > Compute > Instances.
- Click Create Instance.
- Enter a name for your instance (e.g.,
ProjectZomboid-Server
). - Under Placement, select the Region closest to your location.
- In the Shape section, click Change Shape and select Ampere VM.Standard.A1.Flex (ARM-based, Always Free eligible).
- Set OCPU Count to
4
and Memory (GB) to24
(maximum for Always Free).
- Under Image and Shape, click Edit.
- Select Ubuntu 22.04 as the OS.
- Click Select Image.
- Under Networking, select Create a New Virtual Cloud Network (VCN).
- Ensure Assign a Public IP Address is enabled.
- Click Create Subnet and ensure it is attached to the default VCN.
- Under Add SSH Keys, choose Generate SSH Key Pair (or upload an existing key).
- If generating, download the private key (
.pem
file) and store it securely. - Click Create to launch the VM.
- Once the instance is running, copy the Public IP Address from the instance details page.
- Open a terminal and run:
ssh -i /path/to/private-key.pem ubuntu@your-vm-ip
- If prompted, type
yes
to confirm the connection.
Run the following commands to allow traffic for Project Zomboid:
sudo su
iptables -I INPUT -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 16261 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 16261 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 16262 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 16262 -j ACCEPT
sudo iptables-save > /etc/iptables/rules.v4
sudo systemctl restart iptables
sudo ufw disable
Run:
sudo apt update && sudo apt upgrade -y
reboot
Your Oracle Cloud VM is now set up and ready for use! Proceed to the Project Zomboid Server Setup Guide to install and configure a dedicated server on your VM.