VmWare/Setup iSCSI
Pre-requisites
Setup done using:
- ESXi host 6.7.0 (13006603)
- TrueNas-12.0-U8.1
ESXi setup
Have (2) vSwitches </br> (1) vSwitch should be connected to a physical adapter with a real IP address that is resolvable on your network. (ie. management vmknic) </br> (1) vSwitch should be not be connected to any physical adapters (intranet). </br> Create a new VMkernel NIC and select the intranet vSwitch as its Port group. Define a static IP address such as: </br>
IP Address: 192.168.0.5 Subnet: 255.255.255.0
TrueNAS setup
Have (2) physical NICs (vmknics) associated with the VM. </br> (1) vmknic should be connected to to the vSwitch providing it with a resolvable ip address. </br> (1) vmknic should be connected to the intranet vSwitch </br>
For the second vmknic (intranet), give it a static internal address such as: </br>
IP Address: 192.168.0.15/24
Note: Make sure to also configure the first vmknic to DHCP, TrueNAS doesnt retain the existing configuration automatically.