This repository provides a guide and automated scripts to set up a Minecraft server on Proxmox using either a Virtual Machine (VM) or an LXC container.
If you find this guide helpful, consider purchasing through this affiliate link: โ๏ธ NiPoGi AK1PLUS Mini PC โ Intel Alder Lake-N N100 Using this link supports the project at no additional cost to you. Thank you! ๐
โ Automated installation of Minecraft Java/Bedrock servers โ Works with Proxmox VM or LXC container โ Performance optimizations included (RAM allocation, CPU prioritization) โ Customizable settings (world generation, plugins, mods) โ Troubleshooting guide included for common issues
-
Open Proxmox Web Interface โ Click on "Create VM"
-
General Settings:
- Name:
Minecraft-Server
- Name:
-
OS Selection:
- Use a Debian 11/12 or Ubuntu 24.04 ISO image
-
System Configuration:
- BIOS: OVMF (UEFI) or SeaBIOS
- Machine Type: q35 (recommended)
-
Disk & Storage:
- 20GB+ Storage (depending on world size)
- Storage Type:
virtio
(recommended)
-
CPU & RAM:
- 2 vCPUs (recommended: 4)
- 4GB RAM (recommended: 8GB)
-
Network:
- Model: VirtIO
- Enable QEMU Guest Agent after installation
apt update && apt upgrade -y
apt install -y curl wget nano screen unzip git openjdk-21-jre-headless
wget https://raw.githubusercontent.com/TimInTech/minecraft-server-Proxmox/main/setup_minecraft.sh
chmod +x setup_minecraft.sh
./setup_minecraft.sh
-
Open Proxmox Web Interface โ Click on "Create CT"
-
General Settings:
- Name:
Minecraft-LXC
- Set root user password
- Name:
-
Template Selection:
- Choose a Debian 11/12 or Ubuntu 24.04 template
-
Resources:
- CPU: 2 vCPUs (recommended: 4)
- RAM: 4GB (recommended: 8GB)
- Disk Storage: 10GB (recommended: 20GB)
-
Network Settings:
- Network Device:
eth0
- Bridge:
vmbr0
(adjust as needed) - IPv4: Static (e.g.
192.168.0.222/24
) - Gateway (IPv4): typically
192.168.0.1
- Firewall: Enable (optional)
- Network Device:
-
Advanced Settings:
- Enable "Nesting" (required for Java & systemd)
- Disable "Unprivileged Container" if needed
apt update && apt upgrade -y
apt install -y curl wget nano screen unzip git openjdk-21-jre-headless
wget https://raw.githubusercontent.com/TimInTech/minecraft-server-Proxmox/main/setup_minecraft_lxc.sh
chmod +x setup_minecraft_lxc.sh
./setup_minecraft_lxc.sh
Yes โ root is only needed during setup (e.g. to create the minecraft
user). After installation, all operations (start, stop, update) can and should be done as the minecraft
user.
sudo -u minecraft screen -r
If needed:
sudo -u minecraft screen -ls
sudo -u minecraft bash /opt/minecraft/start.sh
cd /opt/minecraft
sudo -u minecraft ./update.sh
If it's missing:
sudo nano /opt/minecraft/update.sh
Paste:
#!/bin/bash
wget -O server.jar https://api.papermc.io/v2/projects/paper/versions/1.20.4/builds/416/downloads/paper-1.20.4-416.jar
Then:
sudo chmod +x /opt/minecraft/update.sh
Manual update required โ download the latest .zip
from the official site and replace the old one. (Due to licensing restrictions, automatic download is not included.)
apt install -y openjdk-21-jre-headless
systemctl restart minecraft
cd /opt/minecraft
nano start.sh
Paste:
#!/bin/bash
java -Xms2G -Xmx4G -jar server.jar nogui
Then:
chmod +x start.sh
./start.sh
ufw allow 25565/tcp
ufw allow 25565/tcp6
ufw enable
- Found a bug? ๐ Open an Issue
- Want to improve the script? โ๏ธ Submit a Pull Request
๐ Happy crafting! ๐ฎ