In this post, we will learn How to Create an iSCSI target on Windows Server 2016 Hyper-V Core. When you don’t have GUI on Windows Server 2016, you’ll need to know some basic commands in order to configure stuff.
You can’t simply Remove GUI after you activate it as this no longer works (2012R2 it was possible). Basically, you can either install the full blown GUI or install just the core.
You can’t switch between GUI or core. iSCSI target can be installed on both versions of Windows Server 2016 versions (core or GUI).
How to Create an iSCSI target on Windows Server 2016 Hyper-V Core
set-service -name msiscsi -startuptype automatic
This will basically set the services startup type and after, the second command starts the iSCSI service. So far so good.
Next, we need to add a new portal address and after we will add our iSCSI target. In order to add target portal address, we can use PowerShell command prompt.
After done, we can then add the target iqn names for the target portal. We need to issue
Connect-IscsiTarget -NodeAddress iqn.2005-06.com.datarobotics:elite.tdb100580286.id2 -IsP
ersistent $true -IsMultipathEnabled $true -InitiatorPortalAddress 10.10.1.60 -TargetPortalAddress 10.10.1.30
Quite long isn’t it…
To verify that the targets have been successfully added, you can then run this command
From the command line, even if you are on a “core” system, you can still launch iSCSI initiator properties window. You didn’t know that, did you?
Type this command:
to launch the iSCSI Initiator Properties
the fact that you don’t have a GUI to work with, it makes things a little bit more difficult, but with the help of this post, we learned quite quickly.
iSCSI can be sometimes “tricky” when connecting server system to a volume at the iSCSI SAN storage. Sometimes you get errors when trying to connect. One of the errors can be the error where you are already accessing the volume from another system so you basically cannot initiate another iSCSI connection from your system as well.