This is a three-part post
- First is the installation of Freenas
- Second is the setup of ISCSI on Freenas
- Third is the setup of ISCSI on ESXi host cluster
I am building a Freenas with ISCSI storage so I can present it to my ESXi hosts and add it as a datastore with CHAP authentication. Freenas is a free open source storage operating system. The Freenas version I am using is 11.3-U5 which I will build as a virtual machine but it can be on physical hardware.
INSTALLATION OF FREENAS
Login to your vCenter and create a new virtual machine
Right click you ESXi host or cluster and select a new virtual machine
![](https://topvcf.com/wp-content/uploads/2022/11/image.png)
Click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-1.png)
Name your freenas server and click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-2.png)
Select your location you want to put the virtual machine and click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-3.png)
Select your storage and click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-4.png)
Click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-5.png)
Select the OS – Linux, Other Linux 64bit and click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-6.png)
The specs I am using is
2cpu, 8gb memory, 10gb disk for the Operating system and 100gb for ISCSI
Select the network which you want your ESXi hosts to communicate over ISCSI
Attached the ISO
Click next
![](https://topvcf.com/wp-content/uploads/2022/11/image-7.png)
Click finish
![](https://topvcf.com/wp-content/uploads/2022/11/image-8.png)
Power on your virtual machine
![](https://topvcf.com/wp-content/uploads/2022/11/image-9.png)
Select install/upgrade and push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-10.png)
Select the partition you want to install the operating system and push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-11.png)
Push enter on Yes
![](https://topvcf.com/wp-content/uploads/2022/11/image-12.png)
Type in the password you want to login with and push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-13.png)
Select BIOS boot and push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-14.png)
![](https://topvcf.com/wp-content/uploads/2022/11/image-15.png)
Push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-16.png)
Select reboot system and push enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-17.png)
Once booted select 1 to configure network interface
![](https://topvcf.com/wp-content/uploads/2022/11/image-18.png)
Push 1 and enter– select the interface
Push N and enter – delete current setting
Push N and enter – not to configure DHCP
Type in interface ‘eth0’ and enter
Type in the ip address and subnet mask in CIDR format and push enter
Push N and enter – not to configure ipv6
![](https://topvcf.com/wp-content/uploads/2022/11/image-19.png)
![](https://topvcf.com/wp-content/uploads/2022/11/image-20.png)
Now configure your DNS
Push 6 and enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-21.png)
Type in the DNS domain and enter
Type in the DNS server and enter
Type in the second DNS server and enter
![](https://topvcf.com/wp-content/uploads/2022/11/image-22.png)
![](https://topvcf.com/wp-content/uploads/2022/11/image-23.png)
If required you can reset your root password or add a vlan on the interface
![](https://topvcf.com/wp-content/uploads/2022/11/image-24.png)
Type in the ip address or fqdn of the server in your browser
![](https://topvcf.com/wp-content/uploads/2022/11/image-25.png)
Type in root as the username and the password you setup previously
![](https://topvcf.com/wp-content/uploads/2022/11/image-26.png)
Done
![](https://topvcf.com/wp-content/uploads/2022/11/image-27.png)
1 of 3 is now completed
Click below link for 2 of 3 post