User Tools

Site Tools


esxi:amp_game_server

Table of Contents

Amp Game Server

Install the CubeCoders AMP (Application Management Panel) game server manager on Debian 10 in a VM.

Setup

First, install a minimal installation of Debian 10 with the following changes:

  • VM Name: Game Host
  • Hostname: Optiplex-GameHost
  • CPU: 4
  • Memory: 10 GB
  • Hard Disk: 40 GB

Install Debian 10

  • Download the 64-bit PC netinst iso file from debian.org
  • In ESXi:
    • Upload the iso to the iso folder in the datastore
    • Create/Register VM:
      • Create a new virtual machine
      • Name the VM, and choose Linux and Debian GNU/Linux 10 (64-bit)
      • Specify the desired Target Datastore
      • Customise:
        • CPU:
          • Use the full amount of cores per socket to end up with one socket
          • Enable Expose hardware assisted virtualization to the guest OS
        • If using NVMe storage for the datastore:
          • Add other device > NVMe controller
          • Hard Disk 1 > Controller location > NVMe controller 0
          • Remove SCSI controller 0
        • Select other appropriate VM settings depending on desired applications
      • Confirm settings and Finish
    • If autostart is desired for this machine go to Host > Manage > System > Autostart:
      • Click on the current VM
      • Enable
      • Use Start earlier and Start later to set the desired order
    • Go to Virtual Machines on the sidebar and click on the current VM
      • Power on the VM
      • Go through the Debian setup process
        • In software selection, selecting only the SSH server and Standard system utilities
    • Give the VM a static IP address from your router using the generated MAC address (found under Hardware Configuration > Network adapter 1) and desired hostname
    • Reboot the VM
    • Using an SSH client, connect to the hostname set above, then run:
# Login with root details that were set earlier
# Update packages:
apt update
apt upgrade
# Install VMWare tools
apt install open-vm-tools
 
# Change the SSH port to 50001:
sed -i "s/#Port 22/Port 50001/" /etc/ssh/sshd_config
exit
  • Shutdown the VM
  • Edit VM note to be the following:
Minimal server installation of Debian 10

Ports:
50001/tcp SSH
  • Save a snapshot called Base Install
2020/12/22 08:35 · derek

Install AMP

  • Acquire licence from https://cubecoders.com/AMP
  • Make sure all updates are installed sudo apt update then sudo apt upgrade
  • Mount a NFS share to use for game backups FIXME: not sure if should be before or after install
  • Run as root bash <(wget -qO- getamp.sh) and follow instructions
  • Apply licence key
  • Shutdown, create VM snapshot, and start the VM again

Notes

  • Ignore the ADS01 instance created by default, it is the base instance of the management website and is already effectively the instance being managed, it can theoretically be renamed using: FIXME: Not actually working
  • ampinstmgr ReconfigureInstance ADS01 +Core.AMP.FriendlyName "ADS(Ignore)"
  • Right-click on an instance in ADS to edit the port bindings, view data, update, or delete the instance
  • After creating a game instance and configuring, click update on the status page to download the game initially before attempting to start it.
  • Previously had to install install the openjdk-8-jre-headless deb from the debian stretch repository since OpenJDK 8 is no longer available for Debian 10, but this should be no longer an issue

Update

  • The management page shows when an update is needed
  • Warning: Updating restarts all game servers!
  • Check https://support.cubecoders.com/ for update notes
  • Run as root from the ESXi interface (because root is blocked from ssh)
  • Update the instance manager command line tool:
  • apt update
  • apt upgrade
  • Update the AMP instances
  • runuser -l AMP -c "ampinstmgr upgradeall"
  • Use Shift+F5 or Shift+Command+R to refresh with a clear cache after updating

Ports

8080/TCP      https Web Interface
8081:8180/TCP Instance management (FIXME: Not sure if need forwarding?)

5678:5688
7777:7877/TCP     RCON
8766:8866
21025:21125/TCP   Starbound
25565:25665/Both  Minecraft
27015:27115/Both  Source engine games
28015:28115/Both  Rust
34197:34297/UDP   Factorio
esxi/amp_game_server.txt · Last modified: 2020/12/22 17:06 by derek