Tag: Hyper-V

Small Home Lab Server

Small Home Lab Server

I have seen numerous posts on Reddit’s Home Lab subreddit from users looking for a small, quiet, low power home lab server. Well folks, this is the machine for you. Be aware, this machine is rather pricey. For the last year or so, my primary home lab goal was to consolidate all of my home lab resources into this lovely little box. This has now changed as I am back to expanding my lab. Please see my home lab rebuild post, Homelab Rebuild – Part 1 – Intro
 
This system is very quiet and sips around 50-60 watts of electricity. To top it off, this machine seems to handle anything and everything that I throw at it. The machine I purchased was a Supermicro SYS-5028D-TN4T case and a Supermicro X10SDV-TLN4F motherboard.
 

Specs

CPURAMHard DrivesSSDsOS
Intel Xeon-D 154132GB4x2TB Hard Drives2x512GB SSDsWindows 2012
 
The CPU, a Xeon-D 1541, on the Supermicro X10SDV-TLN4F motherboard is soldered on. What this means is that it is not up-gradable or changeable. At the time, I chose to only outfit it with 32GB of RAM. The system is capable of supporting up to 128GB of RAM. That being said, DDR4 2133 ECC is relatively expensive. The kit I went with was the Kingston ValueRAM KVR21E15D8K/32I – this included 2x16GB sticks of RAM. I already had all of the drives I was going to use for the time being. My boot drive is a 512GB Samsung SSD, with a second identical SSDs for some small VMs. I have 2x2tb drives for my BlueIris setup and 2x2tb for my backups.

 

Inside small Supermicro Home Lab Server

Inside Supermicro Home Lab Server

 Performance

At first, I was rather skeptical if this chip would actually handle things like, Plex, BlueIris, ManageEngine, Untangle and all the other applications that I was running. I was coming from a multiple R710s and other, larger, more powerful systems.
Supermicro Home Lab Server Xeon D

Intel Xeon D 1541 Specs

 The Xeon-D 1541, surprisingly, packs quite a punch. I have had no trouble with this machine running all of my applications. The only time this system balked at me was when I initially converted over to BlueIris. BlueIris is a great piece of software, however, if not configured properly, it is a bit of a resource hog.

 

Downsides

As an OS on this server, I initially wanted to go with ESXi. I am, after all, a VMWare kind of guy. However, this machine has an on board RAID controller. The on board Intel RAID controller is just software RAID. It will not pass through to ESXi and ESXi will not see anything attached to it. Given the cost of the machine, explained below, I decided not to purchase an additional RAID card at the time. Plus, I wanted to use it as an opportunity to learn something new. I opted to install Windows Server 2012 and configure Hyper-V. This was something very new to me. I have only dabbled with Hyper-V in the past. Most of the environments I work with are VMWare based.  So far, it has worked out very well.

Cost

Cost wise, this system is not for the faint of heart. The case/motherboard combo cost $1,224.99, the RAM cost 297.99 and shipping  cost me $36.84, all for a wopping total of $1,559.82. This price did not include any drives. I saved a few bucks because I already had the 4 drives to stick in the unit, plus two additional 512GB SSDs. If you have almost $1,600 to spend, and you want a very quiet, low power, powerful home server, this is the machine I would go with. I’ve been running it for almost a year and it has been rock solid.

Please feel free to check out some of my latest blog posts or my about me page to learn more!

Permanent link to this article: https://achubbard.com/2018/03/26/small-home-lab-server/

Installing Untangle on Hyper-V

Background

Over the years I have had numerous different types of firewalls and UTMs in my home lab. For a while, I ran an ASA, then migrated to pfSense and soon after that I went over the a Ubiquiti USG-Pro. Looking for my next challenge, I stumbled across Untangle. Although I had heard of Untangle before I had never used it. I figured I would give it a try. Untangle has a home use version available for $50 per year. I purchased a subscription. So far, it has been a fairly decent application. I have been extremely happy with it. For $50 you get Untangle and most of their premium plugins. I thought it was a great deal.

To download and/or purchase Untangle at Home Please click the link below

Untangle at Home

The consumer can download Untangle in a couple of difference forms. ISO 32/64bit, Firmware or as a Virtual Appliance. I thought, great, I can download Untangle, spin up a VM and be on my way. As it turns out, Untangle only provides their appliance as an OVA. This is only supported by VMWare. Here in lies my issue, I am running Hyper-V. I was determined to get it this working either way. Untangle will install on Hyper-V, they just do not provide the virtual appliance.

Determination

Getting Untangle to work on Hyper-V took me some time. I ran into numerous configuration issues along the way. Almost to the point where I gave up on the whole project. However, I was fairly determined to make it work. My background is in ESXi and not Hyper-V so that was where most of my learning curve came from. For me, the biggest hangup was configuring the virtual switch for the WAN. Whatever my issue was, I could not get it to function. Hopefully my blog/tutorial post will help someone get their Untangle instance setup on Hyper-V

Virtual Switch Configuration

Prior to creating a new virtual machine for your Untangle install, open up the Hyper-V Management Console and create 2 virtual switches. The Virtual Switch Manager will help you do this. One will be for the LAN connection, the other will be for the WAN connection. 

WAN Configuration

We will start with the “External” or the WAN switch first. On your physical host, this is where you will plug your ISP’s modem into.

Create your virtual switch. Give it a name that indicates it’s use, so in this case, mine is simply, “WAN”. From the drop down menu under the “External Network” radio button, select the physical adapter that you will use. Be sure to un-check “Allow management operating system to share this network adapter” – this will prevent your host from trying to use it.

 

LAN Configuration

Repeat the virtual switch creation process again, only this time, select the physical network adapter on your host that you will be connecting to your LAN. Select “External” for this switch too. Be sure to check off “Allow management operating system to share this adapter” – this will allow your host to share LAN access with this VM.

Virtual Machine Creation and Specs

Create a new virtual machine. If you need help creating a virtual machine, please see my post titled “CentOS 7 Minimal Installation on Hyper-V”or click on the link to take you there. The only difference with this virtual machine will be the specs. Here is what I have chosen for my install:

Memory: 6gb

Processor: 2 Virtual Processors

Hard Drive: 40gb

Network Adapters: 2 – 1 for LAN, 1 for WAN

Untangle Installation

Once your VM has booted, you will see the “Untangle Installer Boot Menu” – I used the graphical install option

Select your language

Pick your location

Choose your keyboard type

Untangle will show you a system summary before beginning it’s installation process

To continue with the installation, select “yes” to format your VHD.

Write the changes to disk

Untangle will continue it’s base install. This process takes a little while, you may want to go make yourself a coffee and come back.

Untangle has now completed it’s long installation, click on continue and the VM will reboot.

Finalization

With Untangle on Hyper-V I have found that it sometimes has the tendency to appear to be hung up on this spot. Don’t worry though, let it sit and it will come right up. It is not stuck.

When the VM boots up and launches the OS, you will be prompted to go through the initial setup phase. This is fairly straight forward. At this point, you have now installed Untangle on Hyper-V.

I hope this tutorial helps you understand how to get Untangle installed on Hyper-V. It is a fairly straight forward process. Although I ran into some issues initially because I had never done it before.

Permanent link to this article: https://achubbard.com/2018/02/01/installing-untangle-hyper-v/

CentOS 7 Minimal Installation on Hyper-V

CentOS Minimal Installation Tutorial

This tutorial will show you how to install CentOS minimal on a Hyper-V virtual machine. We will also focus on getting network connectivity.

Before we begin this tutorial, please head over to centos.org and grab a copy of the latest ISO of CentOS Minimal, link below.

Download Centos

Creating the virtual machine:

CentOS Download

Once you’ve downloaded your ISO, on your server or workstation running Hyper-V, launch the Hyper-V management console.

Hyper-V Management

Within the management console, right click on your server, and select “New” and then “Virtual Machine”

New VM - Hyper-V

Give your new VM a name and instruct Hyper-V on where to store the config files.

Hyper-V Name and Location VM

Select the amount of memory you want your virtual machine to have. In my case, I have chosen to give mine 1024mb or 1gig.

Hyper-V Memory

Pick your network connection (this is your virtual switch) and click “next”

VM Lan

Once you’ve assigned your new VM a network connection, you need to create a virtual hard disk for it. Select “Create Virtual Hard Disk” from the menu, give it a name, select the location you wish to save it in and the size.

Create VHD Hyper-V

Now we must tell Hyper-V where to find the CentOS ISO that we downloaded. Select “Install an operating system from a boot CD/DVD-ROM” pick the “Image File (.iso)” option. Click on “Browse” and locate the ISO. Then click “Next”

Select ISO File

Finally a summary page will be displayed. This will tell you all of the options that you selected for your virtual machine. At this step, please click on “Finish.” Clicking “Finish” will bring you back to the Hyper-V management console.

Hyper-V Summary

In the Hyper-V management console, find your newly created virtual machine, select it and right click. Click on the “Connect” option that appears.

Hyper-V Connect

Go ahead and click on the green power button to fire up your VM.

Hyper-V Connect

Installing CentOS on your Virtual Machine

Your virtual machine will now begin to read the ISO inserted into it’s virtual optical drive. Using the arrows on your keyboard, highlight the “Install CentOS 7” and hit the enter key.

CentOS ISO - Install

Select your language. In my case, I left it as the default of English. Then click continue.

CentOS Pick Language

Select the disk on which you wish to install CentOS. I typically allow CentOS to use the automatic partitioning feature. Then click “Done”

CentOS Disk Install

During the installation, you are asked to set a root password and/or create a user. I have chosen to do both. You may click each icon and assign a password and create a user. CentOS will then set these during it’s installation.

Create User Root Pass

User Pass Created

Allow CentOS to complete it’s installation process. Once this step is complete, the virtual machine will reboot. Once it has rebooted, you will see the following prompt. Here you can login with either your root user or the user you had CentOS create during installation. CentOS is now installed.

CentOSInstalled

Gaining Network Access

CentOS minimal out of the box on Hyper-V will not get an IP Address. You can verify this by logging in and issuing the command “ip addr”

CheckIP

If you get an IP address, you should see it listed under “eth0” – in this case we do not see an IP address. This is because CentOS does not go out and try to grab an IP on boot. In order to change this, you must issue the command, “vi /etc/sysconfig/network-scripts/ifcfg-eth0”CentOS Eth0 Conf

To change this config, hit the “i” key to switch vi into insert mode. Arrow down until you get to the last entry, “ONBOOT”, you must change this from “no” to “yes” – when you’ve changed this, hit the : key and type wq to write the changes and quit vi.

Change_OnBootYes

Restart your network interface by issuing the command “systemctl restart network” – CentOS will hang for a moment and then restart the network adapter.

CentOS Restart Network

Now you can issue the command “ip addr” again and you should see an IP address listed for interface eth0.

CheckIPAgain

You now have a base CentOS Minimal install with network connectivity. This will give you a great base to install Nagios. I will be writing a tutorial shortly on the installation and configuration of Nagios Core on CentOS.

 

Check out some of my other blogs on Hyper-V!

Permanent link to this article: https://achubbard.com/2018/01/31/centos-7-minimal-installation-hyper-v/