Su di me

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 huge hit in gaming, selling millions of copies and starting as 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 setup is easy and great for hosting LAN gaming.

Test Configuration In order to make it as relevant to the test case, my personal workstation will 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. proximal's blog The major distributions include Hyper-V integration components, which makes installation much faster than with CentOS or many other distributions. Use the guide on how to install Ubuntu on Windows 8 Hyper-V in a few minutes. 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. It might take slightly longer for slower Internet connections.

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

Here is a screenshot of what this will look like (may be slightly different if you already did sudo apt-get upgrade):

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

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 much simpler because it follows the same path. Bukkit includes version numbers which makes things a bit 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. Simply import the virtual box and you can go on 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. MINECRAFT SERVERS 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 what this looks like:

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.

Scripting the Minecraft Server Installation on Ubuntu While entering commands is fun, we can use a simple bash script to do the installation. Log into the Ubuntu VM by using SSH or Hyper-V console. Then open a text editor. I use nano a lot 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. 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.

Conclusion. I hope that 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 and open to suggestions.

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 technology and has worked with many large storage and hardware vendors in Silicon Valley. STH's goal is to provide information on server, storage, networking, and other building blocks. If you have any helpful information please feel free to post 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 happening with STH

Stephen Davis April 9, 2013 At 8:42 am Yuri - Sorry you are not liking the recent how-to 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. This is evident in the Xen articles. 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 in the forums. We have a subforum for main website 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 raid cards test, 4 sockets motheboards and great articles about ibm1015 last year. You also have great ebay auction articles. That's what makes you unique and attracts readers all over the world (in my case, from 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. proximal's blog 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. But now it feels like your old readers are being thrown overboard and you're giving us simple stuff instead the high quality food that we have come to expect. 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 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 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 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 now boot. The install will find 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 NOTE Please leave a comment! Please enter your name. Please enter the email address below to save your name, email and website for the next comment.

Sign me up for STH's newsletter

This site uses Akismet for spam reduction. Learn how your comment data is processed.

Newsletter Get the best STH news delivered straight to your inbox every week. 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. We use a third-party service to manage subscriptions. This allows you to unsubscribe at your convenience.