FreeNAS in VMWare vSphere 5.5 Lab

Posted: September 13, 2015 in VMWare

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

Untitled46

VMWare Workstation network settings

For all above network i created Virtual networks:

Untitled

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

Untitled47

Accept EULA,on wizard windows click cancel

Untitled

Untitled2

Configure Host Name and networking (Network-Address)

Untitled3

Untitled4

Click summary and launch wizard:

Untitled5

Click configure with default settings and click next:

Untitled6

Untitled7

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.

Untitled

Untitled

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

Untitled11

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

Untitled12

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

Untitled13

Untitled14

Untitled15

Adding portal

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

Untitled16

(0.0.0.0 means that FreeNAS will listen on any interface)

Untitled

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.

Untitled17

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

Untitled18

Adding extent

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

Untitled19

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

Untitled20

Adding extent to target

Click Associated Targets

Untitled21

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

Untitled23

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

Untitled24

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.)

Untitled

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

Untitled

Click Home icon,Dtacenters,select your Datacenter and

Untitled

Click marked icon to add ESXi host to the Datacentre

Untitled

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

Untitled22

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

Untitled26

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

Untitled27

New Standard Switch

Untitled28

Add adapters

Untitled29

add  vmnic1,change label and select Virtual SAN Traffic

Untitled31

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

Untitled32

The same stands for vmnic 4

Untitled35

For vmnic 2 select vMotionn Traffic

Untitled33

and for vmnic 3 Fault Tollerance logging

Untitled34

At the end should be like this:

Untitled25

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

Untitled36

Untitled37

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

Untitled38

Untitled

Now click Targets-Dynamic Discovery-Add

Untitled39

Enter FreeNAS IP address

Untitled

Click Static Discovery,you should see FreeNAS extent

Untitled40\

Now Scan all storage adapters in order for NAS storage to be seen as storage device

Untitled41

Untitled42

Untitled43

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

Untitled44

Untitled45

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s