Welcome back to the series, How to setup VMware vSphere Lab in VMware Workstation.
This is the last part of the guide, where we will be installing the Shared Storage for VMWare vSphere Lab. In the previous article, we finished installing vCenter server.
As a recap, in the first part we dealt with the prerequisites and in the second, we designed the network using Virtual Network Editor. In the third, we created a template to install the necessary VM’s and in the fourth part, we installed a Domain Controller using the same template. And the fifth dealt with Installing the ESXi hosts.
In order to test the advanced features of vSphere like like vMotion, High Availability etc, the VM’s must live on shared storage.
Shared storage is basically a data store that is visible from every host of your cluster. When you install a new VM, the destination space of that VM is that shared storage. The VM’s hard disk VMDK files are stored there, together with VMX (conf files) and Swap files as well.
Every single host must see that shared storage in order to implement vMotion or HA.
There are many ways to configure that shared storage, the most commonly used one is the OpenFiler. But we will use the vCenter VM as an iSCSI target with the free edition of StarWind iSCSI SAN. You can download it from Starwindsoftware.com: http://www.starwindsoftware.com/starwind-free
It’s very easy to install and setup to implement the shared storage. I’ll first add a second virtual hard drive and another vNIC for the storage network, to my vCenter VM.
Let’s move on. First, power down the vCenter VM and Add the second vNIC which will be configured with VMnet3 (our iSCSI network). The vCenter VM should have 2 vNICs.
Then, we will add an additional disk drive to this VM.
Select SCSi as it is the recommended.
We will set up a 20GB drive.
Next up. open Computer Management. Click on Disk Management and Initialize the disk that we just added.
Now create a Simple volume of the disk and assign E drive with NTFS partition.
Now go to network manager, and rename the adapter added to ISCSI and assign an IP Address of 10.10.3.1 and subnet mask of 255.255.255.0
In the final step, we will be installing the StarWind Virtual SAN downloaded before. Do a Full installation as seen below and provide the License key when prompted for.
Start both vESXi 6 servers now, open your vSphere Web Client and connect to vCenter. Go to the storage adapters and Add software iSCSI adapter. (Click on Manage)
Now you will be to see vmhba33 in the list as seen below. Click on Targets, Add Dynamic discovery and provide iSCSI server Address as 10.10.3.1.
For now do not rescan, if prompted. First we’ll add our 2 new network adapters to the iSCSI VMkernel port.
Go and select one of the hosts in vSphere, and then select Manage> Networking > VMKernel Adapters > Add
Select VMNic2 as active adapter and VMNic3 as Unused for now as shown below. Name the VMkernel port group as iSCSI1.
Select the IP address as 10.10.3.11 and subnet mask of 255.255.255.0.
Similarly create another VMKernel port group and name it as iSCSI2 and provide the IP address of 10.10.3.12.
Once you rescan the storage adapters, you should now be able to see the identifier on the vmhba33 adapter.
Next up, you need to bind the ports. Click on Manage > Storage Adapters > Select vmhaba33 > Network Port Binding > Add
Select both as shown below.
Once done, follow the same process on the second ESXi host and give the vmkernel group iSCSI1 the IP address of 10.10.3.21 and ISCSI2 as 10.10.3.22.
Now click on Storage Devices > Rescan Storage.
The shared storage will show up as seen below.
Now go to ESXi6-01 host > Related Objects > Datastores > Add
Select the StarWind iSCSI Disk as seen above.
Select all available space.
That’s it! You now have the shared storage added to both the hosts.
I will be writing another bonus lesson continuing on the Network concepts as I believe that will help everyone better.
This is the last part of the VMWare vSphere Lab using VMWare Workstation. Links to the rest of the articles can be found below.
- What do you need to build VMWare vSphere Lab?
- The network design of VMWare vSphere lab in VMware Workstation.
- Preparing Windows Templates for VMWare vSphere Lab
- How to create the Domain Controller Virtual Machine
- Installing of Nested ESXi hosts in our VMware vSphere Lab
- Installing the vCenter Virtual Machine for VMWare vSphere Lab
- Designing the Shared Storage for VMWare vSphere Lab