Installing a Persistent iSCSI initiator on Hyper-V 2008 R2
- Details
- Category: Windows Server
- Written by Winfred de Kreij
Because Hyper-V Server 2008 R2 does not have a GUI, all tasks needed to set up an iSCSI initiator need to be done either remotely or from the command prompt.
The iSCSI initiator service needs to start automatically(this can also be done remotely by opening a MMC, adding the services snapin and connecting to the Hyper-V Server): sc config msiscsi start= auto
Start the service (most likely the SC command will already trigger the starting of the service): net start msiscsi
Connect to the iSCSI target Server: iscsicli QAddTargetPortal 10.0.0.1
Now get a list of iSCSI targets: iscsicli ListTargets
Next, copy the target you want and run this command (replace the iqn with your own): iscsicli persistentlogintarget iqn.1991-05.com.something:server-vms-target T * * * * * * * * * * * * * * * 0
Now reboot: shutdown /r /t 10
And verify if the disk is actually mounted. You can do so with either diskpart.exe on the server itself, or you can open an MMC from another computer, add the disk manager snap in and verify visually.

