Step 8 – Creating Openfiler VM
- 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.
- Name VM, such as Openfiler
- Give at least 512MB RAM. Allocate more if possible, but as I am running this with the minimum spec, I will be allocating 512MB.
- Select “User network address translation (NAT)” for Network Option
- Keep the default disk size as this will be OS disk, you will not need large space.
- Click Finish to create VM.
- After the VM is created, Right-Click then Settings. Then Add a new hardware.
- 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.
- Leave the VMDK file name as the default, then click Finish to add a New virtual Hard Disk
- Openfiler VM should have the setting similar to the one below.
Step 9 – Installing Openfiler
- Power On Openfiler VM, then Start OS Installation.
- Skip Disk Check
- Click Next.
- Select your Keyboard Layout
- Select Manual Partition option, DO NOT Select Automatic.
- Click New
- 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
- 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
- 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
- Your Partition Table looks like this. Then Next.
- Click Edit to configure Static IP Address with the following detail
IP Address: 192.168.xxx.253
Subnet Mask: 255.255.255.0
- Configure Default Gateway and DNS Address as follow. Then Next.
Default Gateway : 192.168.xxx.254
DNS : 192.168.xxx.252
- Select your Time Zone.
- Enter root password, you will not be using this password but just remember your password. Then Next.
- Click Next to start the installation then reboot when it is done.
Step 10 – Configuring Openfiler
- 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.
- Login to Openfiler using the default username and password.
Username : openfler
Password: : password
- Select Services, then enable NFSv3 Server and iSCSI target server as they are disabled by default
- You will need to create a volume group to use FNS and iSCSI, click Volumes from the menu.
- Select 2nd Disk (should be dev/sdb)
- Keep the setting as default then click Create.
- Do that again, click create.
- Verify that volumes are created.
- From right side of the page, select Volume Group
- Create a new Volume Group and name it such as VMware, make sure that volume that you created in the previous step is selected.
- Once a volume group is created, then you can add volumes. From the right side of page, click Add Volume
- Scroll down and Create 1st LUN with the following detail then click Create.
Volume Name : LUN0
Volume Description :
Required Space : 10000
Filesystem : iSCSI
- 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 - Create 1 NFS Shared Volume with the Following Detail
Volume Name : NFS
Volume Description :
Required Space : (Maximum by scrolling toward right edge.)
Filesystem : XFS
- Now you should have 4 volumes in the list
Step 11 – Configuring NFS Share
- 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.
- 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
- Verify that Your NAT Network is added in the list.
- Click Shares form Menu to create NFS Share.
- Click Volume Group for NFS Share. In my environment it is called NFS.
- Then enter NFS Share Name, such as “share”.
- Now NFS share has been created.
- Click on newly created NFS Share then click “Make Share”
- Since ESXi Server requires Anonymous Access, Change Share Access Control Mode to “Public guest access” then click “Update”
- Give RW (Read&Write) permission to NFS, then click update.
- 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
- To configure iSCSI Target, Click Volumes
- From the right side of page, click “iSCSI Target”
- 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.
- Verify that iSCSI Target is created.
- Click on LUN Mapping from iSCSI Menu
- 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.
- Click Map on each Volume to map LUNs to this Target.
- Verify that all LUNs are mapped this Target now.
- Your iSCSI Target is ready now.