How to build my ESXi Home lab in the cloud (part3) – Deploy FreeNAS

In this 3rd episode we will configure our shared storage for our home lab.
We will take care of that with a FreeNAS VM which is available in the Ravello repo => link
Search for FreeNAS and click on “Add to Library”.

1. Create the FreeNAS VM

1. We go to the tab VMs. You need to click on the “+ sign” if you don’t see a list of available VMs to add.

2. Click on the “+ sign” next to the FreeNAS-01-Repo that you added in the start of the article.

3. This VM will give you 200GB of data by default. I’m not changing anything in the config except on the NICs and services tab. In the NICs I will configure the IP to a static IP. You can also leave it on DHCP that will make it a bit easier for you as you don’t need to configure the FreeNAS it’s IP stack later on.

4. In the services tab we will remove the supplied services for HTTP & HTTPS as I don’t use them. When you removed them you can save your VM.

5. If you still remember from the previous article we need to remove the error from the VM by attaching it to the correct Switch. Go to the Network tab and there click on your FreeNAS device. Go to NICs (1) and click on nic1.

6. Click on “Connect to switch”

7. Connect to switch2 where VLAN 10 is available

8. Publish your changes and wait until the FreeNAS has started.

2. Configure FreeNAS – console

1.Open the console to your FreeNAS. Choose option 1 to configure the IP.

2. Choose option 1 to configure the IP.

  1. select an interface => 1
  2. delete interface => n
  3. reset network config => n
  4. configure interface for DHCP => n
  5. configure IPv4 => y
  6. IPv4 address => 10.0.10.11
  7. IPv4 netmask => 255.255.255.0

3. Now choose option 7 to reset webgui login and press enter when finished. This will reset the webgui login.

2. Configure FreeNAS – webgui

1.Connect to http://10.0.10.11 and fill in a password of your choice

2. Go to storage and then go to the bottom to create a zvol.

3. Give your vol a name and use 180G of your storage. You cannot use the complete disk.

4. Go to services and enable iSCSI and click on edit

5. Go to Portals and click on “Add Portal”

6. No need to fill in a comment just click on OK.

7. Now we go to Initiators and click on “Add Initiator”

8. Just click on OK this will allow all systems to be able to allow iSCSI sessions. If you don’t want to do this you can change the config.

9. Go to targets and click on “Add Target”

10. Fill in targetname and choose portal- & initiator group id

11. Go to extents and click on “Add Extent”

12. Fill in Extent Name and select device. Then you will be able to choose your device that you created of 180 GB.

13. Go to Associated Targets and click on “Add Target / Extent”

14. Choose target & extent.

Next time we’ll create our ESX’es. We’re almost there 🙂