Search Posts

Building a Home server / Home LAB with HyperV 2012R2 core

Here is what I wanted to accomplish.

One server with several VM’s to run 24/7

VM’s

  1. Router ( to route between Home lab and Internet) / Linux
  2. Windows Deployment server (So I can easily deploy new VM’s into the lab). Will be running in windows server 2012R2. I will Buy 1 License for this. Deployment images will be done with evaluation images. This will also be my vpn server and router between LAB and Internet
  3. Plex Media Server (Same as I have now but with more Storage) with owncloud. This will be running on opensuse
  4. Client and Server VM’s to get me through the exams. Probably between 5-8 but they do not need to run at the same time and once an exam is done I will delete the VM’s. So I can create new once for the next exam.

HARDWARE

The media server will take the most of it, but only when it is streaming to multiple devices which do not happen allot. I need redundancy. I can’t afford to loose data as I will lose all my media including private videos and photos

Shopping list

  1. ProcessorIntel Core i5 4460 (€155.95)
  2. Case: Cooler Master CM Force 500 (€ 39,95)
  3. Memory: 2X Kingston ValueRAM KVR16N11/8 16GB ( will add 16 more if needed ) (€137.90)
  4. Powersupply: Corsair CX500M (€ 57,95)
  5. Harddrives: 4 X Seagate ST3000DM001 3TB (motherboard will support raid)(€372.55) and one 500GB disk I had left
  6. Motherboard: ASROCK H86 Pro4 (€ 89,95)

Total cost: (€854,25)

Harddrives and memory are the most expensive items on the list. I’m sure it can be done with other setups and be a little bit cheaper. If you created another setup then please leave a comment below this article and explain why you have chosen for your setup.

THE BUILD

I will use the 500 GB as a startup disk and install Hyper-V on this disk

The build went well and there were no issues. Here are some nice photos

 

Photo’s to come

 

INSTALLATION

The motherboard has a build in RAID (for 6 disks). For home use it is ok. First I  put the disk in RAID-5, but the writing speed was very very slow. Around 20mb/s. So I bought an extra disk and put it in RAID 10. It is now fast enough for me to use in a home environment. The lesson is never put the disks in RAID-5 when using an onboard raid controller

I have downloaded the Hyper-V core (as this is free from Microsoft). I used the program linux pendrive to put it on a USB stick as I do not have a CD-ROM installed on the server. if you do the same just make sure you select windows 8 in the list otherwise it will not boot. Put it in the server and booted it up. Installed Hyper-V on the 500 GB disk, yes I know normally you put this on a SSD drive. But I do not have any. perhaps in the future. The virtual machines and virtual disk will be placed on the RAID setup. So if the 500 GB disk fails I still have all the data. Configured the PC name and gave it a static IP address. Made sure that remote was enabled.

Now I can use it remotely and use Hyper-V manager and Server manager from my windows 8.1 PC after some tweaks in windows 8.1 as I’m using it in a workgroup environment. You can read here how to do this.

CONFIGURATION

Now that I have everything installed I need to configure Hyper-V. I want to be able to upload ISO images to the server for installation on VM’s. Like windows or Linux. I also want to be able to copy or upload Virtual disks to the server and I want to have access to the virtual machines directory on the server. in case I need to copy or move something.

like all windows 2012 servers it has got the files server role already installed. So I can start and create the share. So I need 3 share

  1. Disks
  2. Virtual Machines
  3. ISO Images (This will be on the 500 GB disk)

In Server manager go to servers and select the HyperV server. Right mouse click on the server and select computer management

right mouse click on hyperv server

 

In computer Management select shares folders and then share. Right mouse click and where in the white area and select new share. The sharing wizard starts. When browsing to the folder select the C or D drive. Right mouse click and create a new folder. Name the folder and select it then press ok. I also made the folders accessible to everyone

computer share

 

Repeat the step for all the directory’s you want and done. This is the easiest way to create and share folders on the HyperV server. You can also do this in servermanager trough the file and storage dashboard. But I wanted to show you an alternative way.

Now we configure Hyper V to use these directorys. Open hyper-V manager (right mouse click on the shyperv server in server manager and select hyperv manager) and press settings. Now point the disk and the virtual machines to the right directories

hyperv_setting

Now We upload the ISO images to the ISO directory on the server. This can be done thought the network on you client pc and I’m sure you know how to do this

hyperv_network_share

Now the server is setup and we can start create VM’s. I will explain this in other blogposts to come

5161 Total Views 2 Views Today

Leave a Comment

1 comment on Building a Home server / Home LAB with HyperV 2012R2 core

Leave a Reply