How To Install Minecraft Server On Windows 8 HyperV Ubuntu Server In 60s

From Mozilla Foundation
Jump to: navigation, search

Many readers have asked us how to set up a Minecraft server. Minecraft is a massive hit in gaming and has sold millions of copies. However, it was developed by 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 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 it as relevant as possible to test case, my personal computer will be used.



CPU(s) : Intel Core i7-3920K Motherboard: ASUS P9X79 WS Memory 32GB (8x4GB) Drives: Corsair Force3 120GB, OCZ vertex 3 120GB and 2x Samsung 840 Pro 256GB Drives: Corsair 500R Power Supply Corsair AX850 850w 80 Plus OS: Microsoft Windows 8 Pro and Ubuntu Server 12.10. One important aspect is that the machine has a lot SSD storage. Traditional rotating disks can cause a Minecraft server to hang for players during disk access.



Prerequisite: Install Ubuntu on Windows 8 Hyper-V Installing Ubuntu on Windows 8 Hyper-V is very easy. Hyper-V integration components are included with the major distributions making installation faster than with CentOS and many other distributions. This guide will show you how to install Ubuntu on Windows 8 Hyper-V. It takes just a few minutes. For a Minecraft server it is suggested that one uses the x64 server version. Minecraft servers The workstation edition takes up more disk space, and requires additional memory to run. It is best not to waste memory because Minecraft is extremely memory-intensive.



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



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. It may take slightly longer if you have a slower Internet connection.



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



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 an 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



Because it uses the same path, this command is significantly simplified. Bukkit contains version numbers, making things a bit more difficult. This is how it all looks:



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 machine to be able to move it to a dedicated server box later.



Now the next step is to launch Minecraft server after it is installed. For this I tend to use the following commands:



cd minecraft-server



java -Xmx2048M -Xms2048M -jar server.jar nogui



That launches a 2GB of RAM minecraft server which most desktops can support. These numbers should be reduced to 1024M if one wants to use a Microsoft Surface Pro as the HyperV host. This is due to the limitations of 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. Of course there is a slightly 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. Just log into (using SSH or the Hyper-V console) the Ubuntu VM and fire up a text editor. I use nano quite a bit so the command would be:



nano minecraft-server-install.sh



Now one can just copy the following lines into the text editor and save/ write out 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. You can download the script to complete both Hyper-V and Non Hyper-V Ubuntu installations. It takes less than 20 seconds.



Conclusion Hopefully that 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 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 in IT and has worked for many large storage vendors and hardware manufacturers in Silicon Valley. The goal of STH is simply to help users find some information about server, storage and networking, building blocks. Please feel free to share any helpful information on the forums. 7 COMMENTS Yuri April 9,2013 at 5:18am Guys, I don’t get the "How do you do something by Captain Obvious” type of articles. What's happening to STH?



Stephen Davis April 9, 2013, 8 :42 a.m. Yuri – Sorry you don't enjoy the recent howto articles. There is only so much information and products that we can afford. So sometimes we create articles based on projects we have going on or something fun we recently did. The Xen articles are a good example of this. I have been building out a public cloud prototype and am simply documenting it here for others to benefit.



If you have any suggestions or are interested in a specific topic, please let us know. Please join us on the forums. We have a subforum that is dedicated to main site articles ideas. http://forums.servethehome.com/servethehome-com-article-suggestions/



Patrick Kennedy April 9, 2013, 10:50 Yuri. Stephen said that you can suggest or contribute content to the site.



Important note: What is obvious to one person might not be obvious for another. We receive many requests on this topic every week.



xena April 9, 2013, 11:40 AM Well +1 to Yuri. Same thoughts 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). You make the site so low-end with topics like minecraft and memtest that people begin to wonder if they're actually on STH. 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. Now it feels like you're dumping your older readers and getting us low-quality food instead of the high-quality food we are used to. These are my thoughts...



Patrick Kennedy April 9, 2013 @ 1:33pm xena. We appreciate 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 feedback is always welcome and is why we have a dedicated forum for this topic.



You are also welcome to contribute if your ideas are more relevant. We are always happy to help people get more exposure for their projects.



Morko June 12, 2013 at 12:36 This article was very helpful and interesting to me. 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. As a reminder to future readers, Ubuntu can be installed in Hyper-V as a Gen 2 Virtual Machine. However, in order to have the install to work, you will need to disable "secure boot" in the Firmware Settings.



To be clear, you create a new VM by choosing Generation 2 as the type. However, before you can boot the VM for first time, you will need to go into the settings and select'require secured boot' (or something like that). The VM will begin to boot. The install will locate and use the appropriate drivers.



This was tested under Hyper-V on Server 2012 R2 as well as Windows 8.1 with Ubuntu 14.10.



LEAVE A REPLY Please enter your username here Please enter your email address.



Sign me in for the STH Newsletter!



To reduce spam, this website uses Akismet. Learn how your comment data are processed.



Newsletter Receive the best of STH delivered to your inbox weekly. We will curate a selection from the best STH posts each Wednesday and deliver them directly straight to your inbox.



Your email address:



You agree to receive our newsletter by opting in. We use a third party service for managing subscriptions. You can unsubscribe at any moment.