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

From Love's Story
Jump to: navigation, search

Many readers have asked us how to set up a Minecraft server. Minecraft is a huge hit in gaming, selling millions of copies and starting as 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. The model is very similar the Counter-Strike scene between 2000 and 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 This will make the test case as relevant as possible. My personal workstation will be used.



CPU(s): Intel Core i7-3930K Motherboard: ASUS P9X79 WS Memory: 32GB (8x 4GB) G.Skill Ripjaws X DDR3 1600 Drives: Corsair Force3 120GB, OCZ Vertex 3 120GB and 2x Samsung 840 Pro 256GB Chassis: Corsair Carbide 500R Power Supply: Corsair AX850 850w 80 Plus Gold OS: Microsoft Windows 8 Pro with Hyper-V and Ubuntu Server 12.10 One key aspect here is that the machine has a lot of very fast 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. Installation of Hyper-V components is much easier than CentOS and other distributions because they are included in major 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. 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.



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. This guide will use java7. To install java on Ubuntu, run 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 you will want to create a directory. Minecraft servers 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 includes version numbers which makes 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. These commands are what I use most often:



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. 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'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



Copy the following lines and save/write the 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 you are done, you can start running:



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.



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 really cool thing here is that the installation is very portable since it is in Hyper-V and runs on many machines since Microsoft has brought Windows 8 Hyper-V to the masses.



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 for the technology industry. He has worked with many large storage and hardware companies in 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 at 5:18am Guys, I don’t get the "How do you do something by Captain Obvious” type of articles. What's going on with 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 am currently working on a prototype for a public cloud and am just sharing it here to help others.



If there is something specific that you are interested in or you have ideas, we would love to hear them. Join us on the forums. We have a sub-forum dedicated to main site article 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 to note is that not all things are obvious to everyone. Minecraft servers We receive many requests on this topic every week.



xena April 9, 2013 at 11:40am Well +1 Yuri. 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 created this site and made it unique for IT people or high-end enthusiast people. We were very happy to find the information on your website. But now its feel like you throw your old readers over deck and get simple stuff instead of giving us high quality food we have become accustomed to. Here are my thoughts...



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. Minecraft servers



Also, if you do have ideas for something more relevant, please feel free to join the list of contributors. 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 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 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 was tested under Hyper-V on Server 2012 R2 as well as Windows 8.1 with Ubuntu 14.10.



LEAVE A COMMENT Please enter your name. Please enter your email address.



Sign me in for the STH Newsletter!



To reduce spam, this website 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 select the best posts from STH each Monday and deliver them to you directly.



Your email address:



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