Skip to content
Minecraft install for Vagrant -- Instant and disposable persistent minecraft servers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Vagrantfile Add persistent folder. Sep 13, 2014

Build Status

Disposable Minecraft Servers

Vagrant is a virtualization service for creating disposable dev environments. Now the two of them are together for running easy, shareable minecraft servers.

Minecraft Vagrant

What does this do

You can run vagrant up on your windows, linux, or mac machine and have a minecraft server running in a compartmentalized virtual server. When you run vagrant destroy the virtualize machine is destroyed but your persistent data is kept in persistent_data. You can clone this repo on any mac, windows, or linux machine with Vagrant installed to easily create a minecraft server you and your friends can join.


Initially I created this vagrant image so I could quickly and easily test mods. Just start the vagrant instance and do whatever you want. If you break something or decide you don't want to use that mod any longer, simply destroy the image and the persistent data and start it again. It will be just like new.

Backing up and restoring your minecraft server very easy, since all of your data -- including the information necessary for running the server -- is contained in just a few files and folders. You can even copy the entire directory over to a new server and run it there.

Lastly, I bet there are parents out there who want to run minecraft servers for their children. This let's you do this easily from just about any platform without having to configure anything.

Running the server

First install Vagrant if you haven't already done that.

Next clone the repo:

git clone

Pop into the vagrant server and run vagrant up

cd vagrant_minecraft_auto_launch
vagrant up

At this point you can run vagrant ssh to go into the server. You'll be greated with a MOTD with some helpful information:


To stop, start, restart or check the status of the the minecraft server
process, simply run:

  $ service minecraft <stop|start|restart|status>

The runtime logs are available at /opt/minecraft/logs

To change the min or max server memory values, make the change in:


And then restart the server proces.

Status of minecraft server:

minecraft start/running, process 2344

Have fun!

Under the hood

The server will launch an Ubuntu 12.04 image that will download and install everything you need to run minecraft automatically. It will also start the service and take care of logs. Everything related to your server will be in persistent_data and that folder will survive the destruction and creation of these vagrant instances.

After the installation completes, you and others will be able to connect to your server at your host's ip address. That means if you launch the vagrant instance on a laptop that has the ip address of, then you can connect to the server at the same address (regardless of what your guest ip address is).

The instance itself doesn't need to be destroyed between runs. You can also halt it. Either way, when you bring it back online it should be running the server.

You can’t perform that action at this time.