In this tenth part of the series, we will configure the VMware ESXi servers to connect to the Openfiler storage and access the NFS and iSCSI volumes. We will create the NFS datastore for storing ISO images and will create two iSCSI based VMFS datastores for hosting virtual machines.
We will be creating a VMkernel port group on both the ESXi servers and assign it IP address from the IP range 10.100.2.0. Next we will create software iSCSI adapters and configure the Openfiler iSCSI Target server IP address 10.100.2.22 and discover the LUNs exposed to the ESXi servers.
Open any web browser and enter the https://esxi01.virtshinobi.local or the IP address https://10.100.1.24 to access the ESXi host web management interface. Enter username as root and password and click on Login.

Click on Networking, then the Virtual Switches tab and click on Add standard virtual switch.

Enter Storage as the vSwitch name and select vmnic2 from the drop down list for Uplink 1. Expand the security section, select Accept for Promiscuous mode and Forged Transmits under Security settings and click on Add.

Click on VMkernel NICs tab and click on Add VMkernel NIC.

In the New port group field enter iSCSI as the name of the port group, from Virtual switch drop down menu select Storage. For IPv4 settings, select Static and enter the IP address as 10.100.2.23 and Subnet mask as 255.255.255.0. Click on Create to create the VMKernel NIC.

Next we will be configuring the software iSCSI adapters on the ESXi hosts. Click on the Storage, Adapters tab and then click on Software iSCSI.

Select Enabled, enter ESXi01 for the Alias and click on Add port binding.

Click on vmk2, the VMkernel NIC configured for the iSCSI port group and click Select.

Scroll down and click on Add dynamic target. Enter the IP address 10.100.2.22 for the Openfiler storage and click on Save configuration.

Go to Devices tab and click on Rescan to scan for the new devices.

Click on Datastores tab and click New Datastore.

Select Create new VMFS datastore and click Next.

Enter name for the datastore iSCSI_DS01, select the first disk and click Next to continue.

Leave the defaults to Use full disk and VMFS 6 and click Next to continue.

Review the summary and click Finish.

Accept the warning to erase the disk and click Yes to continue.

Wait for the task to complete and after some time you can see the new datastore.

Follow the same process to create the second datastore and name it iSCSI_DS02.

Next we will configure the NFS datastore to be used as the ISO datastore. Click on New datastore.

Select Mount NFS datastore and click Next.

Enter the name for the NFS datastore as NFS_ISO, enter the Openfiler IP address for NFS Server as 10.100.2.22, NFS Share as /mnt/nfs/nfs01/iso/ and select NFS3. Click Next.

Click Finish to create the NFS datastore.


Configure the second ESXi host following this article. Regarding the iSCSI datastores, once you have configured the iSCSI settings on the ESXi host, just do the rescan for the new datastores and they should be visible on the storage section.

Discover more from VirtShinobi.blog
Subscribe to get the latest posts sent to your email.







