In this lab we’ll configure vMotion,SAN and Fault tolerance network between two ESXi hosts,and create shared storage on FreeNAS server.
All machines from diagrams are WMWare Workstation Virtual Machines

VMWare Workstation network settings
For all above network i created Virtual networks:

Configuring vCenter Server Appliance
vCenter Server Appliance (vCSA) is preconfigured Linux virtual machine which enables administrators to manage vSphere insfrastucture,it can manage 100 hosts and 3000 Virtual Machines http://www.vmwarearena.com/2014/02/difference-between-vcenter-server.html
vCSA is .ova file and can bi imported through vSphere Client ot through VM.I imported it using VMWARE Workstation Virtual Machine,after importing and starting VM you need to configure it via WEB browser:
Type https://vCenter-IP-Address:5480
default username is root,password vmware

Accept EULA,on wizard windows click cancel


Configure Host Name and networking (Network-Address)


Click summary and launch wizard:

Click configure with default settings and click next:


Configuring FreeNAS
For FreeNAS i used VM with 2 NIC (one for management network-192.168.0.12) and another for iSCSI network (192.168.20.12),and 2 HDD’s of 10GB (mirroring),VM0 is bridged with host adapater.


Creating Volume
From two hard disks i will create one mirrored volume in UFS file system (ZFS consumes much of RAM)
From menu choose Storage-Create Volume

Select both drives,chose UFS as file systems and select mirror (for redundancy) and click add volume

Adding initiators
We configured our NAS to servers any client (ALL),on the left menu choose ISCSI,target global configuration and,on the right,click Authorized initiator



Adding portal
A portal specifies the IP address (0.0.0.0) and port number (3260) to be used for iSCSI connections,

(0.0.0.0 means that FreeNAS will listen on any interface)

Adding Target
An iSCSI target is a dedicated network-connected hard disk storage device,it refers to a storage resource located on an iSCSI server.A target combines a portal ID, allowed initiator ID, and an authentication method.

Choose from drop down menues initiator and portal we just created (1)

Adding extent
An extent is seen as the storage unit being shared,ie it’s virtualized representation of unformatted physical disk

We created extent named myextent from vol1 (2 mirrored 10-GB disks)

Adding extent to target
Click Associated Targets

and from drop-down menues choose target and extent we created earlier

Now,enable iSCSI service and we’re done with configuring FreeNAS

Adding ESXi hosts to vCenter Appliance
Each ESXi host has 5 NIC’s assigned,one for management network (192.168.0.0),2 for iSCSi network (192.168.20.0),
one for vMotion (192.168.30.0) and one for Fault Tolerance (192.168.40.)

From Web Browser type https://vCenter-Appliance-IP-Address:9443
default username is root,password vmware
Creating Datacenter and adding ESXi hosts
Datacenter organizes object (ESXi hosts) in vCenter server,on getting stated click Create Datacenter,give it’s name and click ok

Click Home icon,Dtacenters,select your Datacenter and

Click marked icon to add ESXi host to the Datacentre

Type IP adress or host name and ESXI password to add host
I added my 2 ESXi hosts (192.168.0.9,192.168.0.10)
Associating ESXi’s NIC’s to networks
All 4 NIC’s (exclusding management) need to ne associated with iSCSI,vMotion and Fault Tolerance networks

Choose one of the ESXi hosts from the Datacenter,click Networking-VMKernel Addapters-Add Host Networking (“globe” icon)

vmnic1-iSCI network (192.168.20.0)
vmnic2-vMotion network (192.168.30.0)
vmnic3-Fault Tolerance (192.168.40.0)
vmnic4 iSCSI network (192.168.20.0)-for multipathing
select VMKernel network adapter

New Standard Switch

Add adapters

add vmnic1,change label and select Virtual SAN Traffic

Obtain address automatically (VMWare Workstation’s DHCP server will assign IP address)

The same stands for vmnic 4

For vmnic 2 select vMotionn Traffic

and for vmnic 3 Fault Tollerance logging

At the end should be like this:

The same steps applies to another ESXi host
Adding iSCSI storage adapter
For our hosts to comunicate with FreeNAS storage we need to add iSCSI adapters on both hosts
Select Storage Adapters-Storage-Add new storage adapter


Click on newly created storage adapte,click network port binding click on “+” to add iSCi and iSCSi kernel adapters


Now click Targets-Dynamic Discovery-Add

Enter FreeNAS IP address

Click Static Discovery,you should see FreeNAS extent
\
Now Scan all storage adapters in order for NAS storage to be seen as storage device



Configure Round Robin multipathing (vCenter random chooses path to NAS storage)

