Creating vSphere 5.5 Virtual Lab Environment – Part 4

Step 8 – Creating Openfiler VM

  1. Create a new VM for Openfiler. VMware Workstation does not automatically detect OS for Openfiler. Select Other Linux 2.6 kernel.
    Screen Shot 2014-08-23 at 08.43.08
    Screen Shot 2014-08-23 at 08.43.16
  2. Name VM, such as Openfiler
    Screen Shot 2014-08-23 at 08.43.23
  3. Give at least 1GBB RAM.
    Screen Shot 2014-08-23 at 08.43.29
    Screen Shot 2014-08-23 at 08.43.40
  4. Select “Use network address translation (NAT)” for Network Option.
    Screen Shot 2014-08-21 at 18.01.20
  5. Keep the default disk size as this will be OS disk, you will not need large space.
    Screen Shot 2014-08-23 at 08.44.14
  6. Click Finish to create VM, but do not power on this VM, yet.
    Screen Shot 2014-08-23 at 08.44.27
  7. After the VM is created, Right-Click then Settings. Then Add a new hardware.
    Screen Shot 2014-08-23 at 08.44.33  Screen Shot 2014-08-23 at 08.44.48
  8. Add New Hard Disk, Create a New Hard Disk with the default Disk Type and give it 50GB or more. This virtual Disk will contain Data and hosts LUNs.
    Screen Shot 2014-08-23 at 08.44.55
    Screen Shot 2014-08-23 at 08.45.02
    Screen Shot 2014-08-23 at 08.45.08
    Screen Shot 2014-08-23 at 08.45.14
  9. Leave the VMDK file name as the default, then click Finish to add a New virtual Hard Disk
    Screen Shot 2014-08-23 at 08.45.21
  10. Openfiler VM should have the setting similar to the one below.
    Screen Shot 2014-08-23 at 08.45.29

Step 9 – Installing Openfiler

  1. Power On Openfiler VM, then Start OS Installation.
    OpenFiler-2014-08-18-10-12-55
  2. Click Next.
    OpenFiler-2014-08-18-10-16-21
  3. Select your Keyboard Layout, then click Next.
    OpenFiler-2014-08-18-10-16-38
  4. When you are asked for partitions, select “Create Custom Layout” from the drop down list. then click Next.
    OpenFiler-2014-08-18-10-17-15
    OpenFiler-2014-08-18-10-17-42
  5. You will be creating partitions manually. Click New.
    OpenFiler-2014-08-18-10-18-02
  6. Enter the following details for /boot partition.
    Mount Point : /boot
    File System Type : ext3
    Allowable Disk: Select only sda
    Size (MB) : 100
    Additional Size Option: Fixed Size
    Force to be a primary partition: Selected
    Screen Shot 2014-08-27 at 09.06.55
  7. Click “OK” to create a partition
  8. Add another partition with the Following Detail for / (Root) partition.
    Mount Point : /
    File System Type : ext3
    Allowable Disk: Select only sda
    Size (MB) : 512
    Additional Size Option: Fill to maximum all allowable size
    Force to be a primary partition: Selected
    Screen Shot 2014-09-01 at 12.27.09
  9. Add another partition with the Following Detail for Swap partition.
    Mount Point : N/A
    File System Type : swap
    Allowable Disk: Select only sda
    Size (MB) : 1024 (Adjust this to allocated Memory for this VM)
    Additional Size Option: Fixed size
    Force to be a primary partition: Selected
    Screen Shot 2014-09-01 at 12.28.14
  10. Your Partition Table should look like below. Then Next.
    Openfiler-2014-08-19-17-28-28
  11. Leave Default Bootloader Option and then click Next.
    OpenFiler-2014-08-18-10-27-45
  12. Click Edit to configure Static IP Address with the following detail IP Address: 192.168.xxx.110
    Prefix: 24
    OpenFiler-2014-08-18-10-28-10Screen Shot 2014-08-27 at 09.07.18
  13. Configure Default Gateway and DNS Address as follow. Then Next.
    Default Gateway : 192.168.xxx.2
    DNS : 192.168.xxx.252
    Openfiler-2014-08-19-17-29-21
  14. Select your Time Zone. And then Click Next.
    Openfiler-2014-08-19-17-29-33
  15. Enter root password, you will not be using this password but just remember your password. Then Next.
    OpenFiler-2014-08-18-10-30-12
  16. Click Next to start the installation then reboot when it is done.
    Openfiler-2014-08-19-17-29-48
    Openfiler-2014-08-19-17-32-21
  17. You have successfully installed Openfiler.
    Openfiler-2014-08-19-17-34-06

Step 10 – Configuring Openfiler

  1. Once Openfiler is restarted, you can start administering Openfiler via Web Interface. To access web interface, type https://<ip_Address>:446 in Web Browser. You should be able to access this via a host web browser.
  2. Login to Openfiler using the default username and password.
    Username : openfiler
    Password: : password
    Screen Shot 2014-08-27 at 09.07.25
    Screen Shot 2014-08-27 at 09.07.31
  3. Select Services, then enable NFSv3 Server and iSCSI target server as they are disabled by default  and make sure that the services are started.
    Screen Shot 2014-08-27 at 09.07.36
    Screen Shot 2014-08-27 at 09.07.45
    Screen Shot 2014-08-27 at 09.07.50Screen Shot 2014-08-27 at 09.07.58
    Screen Shot 2014-08-27 at 09.08.03
  4. You will need to create a volume group to use NFS and iSCSI, click Volumes from the menu.
    Screen Shot 2014-08-27 at 09.08.08
  5. Select 2nd Disk (should be dev/sdb)
    Screen Shot 2014-08-27 at 09.08.21 Screen Shot 2014-08-27 at 09.08.25
  6. Keep the setting as default then click Create.
    Screen Shot 2014-08-27 at 09.08.34
  7. Then Create Logical Partition, by selecting Logical in Mode option and then click Create.
    Screen Shot 2014-08-27 at 09.08.44
    Screen Shot 2014-08-27 at 09.08.48
  8. Verify that volumes are created.
    Screen Shot 2014-08-27 at 09.08.57
    Screen Shot 2014-08-27 at 09.09.02
  9. From right side of the page, select Volume Group
    Screen Shot 2014-08-27 at 09.09.30
  10. Create a new Volume Group and name it such as VMware, make sure that volume that you created in the previous step is selected.
    Screen Shot 2014-08-27 at 09.09.15
    Screen Shot 2014-08-27 at 09.09.24
  11. Once a volume group is created, then you can add volumes. From the right side of page, click Add Volume.
    Screen Shot 2014-08-27 at 09.09.30
  12. Scroll down and Create 1st LUN with the following detail then click Create.
    Volume Name : LUN0
    Volume Description :
    Required Space : 10000
    Filesystem : Block (iSCSI, FC, etc)
    Screen Shot 2014-08-27 at 09.09.35
  13. Create 2 more LUNs with the following details.
    Volume Name : LUN1
    Volume Description :
    Required Space : 10000
    Filesystem : Block (iSCSI, FC, etc)
  14. Volume Name : LUN2
    Volume Description :
    Required Space : 10000
    Filesystem : Block (iSCSI, FC, etc)
  15. Create 1 NFS Shared Volume with the Following Detail
    Volume Name : NFS
    Volume Description :
    Required Space : 1000
    Filesystem : XFS
    Screen Shot 2014-08-27 at 09.09.52
  16. Now you should have 4 volumes in the list as below.  Screen Shot 2014-08-27 at 09.10.01

Step 11 – Configuring NFS Share

  1. To configure NFS Share, you will need to define IP Address Range. Click System from Menu to define IP Address Range that are allowed to access NFS Share.
    Screen Shot 2014-08-27 at 09.10.07
  2. Scroll down and enter IP Address for your NAT network.
    Name : 192.168.xxx.0/24
    Network/Host : 192.168.xxx.0
    Netmask : 255.255.255.0
    Type : Share
    Screen Shot 2014-08-27 at 09.10.12
  3. Verify that Your NAT Network is added in the list.
    Screen Shot 2014-08-27 at 09.10.18
  4. Click Shares form Menu to create NFS Share.
    Screen Shot 2014-09-01 at 16.07.56
  5. Click Volume Group for NFS Share. In my environment it is called NFS.
    Screen Shot 2014-09-01 at 16.08.07
  6. Then enter NFS Share Name, such as “Share”.
    Screen Shot 2014-09-01 at 16.08.17
  7. Now NFS share has been created
    Screen Shot 2014-09-01 at 16.08.23
  8. Click on newly created NFS Share then click “Make Share”
    Screen Shot 2014-09-01 at 16.08.28
  9. Since ESXi Server requires Anonymous Access, Change Share Access Control Mode to “Public guest access” then click “Update”
    Screen Shot 2014-09-01 at 16.08.33
  10. Give RW (Read&Write) permission to NFS, then click update
    Screen Shot 2014-09-01 at 16.08.41
  11. Now NFS Share has been created. You can mount this share from ESXi Server with the following details now.
    NFS Server: 192.168.xxx.110
    Share: /mnt/vmware/nfs/Share

Step 12 – Configuring iSCSI Target

  1. To configure iSCSI Target, Click Volumes
    Screen Shot 2014-09-01 at 16.08.45
  2. From the right side of page, click “iSCSI Target”
    Screen Shot 2014-09-01 at 16.08.51
  3. Since there is no iSCSI Target exist, you need to create one. Click “Add” to create a new iSCSI Target with the default (Random) IQN Name.
    Screen Shot 2014-09-01 at 16.08.56
  4. Click on LUN Mapping from iSCSI Menu
    Screen Shot 2014-09-01 at 16.09.01
  5. There is no LUNs mapped to this Target yet, so you will need to map all iSCSI volumes that you have created in the previous step to this Target.
    Screen Shot 2014-09-01 at 16.09.10
  6. Click Map on each Volume to map LUNs to this Target.
    Screen Shot 2014-09-01 at 16.09.17
  7. Verify that all LUNs are mapped this Target now.
    Screen Shot 2014-09-01 at 16.09.31
  8. Click Network ACL from iSCSI Menu.
    Screen Shot 2014-09-01 at 16.09.38
  9. Change Access to allow for your NAT Network. and then click update.
    Screen Shot 2014-09-01 at 16.09.43
    Screen Shot 2014-09-01 at 16.09.47
  10. Your iSCSI Target is ready now.

Continue to Part 5 >>>

<<< Go back to Part 3

 

www.pdf24.org    Send article as PDF   

Leave a Reply

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: