FreeNAS Install

3 minute read

Description:

FreeNAS is an open source software that allows you to create sharable volumes based off the Free BSD operating system (derived from Unix). This software is similar to that of Vphere where you install this on a machine and then use a browser to control it remotely. Follow these steps to install FreeNAS:

NOTE: I don’t have any actual hardware devices to install this to so I am using VMWare Workstation 10 to create a VM.

To Resolve:

  1. Get the .iso from their main website and create a VM for it with bridged networking (it will receive an IP on my LAN). Give it 8 GB memory and two drives at least.

  2. Boot up the VM and install just like any other OS installation, it installs on FreeBSD so it will use *nix commands.

    • If you see a screen with a lot of dots and plus signs, that is okay. I guess that means its setting things up.
  3. Once its created, it will ask to remove the disk and reboot. Do that and you get to a 14 option menu with an IP address where you can see the GUI. Go to it.

  4. In the installation wizard follow the prompts until you get to the storage type and make sure to select iSCSI.

    • You sign in with username: root and the password you created during setup.
  5. First thing you want to do is go to the Network tab and verify all is correct as far as DHCP, Default Gateway, and Subnet settings.

  6. Once logged in, navigate to the Directory tab and make sure you are connected to Active Directory under the NT4 subsection.

  7. Go to Storage => Volumes and make sure you change the permissions for the volume to Windows.

    • freenas-1
  8. Go to: Sharing => Block (isSCSI) => Portals (subtab). Select “add portal” and then select the IP address it gives you or select one from the drop down.

    • freenas-2
  9. Now go to the Initiators tab and “add initiators”. These are the clients that will connect, select the default “ALL” in here or specific hostnames/IP’s.

  10. On the Authorized Access tab, fill out the username as the domain admin user name and set a passcode that is between 12-16 characters long.

  11. On the Add Target tab, create a target name and associate it with the appropriate portal.

  • freenas-3
  1. On the extents tab, make up a name for an extent, select to browse to your volume from the previous step and append the name on the end of it, then create a size in bytes (Mine is roughly 40 GB in the example). It is recommended to choose “File” extents over device extents from what I have read on the intertubes.
  • freenas-4
  1. On the Associated Targets tab, select the target name you created and the extent name in the drop downs, click OK.

  2. Now scroll down to services and enable the iSCSI service.

On the Domain Controller:

  1. Open up Server Manager and go to iSCSI Initiator.

  2. Hit refresh and select the disk. Then go to the auto-configure tab for Windows to autoconfigure your share.

  3. Run => diskmgmt.msc => initiate the disk and create a volume.

    • If the disk is Offline with the message the disk is offline because of policy set by an administrator, read this article
  4. Once you create a volume, your done. As an extra precaution, I went to the security tab and gave my domain admin full control on the drive in Explorer. Now you can start setting up high availability if you wish.

References:

“10. Sharing”
“How To Configure and Install FreeNAS for iSCSI Target”
“Configure iSCSI target on FreeNAS 8.3 & access same target from Windows 2012 Server”

Tags:

Updated:

Comments