NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

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 independence from Call of Duty is one of its greatest assets. 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 This will make the test case as relevant as possible. 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 in Windows 8 HyperV. It is very simple to install Ubuntu on Windows 8 HyperV. The major distributions come with Hyper-V integration parts, making it much easier than CentOS. 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 takes up more disk space and uses more 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. 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 you will want to 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 also includes version numbers, which can make things a little more complicated. 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 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 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. 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



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. This script can be downloaded for both HyperV and non HyperV Ubuntu installations. Installations take less than 20 seconds each.



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 best thing about this installation is that it is portable because it is in Hyper-V. It can also run on many machines, since Microsoft has made Windows 8 Hyper-V available to everyone.



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. 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:18am Guys, I don’t get the "How do you do something by Captain Obvious” type of articles. What's the deal with STH?



Stephen Davis April 9, 2013 At 8:42 am Yuri - Sorry you are not liking the recent how-to articles. There are only so many products and news we can afford to test. Sometimes, we create articles that are based on projects we are working on or on something we had fun with. This is evident in the Xen article. I have been working on a prototype public cloud and am now sharing it with 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.



Also, it is important to note that things that seem obvious to one person may not be obvious or obvious to another. We get several requests each week on this topic alone.



xena April 9, 2013. 11:40 am Well +1 for Yuri, same thoughts 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. Here are my thoughts...



Patrick Kennedy April 9, 2013 @ 1:33pm xena. We appreciate your feedback. The next two days will likely have content more in-line with the older content (dual LGA2011 review and a cool projects 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. We always appreciate this feedback and have a dedicated public forum to discuss it.



You can also join the contributors list if you have other ideas. It is always a pleasure to see people's projects get more attention.



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 at 8:30 am. This is a reminder for future readers: You can install Ubuntu in HyperV as a Gen 2 virtual machine, but to make the installation work, you need to disable the "secureboot" option in the Firmware settings.



To be clear: you simply create a new VM. You choose Generation 2 to be the type of VM. However, before you start the VM, you need go into the settings. Select'require secure boots' (or another similar option). The VM will boot, the install will find all the synthetic devices and use appropriate drivers.



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



LEAVE A REPLY Please enter your comment! Please enter your name here You have entered an incorrect email address! Please enter the email address below to save your name, email and website for the next comment.



Sign me in for the STH Newsletter!



This site uses Akismet for spam reduction. Minecraftservers.pw Learn how your comment data are processed.



Newsletter Receive the best of STH delivered to your inbox weekly. 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. We use a third-party service to manage subscriptions. This allows you to unsubscribe at your convenience.


Website: https://minecraftservers.pw/
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.