This is how to create an iSCSI datastore in ESXi. In my case, I got a QNAP which allows for iSCSI (Internet Small Computer System Interface) connections to the storage. Briefly, iSCSI is a layer on top of TCP/IP that uses an initiator to connect to a target. This protocol can go over normal ethernet. If you would like to know more about iSCSI, check out this blog on it. First, login to ESXi and navigate to networking.

*Note* if you separate your iSCSI network from your main LAN, then proceed with these steps to bind a vmk and NIC with a dedicated vSwitch to iSCSI. If you do not separate your LAN and iSCSI traffic, skip to step 4.

Connect via iSCSI

  1. Select ‘Networking’ then ‘Port Groups’ and ‘Add port group’.

2. Name your port group and add to a vSwitch that has Physical NICs.

3. Next, go back to ‘Networking’ and this time select ‘VMkernel NICs’. Click ‘Add VMkernel NIC’ and enter in an appropriate IP and subnet mask. This IP should be on the same network and subnet range that the iSCSI target is on.

4. Next, go back to the left hand side and choose ‘Storage’ and then ‘Adapters’. Select ‘Software iSCSI’ to add a iSCSI adapter.

5. From here you can select CHAP settings for authentication if you setup your iSCSI target that way. Be sure to select ‘Enabled’ at the top. If you are segmenting traffic between iSCSI and LAN, select ‘Add port binding’ next to Network port bindings. Otherwise, skip to step 7.

6. From here you can select the VMkernel NIC you created previously.

7. Now you can add static targets or dynamic targets as you setup in your environment. Click ‘Save configuration’.

Create the Datastore

8. Next you can add the new datastore. Proceed to ‘Storage’ on the left hand side then ‘Datastores’ and ‘New datastore’.

9. Now when you proceed through the wizard, you should see the space you made available to the ESXi host from your iSCSI target.

10. Name the datastore and proceed through the rest of the wizard. Finally, you should see your new datastore.

I hope this helped you out setting up an iSCSI datastore in ESXi. It is a pretty simple procedure from the ESXi side. Added complications could come from segmenting the network traffic between iSCSI and normal LAN traffic.

Check out my previous blog post here.

Enter your email address to subscribe to this blog and receive notifications of new posts!

People get crypto to read and post blogs. Publish0x is like Medium but the author and the reader get tips. Use my referral link below and check it out.

God bless you!

Published by Powersjo

If you want to contact me I can be found here: https://gab.com/Powersjo Christ is King