Welcome to Dirteam.com/ActiveDir.org Blogs Sign in | Join | Help

The things that are better left unspoken

a blog by Sander Berkouwer

Related

AD Manager Plus
 

Blog roll

News



Archives

iSCSI configuration in Hyper-V Server 2008 R2

Last time I took a look at Hyper-V Server 2008 R2 Beta, I shared the surprise of having Failover Clustering and the possibility to have highly available virtualized workloads on it.

This time I look at an implication of having the Windows Enterprise-like Quick Migration and Live Migration features: increased complexity and configuration burden.

   

iSCSIcli in Hyper-V Server 2008

In Hyper-V Server 2008 and Server Core Installations of Windows Server 2008 to connect to SAN storage you would use the iscsicli.exe tool. This is the command line equivalent of the iSCSI client configuration tool. This command line tool requires you to utilize your asterisk button a lot. (to accept default values)

Typical commands to connect to your SAN storage look like these:

iscsicli qaddtargetportal iscsihost.domainname.tld UserName Password
iscsicli persistentlogintarget quorum T * * * * * * * * * * * UserName Password 1 * 0
iscsicli persistentlogintarget vms T * * * * * * * * * * * UserName Password 1 * 0
iscsicli qlogintarget quorum UserName Password
iscsicli qlogintarget vms UserName Password

Not really intuitive, but when you’ve read the Microsoft iSCSI Software Initiator User's Guide and have memorized Appendix C of the document you’re basically ready to go.

  

iSCSIcpl in Hyper-V Server 2008 R2

To make this crucial step in your cluster setup progress a bit easier, Microsoft has included the graphical version of the iSCSI client configuration tool in Hyper-V Server 2008 R2 and Server Core installations of Windows Server 2008 R2. You no longer have to work iscsicli.exe magic to connect to your SAN; you can click your way through now! Of course, for die hard command line freaks and scripters of all sorts the iscsicli.exe command is still available!

Starting the graphical iSCSI client configuration

The graphical version of the iSCSI client configuration tool can be started by typing:

iscsicpl
   

Below is a screenshot of a Hyper-V server 2008 R2 installation running the graphical version of the iSCSI Client:

Hyper-V Server 2008 R2-2009-02-22-12-43-30 

Although the name implies otherwise this is not a Control Panel applet like timedate.cpl and intl.cpl. Trying to start the graphical version of the iSCSI Client using control iscsicpl will not result in a running instance.

Managing the Microsoft iSCSI service

For proper operation the Microsoft iSCSI Initiator service should be running. When the service is not running you will be asked whether you want to service to be automatically be started every time the computer starts:

iSCSI Service

You can also achieve the services starts by typing the following two commands:

sc config MSiSCSI start= auto
net start MSiSCSI

    

Concluding

Some configuration tasks can be tricky on a GUI-less server. In Hyper-V Server 2008 and Server Core installations of Windows Server 2008 a couple of graphical windows were present. These allowed to configure Regional options and Time and Data options.

In Hyper-V Server 2008 Microsoft included the graphical iSCSI Client. It’s a good thing Microsoft has included some more graphical tools to achieve tasks in the 2008 R2 Wave of products more easily.

Related posts

The Hyper-V Server 2008 R2 Surprise 

Further reading

Server Core Cluster - how it’s done 
TechEd Barcelona - the end  
Clustering Videos on the Web 
Microsoft iSCSI Software Initiator User's Guide 2.x  
iSCSI Configuration UI included in Hyper-V 2008 R2 
iSCSI Configuration UI included in Hyper-V 2008 R2 
Building a Failover Cluster with Server Core Part 2  
Step-by-step: Using the Microsoft iSCSI Software Target with Hyper-V    
Microsoft TechNet Forums - Configuring iSCSI initiator using iscsicli.exe
Microsoft TechNet Forums - Configuring iSCSI using iscsicli.exe 
Microsoft TechNet Forums - How to identify source NICs to be passed via iSCSIcli?  
Microsoft TechNet Forums - Building a Host Cluster with Hyper-V in core mode  
Microsoft TechNet Forums - ISCSI help. I need white papers   
Microsoft TechNet Forums - Server Core and iSCSI initiator 

Disclaimer Beta Software

The information on this webpage applies to software from Microsoft that was in testing phase but utilizable by experienced users by the time the webpage was written. This software has not been released for sale, distribution or usage for the general public. The information on this webpage and the beta software are provided "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.

Posted: Thursday, February 26, 2009 9:11 AM by Sander Berkouwer

Comments

eswindelles said:

This is reason enough for me to upgrade to Server 2008 R2.  We are heavy iSCSI users on our Server 2008 environment and have come to know iscsicli very well.  To me, its the least intuitive CLI of any Microsoft utility.  It should either be integrated into netsh or powershell, for ex:

netsh iscsi targets add iqn=iqn.x.y.z address=10.10.10.10 port=3260 interface=5 persistent

netsh iscsi sessions logout session=abc123

etc etc

# February 26, 2009 6:50 AM

TrackBack said:

Nastavení iSCSI pomocí konzolového nástroje iscsicli.exe v předchozí verzi Hyper-V je strašné peklo. Naštěstí byl je již v aktuální betě Hyper-V Serveru 2008 R2 implementován iscsicpl, což je grafická podoba iSCSI konfigurace. Podrobný návod je zde.
# March 17, 2009 3:47 PM

TrackBack said:

Vi segnalo questo interessante post di Sander Berkouwer sulla configurazione di iSCSI su Hyper-V Server o Windows 2008 Core; quindi in tutti quei casi dove non è possibile utilizzare la GUI. E' possibile leggere l'intero post facendo clic qui.
# July 22, 2009 8:19 AM

The things that are better left unspoken said:

Hyper-V Server 2008 R2 available 

Microsoft Hyper-V Server 2008 R2 is easier than Hyper-V Server 2008.
Microsoft Hyper-V Server 2008 was the first incarnation of Microsofts free hypervisor. Based on feedback, Microsoft has included several management enhancements in Hyper-V Server 2008 R2:   

  • An updated configuration tool, (sconfig)
  • A graphical user interface for iSCSI configuration (iscscpl)
  • A graphical user interface for MPIO configuration (mpiocpl)
      
# August 29, 2009 3:02 AM
Anonymous comments are disabled