How To Install Minecraft Server On Windows 8 Hyper-V Ubuntu Server In 60s

How To Install Minecraft Server On Windows 8 Hyper-V Ubuntu Server In 60s


Many readers have asked us how to set up a Minecraft server. Minecraft is a big hit in the gaming world, selling millions of copies but still being developed by an independent developer. Minecraft's independent path to market is one of the best. There is no need for a corporate server, which is a problem with games like Call of Duty. That means users are free to setup their own Minecraft servers at home, colocated or elsewhere. This model is very similar to Counter-Strike's scene from 2000-2001. Today we are going to show how to install Minecraft server on Windows 8 Hyper-V Ubuntu. This is an easy setup that uses little power and is great for hosting LAN games.

Test Configuration To make this as relevant as possible to the test case my personal workstation is going to be used.

CPU(s). Intel Core i7-3990K Motherboard. ASUS P9X79 WS. Memory: 32GB (8x4GB) Corsair Force3 120GB. OCZ Vertex3 120GB. 2x Samsung 840 Pro 256GB. Power Supply: Corsair Carbide 500R. Corsair AX850 850w 80 Plus. OS: Microsoft Windows 8 Pro. Hyper-V and Ubuntu Server 12.10. Traditional rotating disks can cause a Minecraft server to hang for players during disk access.

Prerequisite: Install Ubuntu for Windows 8 Hyperv. Installing Ubuntu for Windows 8 Hyperv is easy. The major distributions include Hyper-V integration components, which makes installation much faster than with CentOS or many other distributions. The guide below will help you install Ubuntu on Windows 8 Hyper-V. For a Minecraft server it is suggested that one uses the x64 server version. The workstation version uses more disk space and requires additional memory to run. Because Minecraft is very memory-intensive, it is best not waste memory.

One major note here is that one wants the Minecraft server Hyper-V data store to run on a SSD.

Install Minecraft Server on Windows 8 Hyper-V Ubuntu in 60 seconds Now for the fun part, getting a basic Minecraft server running in less than 60 seconds. Of course, if one has a slow Internet connection it may take slightly longer.

The first step to install Minecraft server on Windows 8 Hyper-V is to install java. We will be using java7 as our guide. Use the following command to install java on Ubuntu:

sudo apt-get install openjdk-7-jre-headless

This is a screenshot showing what it will look like (may differ slightly if you have already done sudo apt-get update).

Install Minecraft on Hyper-V Ubuntu JAVA Now that the Ubuntu server has java installed, you can get the files needed to install Minecraft server. First, create a directory. I like minecraft server as my directory for a simple server.

mkdir

After this one needs to get the Minecraft Server files:

wget -O ~/minecraft-server/server.jar https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

This command is simplified greatly because it uses the exact same path. Bukkit has version numbers which makes it a little more difficult. Here's how it all looks like.

Install Minecraft on Hyper-V Ubuntu Minecraft Standard At this point one has installed Minecraft server on Windows 8 Hyper-V Ubuntu. It is possible to move the Minecraft server to another Windows 8 Pro, Windows 8 Enterprise or Windows Server 2008 R2, Windows Server 2012, or Hyper-V server machine by using this type. You can import the virtual server and then you are ready to go on a dedicated box.

Now the next step is to launch Minecraft server after it is installed. Here are the commands I use:

cd minecraft-server

java -Xmx2048M -Xms2048M -jar server.jar nogui

That launches a 2GB of RAM minecraft server which most desktops can support. You can use the Microsoft Surface Pro as a Hyper-V host but the numbers should be lower to 1024M because it has 4GB RAM. An important factor here is that the more RAM the Hyper-V host has, the more it can allocate the the Ubuntu VM and the Minecraft server. This is how it looks:

Install Minecraft on Hyper-V Ubuntu Start Minecraft That's all there was and it only took about a minute to get up and running with the Minecraft server in Hyper-V on a Ubuntu VM. There's a better way.

Scripting the Minecraft Server Installation on Ubuntu While entering commands is fun, we can use a simple bash script to do the installation. Log in to the Ubuntu VM using SSH or the HyperV console and open a text editor. I use nano quite a bit so the command would be:

nano minecraft-server-install.sh

You can now copy the following lines into your text editor and save/write changes.

#!/usr/local/bin/bash sudo apt-get install openjdk-7-jre-headless mkdir ~/minecraft-server && wget -O ~/minecraft-server/server.jar https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

Once that is complete, you can run.

sh minecraft-server-install.sh

At which point the bash script will run, download and install java and Minecraft server. If you want to do this on Hyper-V or non Hyper-V Ubuntu Ubuntu installations, you can simply download the script and complete the installation in less than 20 second each time.

Hopefully this helped. Always open to other suggestions and if we want, happy to do the same with bukkit or similar Minecraft server installations. The cool thing about this is that the installation can be moved easily because it is in Hyper-V. Additionally, it can run on many computers since Microsoft has released Windows 8 Hyper-V.

Feel free to suggest other options.

TAGS minecraft Previous articleHP Moonshoot 1500 Hyperscale Computing Released Next articleASUS Z9PA-D8 Review - Dual Intel Xeon E5-2600 ATX Motherboard Patrick Kennedy https://www.servethehome.com Patrick has been running STH since 2009 and covers a wide variety of SME, SMB, and SOHO IT topics. Patrick is a consultant in the technology industry and has worked with numerous large hardware and storage vendors in the Silicon Valley. STH's goal is to provide information on server, storage, networking, and other building blocks. Please feel free to share any helpful information on the forums. 7 COMMENTS Yuri April 9, 2013, 5:18 AM Guys, I don’t understand the "How to do it by Captain Obvious" type of articles. What's going on with STH?

Stephen Davis April 9, 2013, 8:42 a.m. Yuri - We are sorry that you don't like the recent how to articles. There are only so many products and news we can afford to test. Sometimes we create articles based upon projects we are currently working on or fun activities we just completed. The Xen articles are a good example of this. I am documenting the progress of a public cloud prototype that I have built and am sharing it here for others.

We are open to hearing your thoughts and suggestions, or if you have a specific interest in something. Please join us on the forums. There is a subforum for main site article ideas. http://forums.servethehome.com/servethehome-com-article-suggestions/

Patrick Kennedy April 9, 2013, 10 :50 Yuri. Stephen mentioned that you are free to suggest content or contribute to it.

Important note: What is obvious to one person might not be obvious for another. This topic is the subject of many requests every week.

xena April 9, 2013 At 11:40 am Well +1 to Yuri, same thougts here. Since 2002, I have been a regular visitor to this site. Over the past two years, I have seen a decrease in the quality or more accurately, the variety of topics. We had articles about 4 sockets motheboards. Raid cards test. Great articles about ibm1015. There were also great ebay auctions. This is what makes you truly unique and draws readers from all over the globe (in my case, central eu). With topics like minecraft or memtest you take this site so to lowend that people start checking if they really are on STH or on some of the billion hw&sw reviews junk sites. Cmon Patrick, you found this site and make it very special for people from IT ranks or highend enthusiastic folks and we was very happy with information we find on you site. It feels like you are dumping your old readers and giving us the same low-quality food we have grown to expect. Just few my cents...

Patrick Kennedy April 9, 2013, at 1:33 p.m. xena. Thanks for your feedback. The content for the next two days will likely be more in-line than the older content (dual LGA2011 Review and a cool pieces piece.)

I started a thread here: http://forums.servethehome.com/servethehome-com-article-suggestions/1672-sth-main-site-direction-april-2013-a.html where we can continue the discussion. This type of feedback is always appreciated and is one reason why we have a dedicated public forums to this topic.

You are also welcome to contribute if your ideas are more relevant. It is always a pleasure to see people's projects get more attention.

Morko June 12, 2013 at 12:36 This article was interesting and very helpful. First I tried this http://www.smh.com.au/digital-life/computers/blogs/gadgets-on-the-go/setting-up-a-minecraft-home-server-20120823-24own.html, great tutorial but it didn't serve all angles I was looking for so yeah, thanks for the post.

Ken February 7, 2015 At 8:30 am As a note for future readers, to install Ubuntu in Hyper-V you CAN install it as a Gen 2 VM, but in order for the install to boot you must disable the "secure boot" option in the Firmware settings of the VM.

To be clear, you just create a new VM and choose Generation 2 as the type. But before you can start the VM you need to go into its settings and select'require safe boot' (or some similar). The VM will now boot. The install will find and use the appropriate drivers.

This has been tested under Hyper-V both on Server 2012 R2 (Windows 8.1 running Ubuntu 14.10).

LEAVE A REPLY Please enter your name here You have entered an incorrect email address! Please enter your email address here Save my name, email, and website in this browser for the next time I comment.

Sign me up to receive the STH newsletter

To reduce spam, this website uses Akismet. Find out how your comment data will be processed.

Ealatorre.com

Newsletter Get the best of STH delivered weekly to your inbox. We will curate the best STH posts each week and send them directly to your inbox.

Your email address:

You agree to receive our newsletter by opting in. To manage subscriptions, we use a third-party service so that you can unsubscribe at anytime.

Report Page