In the article, we will walk you through the steps on how to configure iSCSI storage on the server to connect to VMware. You must have a central storage like SAN in order to perform with the VMware advanced features like FT, HA, vMotion, etc., but that isn’t always possible for lab or evaluation. In my previous article, I showed you how to deploy VMware vCenter 8.0. In this article, we will show you how to use the Windows server 2022 ISCSI solution as shared storage for VMware. The iSCSI Target setup takes a look into Microsoft iSCSI Solution. Read this article for more detail.
If the VMware ESXi Host datastore is running out of storage, then there is nothing to worry about since you have the provision option, which will help to add a new datastore in vCenter, increase the storage size, and also expand the VMFS datastore capacity.
Table of Contents
Let’s Get Started
Set up software iSCSI storage and then mount the datastore on the ESXi server. To create an iSCSI target server, we need to enable the iSCSI server role.
Enable iSCSI Target Server Role
Open Server Manager 2022 and then choose Add Roles and Features.
![Server Manager](https://jamiltech.com/wp-content/uploads/Server-Manager-5.webp)
Click next
![Add roles and features wizard](https://jamiltech.com/wp-content/uploads/Add-roles-and-features-wizard-1.webp)
Choose Role-based or feature-based installation, and then choose next.
![Role based or feature based](https://jamiltech.com/wp-content/uploads/Role-based-or-feature-based-1.webp)
Click next
![Select destination server](https://jamiltech.com/wp-content/uploads/Select-destination-server-2.webp)
Here, we need to enable the iSCSI target services. Expand the file and storage services option, and then file and iSCSI.
Select the box iSCSI Target Server.
![iSCSI target server features](https://jamiltech.com/wp-content/uploads/iSCSI-target-server-features.webp)
Click on Add Features.
![Add features that are required](https://jamiltech.com/wp-content/uploads/Add-features-that-are-required.webp)
Select next
![iSCSI target server features](https://jamiltech.com/wp-content/uploads/iSCSI-target-server-features-.webp)
Click next
![Select server features](https://jamiltech.com/wp-content/uploads/Select-server-features.webp)
Select install
![iSCSI target server confirmation](https://jamiltech.com/wp-content/uploads/iSCSI-target-server-confirmation.webp)
iSCSI target installation is completed; choose close.
![iSCSI target server installation progress](https://jamiltech.com/wp-content/uploads/iSCSI-target-server-installation-progress.webp)
Configure iSCSI Storage Server
Click on File and Storage Services.
![Server Manager](https://jamiltech.com/wp-content/uploads/Server-Manager-7.webp)
Creating iSCSI Virtual disks
Choose the iSCSI tab, and then on to create an iSCSI virtual disk.
![iSCSI virtual disks](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disks.webp)
In the Select by Volume box, you can type the custom path. We will create a virtual disk on the E volume. Click next
![iSCSI virtual disk location](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disk-location.webp)
Specify iSCSI virtual disk name and description, and then click on Next.
![Specify iSCSI virtual disk name](https://jamiltech.com/wp-content/uploads/Specify-iSCSI-virtual-disk-name.webp)
Specify iSCSI virtual disk size, type the storage size, choose Dynamically expanding, and then choose next.
![Specify iSCSI virtual disk size](https://jamiltech.com/wp-content/uploads/Specify-iSCSI-virtual-disk-size.webp)
Choose the “New iSCSI target” box, and then choose next.
![Assign iSCSI target](https://jamiltech.com/wp-content/uploads/Assign-iSCSI-target.webp)
Type the iSCSI storage name, and then click on Next.
![Specify target name iSCSI](https://jamiltech.com/wp-content/uploads/Specify-target-name-iSCSI.webp)
To add access servers (VMware ESXi), choose the Add button.
![iSCSI virtual disks access servers](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disks-access-servers.webp)
Tick the box and enter a value for the selected type.
Select the type of IP address and then enter your ESXi host IP address. Click ok
![Add initiator ID](https://jamiltech.com/wp-content/uploads/Add-initiator-ID.webp)
Click again on the add button to add more ESXi servers if you have any.
![Configure Iscsi storage server](https://jamiltech.com/wp-content/uploads/Configure-Iscsi-storage-server.webp)
Enter the second ESXi server IP address, and then click OK.
![Add initiator id](https://jamiltech.com/wp-content/uploads/Add-initiator-id-1.webp)
Click next
![Specify access server ESXi](https://jamiltech.com/wp-content/uploads/Specify-access-server-ESXi.webp)
Choose Next
![iSCSI virtual disks enable authentication](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disks-enable-authentication.webp)
Select Create to create iSCSI storage.
![iSCSI virtual disks confirmation](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disks-confirmation.webp)
The disk has been created successfully. Click close
![iSCSI virtual disks successfully created](https://jamiltech.com/wp-content/uploads/iSCSI-virtual-disks-successfully-created.webp)
Click on Tools and then iSCSI Initiator.
![Server manager tools](https://jamiltech.com/wp-content/uploads/Server-manager-tools-2.webp)
Select ok
![Microsoft iSCSI](https://jamiltech.com/wp-content/uploads/Microsoft-iSCSI.webp)
Summary
In this article, we have explained how to enable and configure the iSCSI storage server on Windows Server 2022. Follow this article on how to Connect the iSCSI storage in VMware vCenter as a datastore.