Creating 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 as I have x32 version of Openfiler. Select appropriate version according ISO image you have.
    Screen Shot 2012-10-07 at 15.35.40 Screen Shot 2012-10-07 at 15.36.03
  2. Name VM, such as Openfiler
    Screen Shot 2012-10-07 at 15.36.24
  3. Give at least 512MB RAM. Allocate more if possible, but as I am running this with the minimum spec, I will be allocating 512MB.
    Screen Shot 2012-10-07 at 15.36.37
  4. Select “User network address translation (NAT)” for Network Option
    Screen Shot 2012-10-07 at 15.36.45
  5. Keep the default disk size as this will be OS disk, you will not need large space.
    Screen Shot 2012-10-07 at 15.36.58
  6. Click Finish to create VM.
    Screen Shot 2012-10-07 at 15.37.06
  7. After the VM is created, Right-Click then Settings. Then Add a new hardware.
    Screen Shot 2012-10-14 at 10.53.49
  8. Add New Hard Disk, Create a New Hard Disk with the default Disk Type and give it 40GB or more. This virtual Disk will contain Data and hosts LUNs. Screen Shot 2012-10-07 at 15.37.54 Screen Shot 2012-10-07 at 15.38.01 Screen Shot 2012-10-07 at 15.38.10 Screen Shot 2012-10-07 at 15.38.25
  9. Leave the VMDK file name as the default, then click Finish to add a New virtual Hard Disk
    Screen Shot 2012-10-07 at 15.38.34
  10. Openfiler VM should have the setting similar to the one below.Screen Shot 2012-10-07 at 15.38.49

Step 9 – Installing Openfiler

  1. Power On Openfiler VM, then Start OS Installation.OpenFiler-2012-10-07-15-40-07
  2. Skip Disk Check
    OpenFiler-2012-10-07-15-42-25
  3. Click Next.
    OpenFiler-2012-10-07-15-43-53
  4. Select your Keyboard Layout
    OpenFiler-2012-10-07-15-44-04
  5. Select Manual Partition option, DO NOT Select Automatic.
    OpenFiler-2012-10-07-15-44-34
  6. Click New
    OpenFiler-2012-10-07-15-47-08
  7. Enter the following details for /boot partition, click “OK” to create a 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
    OpenFiler-2012-10-07-15-47-46
  8. Add another partition with the Following Detail for / (Root) partition.
    Mount Point : /
    File System Type : ext3
    Allowable Disk: Select only sda
    Size (MB) : 100
    Additional Size Option: Fill to maximum all allowable size
    Force to be a primary partition: Selected
    OpenFiler-2012-10-07-15-48-22
  9. Add another partition with the Following Detail for / (Root) partition.
    Mount Point : N/A
    File System Type : swap
    Allowable Disk: Select only sda
    Size (MB) : 512 (Adjust this to allocated Memory for this VM)
    Additional Size Option: Fixed size
    Force to be a primary partition: Selected
    OpenFiler-2012-10-07-15-48-59
  10. Your Partition Table looks like this. Then Next.
    OpenFiler-2012-10-07-15-49-11
  11. Click Edit to configure Static IP Address with the following detail
    IP Address: 192.168.xxx.253
    Subnet Mask: 255.255.255.0
    OpenFiler-2012-10-07-15-51-56 Screen Shot 2012-10-14 at 11.40.37
  12. Configure Default Gateway and DNS Address as follow. Then Next.
    Default Gateway : 192.168.xxx.254
    DNS : 192.168.xxx.252
    OpenFiler-2012-10-07-15-54-10
  13. Select your Time Zone.
    OpenFiler-2012-10-07-15-54-33
  14. Enter root password, you will not be using this password but just remember your password. Then Next.
    OpenFiler-2012-10-07-15-54-54
  15. Click Next to start the installation then reboot when it is done.OpenFiler-2012-10-07-15-55-13 OpenFiler-2012-10-07-15-59-00

Step 10 – Configuring Openfiler

  1. Once Openfiler is restarted, you can start aministering 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 : openfler
    Password: : password
    Screen Shot 2012-10-14 at 18.55.36
  3. Select Services, then enable NFSv3 Server and iSCSI target server as they are disabled by default
    Screen Shot 2012-10-14 at 18.56.24
    Screen Shot 2012-10-14 at 18.56.34 Screen Shot 2012-10-14 at 18.57.04
  4. You will need to create a volume group to use FNS and iSCSI, click Volumes from the menu.
    Screen Shot 2012-10-14 at 19.31.32
  5. Select 2nd Disk (should be dev/sdb)
    Screen Shot 2012-10-14 at 19.31.50
  6. Keep the setting as default then click Create.
    Screen Shot 2012-10-14 at 19.32.03
  7. Do that again, click create.
    Screen Shot 2012-10-14 at 19.32.14
  8. Verify that volumes are created.
    Screen Shot 2012-10-14 at 19.32.39
  9. From right side of the page, select Volume Group
    Screen Shot 2012-10-14 at 19.33.08
  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 2012-10-14 at 19.33.17
  11. Once a volume group is created, then you can add volumes. From the right side of page, click Add Volume
    Screen Shot 2012-10-14 at 19.33.37
  12. Scroll down and Create 1st LUN with the following detail then click Create.
    Volume Name : LUN0
    Volume Description :
    Required Space : 10000
    Filesystem : iSCSI
    Screen Shot 2012-10-14 at 19.33.59
  13. Create 2 more LUNs with the following details.
    Volume Name : LUN1
    Volume Description :
    Required Space : 10000
    Filesystem : iSCSIVolume Name : LUN2
    Volume Description :
    Required Space : 10000
    Filesystem : iSCSI
  14. Create 1 NFS Shared Volume with the Following Detail
    Volume Name : NFS
    Volume Description :
    Required Space : (Maximum by scrolling toward right edge.)
    Filesystem : XFS
    Screen Shot 2012-10-14 at 19.35.07
  15. Now you should have 4 volumes in the list
    Screen Shot 2012-10-14 at 19.35.18

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 2012-10-15 at 08.11.37
  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 2012-10-15 at 08.12.27
  3. Verify that Your NAT Network is added in the list.
    Screen Shot 2012-10-15 at 08.12.39
  4. Click Shares form Menu to create NFS Share.
    Screen Shot 2012-10-15 at 08.13.15
  5. Click Volume Group for NFS Share. In my environment it is called NFS.
    Screen Shot 2012-10-15 at 08.13.29
  6. Then enter NFS Share Name, such as “share”.
    Screen Shot 2012-10-15 at 08.13.45
  7. Now NFS share has been created.
    Screen Shot 2012-10-15 at 08.13.54
  8. Click on newly created NFS Share then click “Make Share” Screen Shot 2012-10-15 at 08.14.03
  9. Since ESXi Server requires Anonymous Access, Change Share Access Control Mode to “Public guest access” then click “Update”
    Screen Shot 2012-10-15 at 08.14.17
  10. Give RW (Read&Write) permission to NFS, then click update.Screen Shot 2012-10-15 at 08.14.33
  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.253
    Share: /mnt/vmware/nfs/share

Step 12 – Configuring iSCSI Target

  1. To configure iSCSI Target, Click Volumes
    Screen Shot 2012-10-15 at 08.14.45
  2. From the right side of page, click “iSCSI Target”
    Screen Shot 2012-10-15 at 08.14.57
  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 2012-10-15 at 08.15.02
  4. Verify that iSCSI Target is created.
    Screen Shot 2012-10-15 at 08.15.13
  5. Click on LUN Mapping from iSCSI Menu
    Screen Shot 2012-10-15 at 08.15.24
  6. 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 2012-10-15 at 08.15.31
  7. Click Map on each Volume to map LUNs to this Target.
  8. Verify that all LUNs are mapped this Target now.
    Screen Shot 2012-10-15 at 08.16.03
  9. Your iSCSI Target is ready now.

Continue to Part 5 >>>

   Send article as PDF   

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow

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

Join other followers: