I chose CentOS 6.5 64bit to host Hanlon and configured this as a VM with two vNICs one normal internet facing and one
on a new private vSwitch with no uplinks, the private is where DHCP\PXE\TFTP will be setup on and where the ESXi VMs
will hopefully get built. All these sit on an nested ESXi 5.0 configured with 12GB of vRAM and access to 1TB of NFS
disk running inside VMware Fusion 6 on a Mac.
I don’t work with Linux so some of my commands might be sub optimal, I’ll try and record all I use here for reference,
and if you see anything I’m doing badly please do say.
First task to the new VM is to start VMware tools installer which mounts the correct ISO, then install the tools via
putty session (or via console).
I then changed from DHCP to static IP addressing, to note shown here are only the lines I changed or added the rest I
left as they populated by OS
My next port of call was to add a DHCP server to the VM, I chose ISC as that was recommended for Razor and appeared
simple and well documented.
Then change that to listen on eth1
And create a new config file
the config file I populate with following (altering with your ID address ranges)
Start DHCP using
Test ISC DHCP and option by creating a VM with no OS, and with only a NIC on the
private network and it should now pickup a PXE address.
It will fail as there is no PXE or TFTP server setup yet on the Hanlon server. So next step is to add a
PXE and TFTP server, so first task is to install it.
Then enable it
Add MongoDB Repo Details
Then populate new file with
And Install MongoDB
Torquebox Ruby Application Platform
Install Requisite Ruby Gems for Hanlon
Just need now to finalise the configuration of the Hanlon Microkernel, configure TFTP & iPXE.
Download iPXE & Make Files
Move new iPXE files to correct place for TFTP
Get Syslinux files and move to correct place
Bind TFTP to eth1
Test TFTP is working
If TFTP Times Out Try Disable Firewall
At this point you should be able to create a test VM bound to same Host Only
network and it should pick up a DHCP address then connect to TFTP server and
download and boot an image.