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. For those that do not know, Minecraft is a breakout hit in gaming selling many millions of copies yet starting from an independent developer. Minecraft''s independent route is great because there is no requirement for a server to be "corporate", which can plague 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 in appearance to Counter-Strike scenes from 2000-2001. Today we are going to show how to install Minecraft server on Windows 8 Hyper-V Ubuntu. This setup is simple and can host LAN games.



Test Configuration In order to make it as relevant to the test case, my personal workstation will be used.



CPU(s), Intel Core i7-3920K Motherboard, ASUS P9X79 WS Memory and Drives: Corsair Force3 120GB and OCZ Vertex3 120GB Drives Corsair 840 Pro 256GB Chassis Corsair Carbide 500R power supply: Corsair 850 850w 80 Plus gold OS: Microsoft Windows 8 Pro with HyperV 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. Hyper-V integration components are included with the major distributions making installation faster than with CentOS and 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 edition takes up more disk space, and requires additional memory to run. Since Minecraft is very memory intensive, it is best to 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. This guide will use java7. Use the following command to install java on Ubuntu:



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



Here''s an example of what this will look, (may be slightly different if sudo aptget upgrade was already performed):



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 ~/minecraft-server



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



That command is greatly simplified because it uses the 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. These are my preferred commands:



cd minecraft-server



java -Xmx2048M -Xms2048M -jar server.jar nogui



That launches a 2GB of RAM minecraft server which most desktops can support. If one wanted to use something like the Microsoft Surface Pro as the Hyper-V host, those numbers should be lowered to 1024M due to limitations with 4GB of 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. Here''s how that 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 is an easier way.
mc name



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 a lot so it 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 all of this is done, one can go:



sh minecraft-server-install.sh



At which point the bash script will run, download and install java and Minecraft server. For those that want to do this on both Hyper-V and non Hyper-V Ubuntu installations, one can just download that script and complete installations in under 20 seconds each time.



Hopefully that was helpful. Always open to other suggestions and if we want, happy to do the same with bukkit or similar Minecraft server installations. The best part about this installation is its portability. It is in Hyper-V, and can run on many machines. Microsoft has now released Windows 8 Hyper-V.



Feel free to suggest alternatives.



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 for the technology industry. He has worked with many large storage and hardware companies in Silicon Valley. The goal of STH is simply to help users find some information about server, storage and networking, building blocks. If you have any helpful information please feel free to post on the forums. 7 COMMENTS Yuri April 9, 2013 At 5:18 am Guys, I don''t get "How to do something by Captain Obvious" kind of articles. What''s happening to STH?



Stephen Davis April 9, 2013, 8:42 a.m. Yuri - We are sorry that you don''t like the recent how to articles. We can only afford to test and buy so much news and product. So sometimes we create articles based on projects we have going on or something fun we recently did. This is evident in the Xen articles. 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 at 10:50 Yuri. Stephen suggested that you feel free to suggest or add content that you would like.



Also, it is important to note that things that seem obvious to one person may not be obvious or obvious to 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. As regular visitor of this site for 2 years I see a downward curve in quality or rather quality of choice 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 such as minecraft or memtest, you make this site so lowend that people start to check if they are really on STH. Cmon Patrick! You found this site and made it special for people in IT ranks or high-end enthusiasts. We were very happy with the information we found on your 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 pm xena, thanks for the feedback. The content of the next two day will likely be similar to that of the older content (dual LGA2011 overview and a cool project 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 can also join the contributors list if you have other ideas. People are always open to more exposure for their projects.



Morko June 12, 2013 At 12:36 am It wasn''t all for nothing though. 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 @ 8:30 AM. A note to future readers: To install Ubuntu in hyper-V, you can install it as Gen 2 VMs, but in order for it to boot, you must disable the "secureboot” option in the Firmware setting of the VM.



To be clear, you simply create a new VM choosing Generation 2 as the type of VM, but before booting the VM for the first time you need to go into the settings for the VM, and U select ''require secure boot'' (or something similar). The VM will start, and the install will locate all the synthetic devices.



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



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



Sign me up for STH''s newsletter



To reduce spam, this site uses Akismet. Learn more about how your comment data is processed.



Subscribe to our newsletter and receive the best of STH every week in your inbox We will curate a selection from the best STH posts each Wednesday and deliver them directly straight to your inbox.



Your email address:



By opting-in you agree to have us send you our newsletter. To manage subscriptions, we use a third-party service so that you can unsubscribe at anytime.