Configure Qnap iSCSI as VMware Datastore

Page content

Storage

After upgrading my old QNAP TS-453A to a QNAP TS-873 with 8 bays and tons of storage I finally had some time to explore additional storage options for my homelab. Now with 2 pools of storage with total capacity of ~ 35TiB I finally could start to use my NAS much more efficient.

In the previous post Configure QNAP NFS as VMware ESXi Dastastore I showed you how to configure QNAP NFS share as VMware ESXi Datastore.

In this post I will show you how to create a VMware ESXi datastore using iSCSI.

Prerequisites

  • QNAP NAS
  • VMware ESXi - mentioned solution should work starting from VMware ESXi 5.0+

QNAP Configuration

  1. Login to your QNAP NAS and click iSCSI & Fibre Channel

    Configure Qnap iSCSI as VMware Datastore - 1

  2. When first time started you will be asked if you wish to go through a configuration wizard. Click Next.

    Configure Qnap iSCSI as VMware Datastore - 2

  3. We will start with the iSCSI Target creation.

    Configure Qnap iSCSI as VMware Datastore - 3

  4. You can enter name and alias for your iSCSI Target.

    Configure Qnap iSCSI as VMware Datastore - 4

  5. In next section we can enter username and password. Only letters and numbers are allowed. Let’s try to configure it with username and password.

    Configure Qnap iSCSI as VMware Datastore - 5

  6. In the last section we have a summary of the items we configured. Important is to select Create a LUN and map it to this target.

    Configure Qnap iSCSI as VMware Datastore - 6

  7. Now we are in the Block-Based LUN Creation Wizard section. Choose appropriate Storage Pool and the type of LUN allocation - thick or thin.

    Configure Qnap iSCSI as VMware Datastore - 7

  8. We need to provide a LUN name and enter the desired LUN size. As I have cache disks I will use them.

    Configure Qnap iSCSI as VMware Datastore - 8

  9. On the summary we can see all the configured settings.

    Configure Qnap iSCSI as VMware Datastore - 9

  10. Our QNAP NAS iSCSI target is ready to be used.

    Configure Qnap iSCSI as VMware Datastore - 10

ESXi Configuration

VMware ESXi can use iSCSI either using Static or Dynamic discovery. I’ve tested it with both and I will descibre the process just with Dynamic.

  1. Login to vSphere.

  2. Navigate to your ESXi Server Configure -> Storage Adapaters -> iSCSI Software Adapter or your hardware iSCSI adapter.

    Configure Qnap iSCSI as VMware Datastore - 11

  3. Click Dynamic Discovery and then Add.

  4. Enter iSCSI Server FQDN or IP address.

    Configure Qnap iSCSI as VMware Datastore - 12

  5. I used CHAP configuration on QNAP so I need to enter it in ESXi as well. Set Authentication Method to Use unidirectioal CHAP if required by target.

    Configure Qnap iSCSI as VMware Datastore - 13

  6. We need to rescan adapter in order to reflect changes. CLick Rescan Adapter.

  7. iSCSI LUN is visible and can be used as VMware Datastore.

    Configure Qnap iSCSI as VMware Datastore - 14

Create iSCSI based VMware Datastore

  1. Click on Actions and then select Storage -> New Datastore

    Configure Qnap iSCSI as VMware Datastore - 15

  2. Choose VMFS
  3. Select our iSCSI backed Disk.

    Configure Qnap iSCSI as VMware Datastore - 16

  4. Choose desired VMFS version.
  5. I will use whole datastore size and use default settings.

    Configure Qnap iSCSI as VMware Datastore - 17

  6. On the summary page we can review our configured settings.

    Configure Qnap iSCSI as VMware Datastore - 18

  7. Datastore is visible in GUI and can be used by our VMs.

    Configure Qnap iSCSI as VMware Datastore - 19

Summary

I hope that post was informative and easy to follow. I am really happy to have so many options to utilize my QNAP NAS in my homelab.