This is meant as a walk through for setting up a small lab at home with access to the internet via your home’s residential ISP provider. The network has only one lan and either a DSL or Cable modem link
A few hints:
Use a machine, desktop or otherwise, with Virtualisation features ENABLED. If it is disabled, enable it via BIOS
I named this server esxhost
Install the vSphere client elsewhere as it will be used sparingly. You can use your laptop or desktop as you prefer.
Download the vCenter 5.5 appliance in ovf format and its components from http://www.vmware.com
File > Deploy OVF Template and point to your downloaded OVF file. You can perform the next step in parallel to save time.
Click on your physical ESX host, right click and select “New Virtual Machine” and configure your VM guest to have the following minimum specs.
· Edit settings before installing and make sure to enable the 4th option, use Intel VT-x virtualisation is selected
I used FreeNAS but you can use anything you want. The important features are iSCSI and NFS
The document source that I used is from this link. A couple of items of note:
Log into your nested ESXi server from the command line and run the following command:
esxcli software vib install -v http://download3.vmware.com/software/vmw-tools/esxi_tools_for_guests/esx-tools-for-esxi-9.7.0-0.0.00000.i386.vib -f
You may want to check for the latest version over here: https://labs.vmware.com/flings/vmware-tools-for-nested-esxi
If you do not have a DNS on your local network, you will need to modify the /etc/hosts file on your esx01 box. The alternative is to only use IPs for everything. So here is my sample hosts file additions:
192.168.0.249 esxhost.marafa.vm esxhost
192.168.0.248 esx01.marafa.vm esx01
192.168.0.247 esx02.marafa.vm esx02
192.168.0.246 vc.marafa.vm vc
192.168.0.245 freenas.marafa.vm freenas
Point your browser to the admin view of your vcenter. Get the ip from the console on your vcenter and the port is 5480. Login with root/vmware. Accept the EULA, Configure with default settings and finally click “Start” and hurry up and wait
The next step is to configure NTP. I use 0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org
The penultimate step is to configure the network. Go to Network > Address and change “From DHCP” to Static and configure your IPv4 settings. Note you will need to put the new URL/ip into your browser to continue
The final step is to regenerate the SSL certificate. That one is at Admin / “Certificate regeneration enabled”. Reboot for the SSL certs to take effect
Ssh into your VC and configure /etc/hosts for your machines
Now that your vCenter is up and running and configured with a static ip. Browse over to the vsphere web client on (port:9443) and you will find the login screen. Just below the login prompt is a link to the browser plugin to open the console in your browser. Install the plugin first, restart your browser then use the credentials to login.
And finally, continue with the below steps.
Add the physical bare metal ESX host to the vCenter. You should see your physical host and the vCenter, ESX01 and the FreeNAS guests.
Cloning your ESX server may be faster but it might also be faster to install your second (esx02) server from scratch to avoid duplicating datastore id, uuid, sid, mac address and ip.
However, if you wish to continue with the cloning ...
Now that you have vCenter up and running, use it to clone your Nested ESXi server and configure it but before you do that, read this http://www.virtuallyghetto.com/2013/12/how-to-properly-clone-nested-esxi-vm.html Pay particular attention to the MAC address section of that document
Then power off your ESX guest and make sure the Guest OS Version says “VMware ESXi 5.x” http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1011387
After the cloning is complete ensure the following is reconfigured:
Right click on the host and select “Settings” / VM Startup/Shutdown and make sure the VC is always first to come up as it takes quite a bit of time. Make your NAS device start up second and finally your ESXi servers
In vCenter, create a cluster and add your 2 VM guests: ESX01 and ESX02
It took me a long time to discover where in the new Virtual Center 5.5 to create a datastore so I am recording it here for posterity.
Go to Home/Datastores/Related Objects/Datastores
click the "Create a New Datastore" button and you will get the following picture
Add a 2nd NIC to vSwitch0 this will carry the management traffic for the cluster. Go to the virtual ESX host in the virtual cluster and click on Manage/Networking/Virtual Switches then click on the 3rd icon "Manage Physical Network Adapaters for vSwitch0" then click on the + sign
So now we will utilise the iSCSI that we set up early on. We go back to the nested ESX then Manage/Storage/Storage Adapters and click on the iSCSI Software Adapater. Go to Targets and then click the "Add" button. Enter the FQDN of the iSCSI server. Make sure that the hostname is resolvable. The rescan all. Your end result should look similar to the picture below.
Do this for each host in the Virtual Cluster.
So now that we have one shared datastore, we are still getting warning messages. This VMware KB gives directions on disabling the error message "The number of heartbeat datastores for host is 1, which is less than required: 2"
Right click on the Virtual Cluster and select Settings. Then turn on DRS
Now that we have configued the nested ESX HA Cluster, we test it out with a VM. I will be using this one called CirrOS a cloud test VM
· http://www.yellow-bricks.com/2012/06/12/creating-a-nested-lab/
· http://doc.freenas.org/index.php/ISCSI
· http://pawellakomski.pl/blog/definite-guide-to-iscsi-with-freenas-on-esxi-part-2/
· http://www.virtuallyghetto.com/2013/12/how-to-properly-clone-nested-esxi-vm.html
Comments
notes
from: http://www.virtuallyghetto.com/2012/08/how-to-enable-nested-esxi-other.html
For proper networking connectivity, also ensure that either your standard vSwitch or Distributed Virtual Switch has both promiscuous mode and forged transmit enabled either globally on the portgroup or distributed portgroup your nested ESXi hosts are connected to.
from: http://www.virtuallyghetto.com/2012/08/how-to-enable-nested-esxi-other.html
enable hw virtualisation
add vhv.enable = “true” to /etc/vmware/config of your Physical ESXi 5.1 host
from:http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docT...
esxcfg-advcfg –s 1 /LVM/EnableResignature
from: http://www.yellow-bricks.com/2008/12/11/enableresignature-andor-disallow...
resignature all datastores in the cluster
echo 1 > /proc/vmware/config/LVM/EnableResignature
buying? find a cpu here
buying? find a cpu here