This is part two is the continuing saga of my home lab build.
Table Of Contents
This will be a multi-part post, as it covers a lot of topics…
- NUC Specs, and build information,
- Building a custom ESX image that includes drivers for the NUC’s network card and SSD,
- DHCP, PXE booting and automatic installation scripts,
- Synology configuration for VMware datastores,
- Networking, VLANs and getting it to work,
- Installing ESXi
- Any other configuration,
- Final (random) thoughts.
Building A Custom ESXi Installation Image
This is actually the easy part. I use the fantastic ESXi-Customizer-PS PowerShell script from Andreas Peetz at the v-front blog. This script does all the hard work of downloading the latest version of ESXi and saving it as a ZIP file. You can then run the script again to convert the ZIP file into an ISO and inject the required drivers.
Before you start, make sure you have installed the latest version of the VMware PowerCLI software on a Windows XP or better PC, and have downloaded Andreas script.
- Open the VMware vSphere PowerCLI window (there should be an icon on your desktop),
- Change to the folder you copied
- Run the following command…
.\ESXi-Customizer-PS.ps1 -v55 -ozip
- When complete, run this command…
.\ESXi-Customizer-PS.ps1 -vft -load sata-xahci,net-e1000e -izip [filename-downloaded-above]
- When complete, you will have a single ISO image and the downloaded ZIP file, called something like this…
This process will take a few minutes, depending on the speed of your internet link and the computer you are running this on. The ISO should contain the two drivers required for the NUCs, and will be ready to go to install on your NUCs
There are a few ways to install ESXi on to your NUCs, the way I do it is to use PXE booting. This allows me to plug in a new NUC and switch it on. Almost everything else is automated.