
The first step in my Mordor 1.0 –> Mordor 2.0 project is installing VMware ESXi on the server, which I describe in detail in this post.
As I mentioned in the project page, Mordor: My Home Server, after having a dedicated unRAID server up and running for the last year or so, I wanted to better utilize all this hardware by turning it into a mean-VM-machine.
The game plan:
- Upgrade Mordor CPU to something more VM-server-worthy.
- Install VMware ESXi Hypervisor 5.1.0 on a USB flash drive.
Sounds simple, but the devil lies in the details…
Of course, before diving into tweaking and messing around with Mordor, I made a backup of unRAID, removed the unRAID USB flash drive from Mordor, and disconnected all the NAS data HDs.
CPU Upgrade
If you take a look in the previous post about the dedicated unRAID server, you might notice that I used Intel G850 CPU, which is nice and just fine for running just unRAID, but not sufficient for a VM-machine.
So an opportunity showed itself recently, when I purchased a small desktop PC (someday to be used as a dedicated HTPC, but until then it’s a general-purpose desktop). The default spec of the HTPC consisted of some basic Intel i3 CPU, but had an optional upgrade to Intel i5-3550 (Ivy Bridge!) increase the cost only marginally, and I figured a dedicated HTPC could do with the simpler G850, so I went for the upgrade, thinking I would swap CPU’s between the server and the HTPC (both are socket LGA 1155, so what could go wrong?).
Let the swapping commence:
- Take apart the HTPC computer:
- Open the case.
-
Remove the DVD bay.
-
Unscrew the CPU fan thingies.
-
Remove the CPU fan.
-
Open the CPU cage.
-
Remove the CPU.
- 1. Open HTPC case
- 2. Remove DVD bay
- 3. Unscrew the CPU fan thingies
- 4. Remove CPU fan
- 5. Open CPU cage
- 6. Remove CPU
-
Take apart Mordor:
- Open the case.
-
Remove the fins securing the fans to the heat-sink of the Noctua NH-U12P SE2.
-
Remove the fans.
-
Unscrew the heat-sink base from the mother board (WARNING: later I realized that that was a mistake! I should have removed the heat-sink without removing the base!).
-
Remove the heat-sink (and base.. 🙁 ).
-
Remove the CPU (no pic here, it’s the same as before).
- 1. Open the case
- 2. Remove the fins securing the fans to the heat-sink
- 3. Remove the fans
- 4. Unscrew the heat-sink base from the mother board (that was a mistake)
- 5. Remove the heat-sink (and base.. 🙁 )
-
Reassemble the HTPC computer:
- Install the G850 CPU.
-
Install the fan and heat-sink.
- Power up.
- Watch as the system detects the changed CPU, boots into Windows, and reinstalls various drivers to match the changed hardware.
-
Reassemble Mordor with the new CPU:
- Install the CPU in its socket:
-
Fix the mistake I did when removing the heat sink…
I removed the heat-sink along with its base (AKA the “mounting system”), so when I tried installing it back I couldn’t get it in correctly. After several attempts, I looked up the instruction manual online and realized I should have removed the heat-sink from the mounting system.
So, with the entire thing out, I removed the heat-sink from the mounting system, installed the mounting system separately, and then installed the heat-sink on the mounting system. - After that I was able to put the fans back on, and secure them in using the fins.
- Installing Mordor CPU in its socket
- Rebuilding Mordor heat sink
- Installing Mordor CPU heat-sink back in its place
-
Power up Mordor.
- Shit. It doesn’t boot. The Mother Board beeps in pattern of 5 short beeps. Don’t know what 5 short beeps means…
-
My theory: The i5-3550 is newer than Mordor’s Mother Board (ASUS P8Z68-V Pro), so maybe the Mother Board doesn’t support it out-of-the-box (or at all?).
- Check ASUS support online and see the i5-3550 is officially supported starting BIOS version 3203.
- But what version do I have? If I can’t boot, I can’t check my version…
- Little sanity test – version 3203 was released on Feb 27 2012, and the server was purchased on Sep 2011… Errr. Why didn’t I check this before?!
- So…
-
RESWAP CPU’s to check and update BIOS 🙁
- Boot Mordor with the G850, and discover it’s running BIOS version 0501:
- Checking Mordor BIOS version during boot
- So download the latest BIOS image from the ASUS support site (version 3402), extract the ROM file from the ZIP, save it to a USB flash drive, and plug the flash drive to Mordor.
- Boot Mordor into BIOS setup, and launch the EZ Flash Utility:
- Launching the BIOS EZ Flash utility to update BIOS
- Backup the current BIOS image (just in case…):
- Backing up the old BIOS before update
- Select the 3402 ROM file and load it.
- a) Confirm reading the update file
- b) Confirm updating the BIOS
- c) Let it process
- d) Confirm resetting Mordor
- e) Watch the BIOS updating itself (UPS!)
-
Behold the updated BIOS! (after several rounds of rebooting)
- Checking the updated BIOS version during Mordor boot
- Now I can change back from G850:
to the i5-3550:- Mordor BIOS utility with G850 CPU after BIOS update
- Mordor BIOS utility with i5-3550 CPU after BIOS update
- Enable virtualization:
- Enabling virtualization in Mordor BIOS after upgrade
- Hurray! 🙂
- Boot Mordor with the G850, and discover it’s running BIOS version 0501:
OK, that was harder than it should have been…
Hope the next part goes smoother!
Installing VMware ESXi 5.1.0 Hypervisor
Now that Mordor has new shiny hardware, and virtualization-ready CPU, it’s time to install the host software.
I am aware that there are plenty of virtualization solution around other than ESXi (e.g. Xen Server, Windows Hyper-V just to name 2), and I must admit I didn’t fully research all possible options before going with VMware ESXi.
The main reason I decided to go for it is the availability of a very detailed and thorough “testimonial” from the unRAID Server Community user Johnm about his virtualized unRAID server (ATLAS).
My steps:
- Prerequisite: Make sure I have enough USB flash drives available for everything (e.g. unRAID boot device, ESXi boot device, ESXi installation media).
- Download the installation ISO of vSphere Hypervisor from the VMware website.
- Create installation media from the ISO (e.g. burn it to CD). I used UNetBootin to create a bootable USB flash drive from the ISO (why waste a CD? 🙂 ).
- Boot the server from the ESXi installation flash drive:
- Booting Mordor from ESXi installation media on USB
- Boot into the ESXi installer:
- Booting Mordor into the ESXi installer
- The installer loads and does stuff:
- Waiting for the ESXi installer to load
- Waiting for the ESXi installer to load
- But then it fails miserably, crying about No Network Adapters:
- ESXi installer fails upon not detecting any network adapters
-
WTF 🙁
- OK, I know the server has a network adapter, as I’ve been using it for the last year…
-
I know it’s an onboard NIC. The ASUS P8Z68-V Pro has a Intel 82579 network adapter.
- But this NIC is not supported by ESXi 5, according to the VMware I/O Compatibility Guide.
- Tried some PCI NICs I found scattered around the house – no luck.
- Looking for a cheap NIC to buy ASAP, but can’t find NICs in common-vendor catalogs (KSP, Ivory, Bug, ..) that appear on the compatibility guide 🙁
- With some help from a friend (h/t erang), located an Intel NIC (EXPI9301CTBLK) sold by WellCom, that has the Intel 82574L chipset, which appears on the compatibility guide!
- So I ordered one, and waited two days for the delivery.
- The NIC is PCI-E, so I installed it in a randomly selected free PCI-E slot (PCIe_2).
- But I got the same error during ESXi installation…
- So I tried booting random stuff (from my multi-OS-USB-Bootable-Flash-Drive), and noted they detected the onboard NIC, but not the new one.
- So I tried moving the new NIC to PCIe_1, and voilà – all well.
-
Now I could go through the entire installation process of ESXi, with the SanDisk Cruzer Blade 4GB as the target device.
-
After completing host installation I set the home router DHCP to assign a static IP address to the Mordor MAC address:
- Mordor ESXi host after successfully completing installation
-
On a desktop PC, install vSphere Client, and login to ESXi server.
- There’s not much that can be done from the host console.
-
Most management of the host machine is done via the vSphere client.
-
Configure ESXi server licensing (even for the free version):
- In vSphere, navigate to the Configuration tab of the ESXi server, select Licensed Features, open the Assign License dialog by clicking the Edit… link:
- vSphere Assign License dialog
- Select Assign a new license key to this host and enter the free license key received when registering to download the hypervisor:
- Entering vSphere license key
- Confirm and savor your licensed status:
- Verify licensed status in vSphere
- In vSphere, navigate to the Configuration tab of the ESXi server, select Licensed Features, open the Assign License dialog by clicking the Edit… link:
-
Here’s a screenshot of the vSphere summary page after installation is complete, license assigned, and before setting up datastores and virtual machines:
- vSphere summary after completing installation
-
Set up datastores:
- Shutdown the ESXi server (from vSphere client), and connect the intended ESXi datastore drives (not the NAS drives!). I plan to use, for now at least, my 64GB Patriot SSD, and my 250GB Maxtor mechanical drive.
-
Power up and verify the drives are detected by ESXi:
- In vSphere, navigate to the Configuration tab of the ESXi server, select Storage, and activate the Devices view.
-
There should be as many entries in the Devices list as physical drives connected.
-
Initially, I had trouble with this:
- The ASUS P8Z68-V Pro mother board has 2 onboard SATA controllers – a 6-port Intel controller (Cougar Point 6 port), and a 2-port Marvell Technology Group Ltd. 88SE9172 controller.
-
Unfortunately, I could not get ESXi 5.1.0 to successfully detect drives on the Marvell controller (which is a shame, as both ports are 6Gb/s), so I had to figure this out, and revert to using only the Intel Cougar 6 controller (which has 4 3Gb/s ports and 2 6Gbp/s ports).
- This also caused issues later on, when I wanted to use VT-d DirectPass I/O passthrough to allocate the NAS drives to the unRAID VM, but I will not go into it here and now.
- Once the datastore drives are detected, proceed to configure them as datastore drives, by launching the Add Storage wizard by clicking the Add Storage… link when in the Datastore view.
- a) Choose Disk/LUN
- b) Select a device to add
- c) Select VMFS-5 File System
- d) Confirm the layout selection
- e) Enter a name for the datastore (I chose a scheme consisting of the manufacture-capacity-type)
- f) Format to the maximum available space
- g) Review summary and confirm
- h) Repeat the process for all intended datastore disks
- That’s it. The ESXi server is ready for virtual machines!
Summary
This wraps up this already quite long post about just installing VMware ESXi on Mordor, and getting it ready for VMs.
The post covered all the way from bare-metal hardware (and hardware upgrade adventures), through ESXi installation, up to a fully configured ESXi server with datastore disks ready for virtual machines.
From here you can go back to the Mordor project page, or move on to read about setting up unRAID as a VM on Mordor ESXi.
November 3, 2012
So there is where my marriage went!! 😉
January 24, 2014
Nice write-up. I appreciate the photos too.
January 24, 2014
Thanks 🙂