<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Jon Tupitza's SQL Server and BI Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/jtupitza/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/jtupitza/feed.xml</link>
    <description>Musings and findings from the world of a SQL Server Business Intelligence consultant at Microsoft.</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:09:26 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Part 3: Create a Virtual Shared Storage Solution in the Hyper-V Lab</title>
      <link>https://docs.microsoft.com/archive/blogs/jtupitza/part-3-create-a-virtual-shared-storage-solution-in-the-hyper-v-lab</link>
      <pubDate>Mon, 23 Jan 2012 11:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Jon Tupitza]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jtupitza/2012/01/23/part-3-create-a-virtual-shared-storage-solution-in-the-hyper-v-lab/</guid>
      <description><![CDATA[Introduction
In order to configure a Windows Failover Cluster inside a Windows 2008 R2 Hyper-V...]]></description>
      <content:encoded><![CDATA[<h2>Introduction</h2>
<p>In order to configure a Windows Failover Cluster inside a Windows 2008 R2 Hyper-V based virtual lab environment you must first&nbsp;prepare a shared storage solution that can be leveraged by the members&nbsp;of the Windows Failover Cluster.&nbsp; While a separate virtual hard disk (VHD) can be attached to a stand-alone server inside a Hyper-V environment,&nbsp;it cannot be attached to more than one virtual server image; hence, a virtual hard disk cannot be used to fulfill a Windows Failover Cluster's requirement for shared storage.&nbsp; Fortunately, you can use Windows Storage Server to create a virtual iSCSI storage solution to support WSFC.</p>
<p>To complete this exercise you will need to&nbsp;download the Microsoft iSCSI Software Target 3.3 software at: <a href="https://www.microsoft.com/download/en/details.aspx?id=19867">https://www.microsoft.com/download/en/details.aspx?id=19867</a></p>
<h3>Install the iSCSI Software Target 3.3 Software</h3>
<ol>
<li>First, copy the Microsoft iSCSI Software Target 3.3 installer (MSI) file to<strong> iSCSI-01<br /><br /></strong></li>
<li>Make sure to log on to<strong> iSCSI-01</strong> using the domain administrator credentials <strong>CONTOSO\Administrator;</strong> not the local Administrator credentials<br /><br /></li>
<li>Run the install file iSCSITarget_Public.MSI according to the following steps:<br />
<table style="border: 1px solid #0e0059; width: 100%; background-color: #daecff;" border="1" rules="all" cellspacing="0" cellpadding="6" frame="border" align="center">
<thead>
<tr style="background-color: #0e0059;">
<td><span style="background-color: #0e0059;"><strong><span style="color: #ffffff;">1. Double click the installer file, and then click the <span style="text-decoration: underline;">Install</span> button&nbsp;to extract the files.</span></strong></span></td>
<td><strong><span style="color: #ffffff;">2. In the <span style="text-decoration: underline;">Install a Server</span> quadrant, click the <span style="text-decoration: underline;">iSCSI Software Target (x64)</span> link.</span></strong></td>
</tr>
</thead>
<tbody>
<tr style="background-color: #b0c4de;" valign="middle" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1145.Install_ISCSITarget_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1145.Install_5F00_ISCSITarget_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1145.Install_ISCSITarget_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1145.Install_5F00_ISCSITarget_5F00_0.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6472.Install_ISCSITarget_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6472.Install_5F00_ISCSITarget_5F00_0.jpg"></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0676.Install_ISCSITarget_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0676.Install_5F00_ISCSITarget_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0676.Install_ISCSITarget_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0676.Install_5F00_ISCSITarget_5F00_1.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td><strong><span style="color: #ffffff;">3. On the Setup Wizard Welcome page, click the <span style="text-decoration: underline;">Next</span> button to initiate the installer.</span></strong></td>
<td><strong><span style="color: #ffffff;">4. Choose to&nbsp;accept the license agreement, and then click the <span style="text-decoration: underline;">Next</span> button.</span></strong></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3323.Install_ISCSITarget_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3323.Install_5F00_ISCSITarget_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3323.Install_ISCSITarget_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3323.Install_5F00_ISCSITarget_5F00_2.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5807.Install_ISCSITarget_EULA.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5807.Install_5F00_ISCSITarget_5F00_EULA.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5807.Install_ISCSITarget_EULA.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5807.Install_5F00_ISCSITarget_5F00_EULA.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td><strong><span style="color: #ffffff;">5. Accept the default install location, and then click the <span style="text-decoration: underline;">Next</span> button.</span></strong></td>
<td><strong><span style="color: #ffffff;">6. Choose whether or not to join the customer experience program, and then click the <span style="text-decoration: underline;">Next</span> button</span></strong></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8004.Install_ISCSITarget_4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8004.Install_5F00_ISCSITarget_5F00_4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8004.Install_ISCSITarget_4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8004.Install_5F00_ISCSITarget_5F00_4.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0167.Install_ISCSITarget_5.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0167.Install_5F00_ISCSITarget_5F00_5.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0167.Install_ISCSITarget_5.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0167.Install_5F00_ISCSITarget_5F00_5.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td><strong><span style="color: #ffffff;">7. Choose whether&nbsp;to use the Microsoft Update service, and then click <span style="text-decoration: underline;">Next</span>.</span></strong></td>
<td><strong><span style="color: #ffffff;">8. Confirm your installation choices, and then click the <span style="text-decoration: underline;">Install</span> button.</span></strong></td>
</tr>
<tr style="background-color: #b0c4de;" valign="middle" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0045.Install_ISCSITarget_6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0045.Install_5F00_ISCSITarget_5F00_6.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0045.Install_ISCSITarget_6.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0045.Install_5F00_ISCSITarget_5F00_6.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8055.Install_ISCSITarget_7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8055.Install_5F00_ISCSITarget_5F00_7.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8055.Install_ISCSITarget_7.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8055.Install_5F00_ISCSITarget_5F00_7.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td style="text-align: center;" colspan="2"><strong><span style="color: #ffffff;">9. When the installation is complete, click the <span style="text-decoration: underline;">Finish</span> button.</span></strong></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td colspan="2"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8662.Install_ISCSITarget_8.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8662.Install_5F00_ISCSITarget_5F00_8.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8662.Install_ISCSITarget_8.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8662.Install_5F00_ISCSITarget_5F00_8.jpg" /></a></td>
</tr>
</tbody>
</table>
<br /><br /></li>
</ol>
<h3>Configure the iSCSI Target Shared Storage Device</h3>
<p>To facilitate the the creation of a Windows Server Failover Cluster (WSFC) that will be used to support the creation of a SQL Server Failover Cluster, the iSCSI Target needs to be created with the following devices (LUNs or VHD files):</p>
<ol>
<li>A 1GB LUN to provide for a Cluster Witness volume (Quorum)</li>
<li>A 20GB LUN to provide a storage volume dedicated&nbsp;to SQL Server Data Files (*.mdf&nbsp;and *.ndf)</li>
<li>A&nbsp;20GB LUN to provide a storage volume dedicated to SQL Server&nbsp;Transaction Log&nbsp;Files (*.ldf)</li>
<li>A 20GB LUN to provide a storage volume dedicated to SQL Server <strong><em>TempDb</em></strong> Data Files</li>
<li>A 20GB LUN to provide a storage volume dedicated to SQL Server <strong><em>TempDb</em></strong> Transaction Log Files</li>
<li>A 20BG LUN to provide a storage volume dedicated to SQL Server Backup (*.bak)&nbsp;files</li>
</ol>
<p>&nbsp;These&nbsp;6 Devices will be used by 2 initiators: <strong>SQLNode01</strong> and <strong>SQLNode02<br /><br /></strong></p>
<h4>Create a New Virtual Hard Disk for the iSCSI Target Server</h4>
<ol>
<li>Since the VHD file used to&nbsp;host the iSCSI-01 server instance isn't large enough to host the 102GB of data used by the LUNs described above, use the <strong>Hyper-V Manager</strong> to create a new&nbsp;105GB <strong>fixed-size</strong> Virtual Hard Disk (VHD) file named <strong>iSCSIStorage.vhd.</strong>.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8715.VDiskWizard_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8715.VDiskWizard_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8715.VDiskWizard_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8715.VDiskWizard_5F00_0.jpg" /></a><br /><br /></li>
<li>Then use the <strong>Hyper-V Manager</strong> to add a new <strong>SCSI&nbsp;Controller</strong> to the iSCSI-01 Virtual Machine.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1033.AddSCSIController.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1033.AddSCSIController.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1033.AddSCSIController.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1033.AddSCSIController.jpg" /></a><br /><br /></li>
<li>Next,&nbsp;click the <strong>Add</strong> button to attach the new VHD file to the newly created SCSI Controller....<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2148.AddHardDrive_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2148.AddHardDrive_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2148.AddHardDrive_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2148.AddHardDrive_5F00_1.jpg" /><br /><br /></a></li>
<li>...And then click the <strong>Browse</strong> button to navigate to, and specify the newly created VHD named <strong>iSCSIStorage.vhd</strong><br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7532.AddHardDrive_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7532.AddHardDrive_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7532.AddHardDrive_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7532.AddHardDrive_5F00_2.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2148.AddHardDrive_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2148.AddHardDrive_5F00_1.jpg"></a><br /><br /></li>
<li>Start the <strong>iSCSI-01</strong> server, launch the <strong>Server Manager</strong>, and then use the&nbsp;<strong>Disk Management</strong> plug-in to expose the new volume to the server.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7140.DiskMgmt_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7140.DiskMgmt_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7140.DiskMgmt_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7140.DiskMgmt_5F00_0.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6835.DiskMgmt_Online.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6835.DiskMgmt_5F00_Online.jpg"></a><br /><br /></li>
<li>Right-click&nbsp;<strong>Disk 1</strong>, and select&nbsp;<strong>Online</strong> from the action menu.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1106.DiskMgmt_Online.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1106.DiskMgmt_5F00_Online.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1106.DiskMgmt_Online.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1106.DiskMgmt_5F00_Online.jpg" /></a><br /><br /></li>
<li>Next, right-click <strong>Disk 1</strong> again, and select <strong>Initialize Disk</strong>, choosing the MBR (Master Boot Record) partition style.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7026.DiskMgmt_NewVolume.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7026.DiskMgmt_5F00_NewVolume.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7026.DiskMgmt_NewVolume.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7026.DiskMgmt_5F00_NewVolume.jpg" /></a><br /><br /></li>
<li>Finally, right-click the new partition and select <strong>Activate</strong> from the action menu.&nbsp; The disk is now ready for use.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4405.DiskMgmt_Complete.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4405.DiskMgmt_5F00_Complete.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4405.DiskMgmt_Complete.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4405.DiskMgmt_5F00_Complete.jpg" /></a><br /><br /><br /><br /></li>
</ol>
<h4>Configure the iSCSI Target</h4>
<p>&nbsp;First create the&nbsp;6 devices: one 1GB VHD for the Cluster Witness volume, and five 20GB VHDs for the data, transaction log, and backup&nbsp;volumes.</p>
<ol>
<li>Start the <strong>iSCSITarget Manager</strong>, right-click the <strong>Devices</strong> node, and then select <strong>Create Virtual Disk</strong> from the action menu.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5153.iSCSI_CreateVDisk.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5153.iSCSI_5F00_CreateVDisk.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5153.iSCSI_CreateVDisk.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5153.iSCSI_5F00_CreateVDisk.png" /></a><br /><br /></li>
<li>Using the wizard, create the first device with the file at <strong>E:\LUN0.VHD</strong>, specifying <strong>1024</strong>MB&nbsp;for&nbsp;its&nbsp;size, <strong>LUN0</strong>&nbsp;for its description, and configuring no target access.<br />
<table style="border: 1px solid #0e0059; width: 100%;" border="1" rules="all" cellpadding="6" frame="border">
<tbody>
<tr style="background-color: #0e0059;" valign="middle" align="center">
<td><strong><span style="color: #ffffff;">1. First Start the Wizard.</span></strong></td>
<td><span style="color: #ffffff;"><strong>2. Specify the location for the VHD file.</strong></span></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8765.iSCSI_CreateVHD_Wizard_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8765.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8765.iSCSI_CreateVHD_Wizard_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8765.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_1.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4760.iSCSI_CreateVHD_Wizard_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4760.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4760.iSCSI_CreateVHD_Wizard_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4760.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_2.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;" valign="middle" align="center">
<td><strong><span style="color: #ffffff;">3. Specify the disk size in megabytes.</span></strong></td>
<td><span style="color: #ffffff;"><strong>4.&nbsp;Type&nbsp;a Description for the LUN.</strong></span></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5282.iSCSI_CreateVHD_Wizard_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5282.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5282.iSCSI_CreateVHD_Wizard_3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5282.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_3.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6471.iSCSI_CreateVHD_Wizard_4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6471.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6471.iSCSI_CreateVHD_Wizard_4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6471.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_4.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1682.iSCSI_CreateVHD_Wizard_4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1682.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_4.jpg"></a></td>
</tr>
<tr style="background-color: #0e0059;" valign="middle" align="center">
<td><strong><span style="color: #ffffff;">5. Configure no target access.</span></strong></td>
<td><span style="color: #ffffff;"><strong>6. Click the <span style="text-decoration: underline;">Finish</span> button to create the disk.</strong></span></td>
</tr>
<tr style="background-color: #b0c4de;" align="center">
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3301.iSCSI_CreateVHD_Wizard_5.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3301.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_5.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3301.iSCSI_CreateVHD_Wizard_5.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3301.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_5.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3343.iSCSI_CreateVHD_Wizard_6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3343.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_6.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3343.iSCSI_CreateVHD_Wizard_6.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3343.iSCSI_5F00_CreateVHD_5F00_Wizard_5F00_6.jpg" /></a></td>
</tr>
</tbody>
</table>
<br /><br /></li>
<li>Create the remaining devices at E:\LUN1.VHD&nbsp;through E:\LUN6.VHD, entering <strong>20480</strong>MB&nbsp;as their&nbsp;size, and again configuring no target access. When done you'll have 6 new devices.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2742.iSCSITarget_DeviceList.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2742.iSCSITarget_5F00_DeviceList.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2742.iSCSITarget_DeviceList.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2742.iSCSITarget_5F00_DeviceList.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1731.iSCSITarget_DeviceList.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1731.iSCSITarget_5F00_DeviceList.jpg"></a><br /><br /><br /></li>
<li>Next, to create a new iSCSI Target, right-click the<strong> iSCSI Target</strong> node and then choose <strong>Create iSCSI Target</strong> from the action menu.&nbsp; This will invoke the <strong>Create iSCSI Target</strong> Wizard.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3173.iSCSI_CreateTarget.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3173.iSCSI_5F00_CreateTarget.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3173.iSCSI_CreateTarget.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3173.iSCSI_5F00_CreateTarget.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7220.iSCSI_CreateTarget.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7220.iSCSI_5F00_CreateTarget.png"></a><br /><br /><br /></li>
<li>Use the Create iSCSI Target Wizard to create one target named <strong>SQLServers</strong> that is exposed to two initiators (the SQL Servers in the Cluster)<br />
<table style="border: 1px solid #0e0059; width: 100%; background-color: #b0c4de;" border="1" rules="all" cellpadding="6" frame="border">
<tbody>
<tr style="background-color: #0e0059;">
<td><span style="color: #ffffff;"><strong><span color="#000000">1</span>.</strong><strong> Click the Next button to begin.</strong></span></td>
<td><strong><span style="color: #ffffff;">2. Specify&nbsp;a target name and description.</span></strong></td>
</tr>
<tr>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0726.CreateISCSTarget_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0726.CreateISCSTarget_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0726.CreateISCSTarget_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0726.CreateISCSTarget_5F00_0.jpg" /></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5736.CreateISCSTarget_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5736.CreateISCSTarget_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5736.CreateISCSTarget_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5736.CreateISCSTarget_5F00_1.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td><span style="color: #ffffff;"><strong>3. On the page for iSCSI Initiators Identifiers, click <span style="text-decoration: underline;">Advanced</span> and then add two initiators by IP address.</strong></span></td>
<td><strong><span style="color: #ffffff;">4. Confirm that you&rsquo;re exposing the same target to multiple initators. That's OK&nbsp;when those initiators are Windows Servers running Failover Clustering.When adding more than 1 target, ignor the warning.<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1385.CreateISCSTarget_AddIdentifierByIP_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1385.CreateISCSTarget_5F00_AddIdentifierByIP_5F00_2.jpg"></a></span></strong></td>
</tr>
<tr>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2844.CreateISCSTarget_AddIdentifierByIP.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2844.CreateISCSTarget_5F00_AddIdentifierByIP.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2844.CreateISCSTarget_AddIdentifierByIP.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2844.CreateISCSTarget_5F00_AddIdentifierByIP.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5850.CreateISCSTarget_AdvancedIdentifiers.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5850.CreateISCSTarget_5F00_AdvancedIdentifiers.jpg"></a></td>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8306.CreateISCSTarget_AddIdentifierByIP_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8306.CreateISCSTarget_5F00_AddIdentifierByIP_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8306.CreateISCSTarget_AddIdentifierByIP_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8306.CreateISCSTarget_5F00_AddIdentifierByIP_5F00_2.jpg" /></a></td>
</tr>
<tr style="background-color: #0e0059;">
<td><span style="color: #ffffff;"><strong>5.When finished the Identifiers list looks like this.</strong></span></td>
<td></td>
</tr>
<tr>
<td><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6472.CreateISCSTarget_AdvancedIdentifiers.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6472.CreateISCSTarget_5F00_AdvancedIdentifiers.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6472.CreateISCSTarget_AdvancedIdentifiers.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6472.CreateISCSTarget_5F00_AdvancedIdentifiers.jpg" /></a></td>
<td></td>
</tr>
</tbody>
</table>
<br /><br /></li>
<li>After the target is created, use the option to add existing virtual disks to the iSCSI Target<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3730.iSCSITarget_AddExistingVHD_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3730.iSCSITarget_5F00_AddExistingVHD_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3730.iSCSITarget_AddExistingVHD_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3730.iSCSITarget_5F00_AddExistingVHD_5F00_0.jpg" /><br /><br /><br /></a></li>
<li>One at a time, add all 6 LUNs (VHDs) you created earlier.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0714.iSCSITarget_AddExistingVHD_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0714.iSCSITarget_5F00_AddExistingVHD_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0714.iSCSITarget_AddExistingVHD_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0714.iSCSITarget_5F00_AddExistingVHD_5F00_1.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3730.iSCSITarget_AddExistingVHD_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3730.iSCSITarget_5F00_AddExistingVHD_5F00_0.jpg"></a><br /><br /><br /></li>
<li>When complete, the iSCSI Target Manager looks like this...<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3755.iSCSITarget_AddExistingVHD_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3755.iSCSITarget_5F00_AddExistingVHD_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3755.iSCSITarget_AddExistingVHD_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3755.iSCSITarget_5F00_AddExistingVHD_5F00_2.jpg" /></a></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Part 2: Create a Windows 2008 R2 Hyper-V Lab Network</title>
      <link>https://docs.microsoft.com/archive/blogs/jtupitza/part-2-create-a-windows-2008-r2-hyper-v-lab-network</link>
      <pubDate>Mon, 23 Jan 2012 10:20:00 GMT</pubDate>
      <dc:creator><![CDATA[Jon Tupitza]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jtupitza/2012/01/23/part-2-create-a-windows-2008-r2-hyper-v-lab-network/</guid>
      <description><![CDATA[Introduction
Creating a WIndows 2008 R2&nbsp;domain network&nbsp;lab environment on a Windows...]]></description>
      <content:encoded><![CDATA[<h2>Introduction</h2>
<p>Creating a WIndows 2008 R2&nbsp;domain network&nbsp;lab environment on a Windows Hyper-V host server&nbsp;involves creating a number of Windows 2008 R2 servers, each to fulfull a&nbsp;required role.&nbsp; Central to&nbsp;any Windows server domain network is an Active Directory Domain Controller (DC)&nbsp;and Domain Name Services (DNS) server.&nbsp; With the core network infrastructure in place member servers&nbsp;can then be&nbsp;added as&nbsp;needed.&nbsp; With Windows Server 2008 R2 you can create lab environments like this inside one self-contained Boot-to-VHD file.&nbsp; I've already published instructions on how to <a title="Create a Hyper-V Host System Using Boot-to-VHD" href="https://blogs.msdn.com/b/jtupitza/archive/2011/11/21/create-a-hyper-v-host-system-using-boot-to-vhd.aspx">Create&nbsp;a Hyper-V Host System Using Boot-to-VHD</a>.</p>
<p>To make the most effective use of disk space, all the <span style="text-decoration: underline;">guest servers</span> in your lab can be created using <span style="text-decoration: underline;">differencing disks</span>.&nbsp; Using this approach, each differencing disk will only contain the delta (configurations and additional software)&nbsp;that exists between the <span style="text-decoration: underline;">parent virtual hard disk</span> and the system you create using the differencing disk. This technique also eases configuration and saves you&nbsp;time since all the applicable Windows Updates (service packs, hot fixes, etc.) can be loaded into the parent virtual hard disk, and will&nbsp;then already be applied to the system(s) you create&nbsp;using the differencing disk(s).</p>
<p>You can further minimize resource usage and lessen the administrative burden for each server by implementing <span style="text-decoration: underline;">Server Core Installation</span>.&nbsp; Since the Windows Server 2008 R2 Server Core operating system has no graphic user interface, it consumes much less disk space, and loads into a smaller memory footprint, than the <span style="text-decoration: underline;">Full&nbsp;Installation</span>.&nbsp; What's more, since many Windows Updates pertain specifically&nbsp;to the graphic user interface portion of the code-base, administrative burden will be lessened due to a dramatic decrease in the number of updates being downloaded and installed.&nbsp; This is most important in&nbsp;a production environment because it also greatly lessens the frequency of server re-starts.&nbsp; The downside to this approach is that local server administration can only be accomplished using a command-line interface.&nbsp; This can be remediated; however, by enabling remote server administration&nbsp;on each Core server, and then administering them using Server Manager on another&nbsp;computer that's running a Full Installation of Windows Server 2008 R2.</p>
<h3>Install the Hyper-V Role</h3>
<p>If your host instance of WIndows Server 2008 R2 isn't already configured to run the Hyper-V role then follow these steps:</p>
<ol>
<li>Start the&nbsp;<strong>Server Manager</strong>, right-click <strong>Roles</strong>, and then select <strong>Add Roles </strong>from the action menu.<strong><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6114.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6114.ServerMgr_5F00_AddRole.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6114.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6114.ServerMgr_5F00_AddRole.jpg" /></a><br /><br /></strong></li>
<li>Next, select the <strong>Hyper-V</strong> role, and then click the <strong>Next</strong> button<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3073.AddRolesWizard_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3073.AddRolesWizard_5F00_1.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7065.AddRolesWizard_HV.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7065.AddRolesWizard_5F00_HV.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7065.AddRolesWizard_HV.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7065.AddRolesWizard_5F00_HV.png" /></a><br /><br /></li>
<li>On&nbsp;the <strong>Create Virtual Networks</strong> dialog, select the physical network interface for the host machine:<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4150.AddRolesWizard_CreateVNetwork.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4150.AddRolesWizard_5F00_CreateVNetwork.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4150.AddRolesWizard_CreateVNetwork.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4150.AddRolesWizard_5F00_CreateVNetwork.png" /></a><br /><br /></li>
</ol>
<h3>Configure the Virtual Networks Required to Support the Lab Environment</h3>
<p>Now that the Hyper-V Role is installed, the next steps is to create the Virtual Networks:</p>
<ol>
<li>Launch the&nbsp;<strong>Hyper-V Manager</strong> and then open the <strong>Virtual Network Manager<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5008.HyperVManager.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5008.HyperVManager.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5008.HyperVManager.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5008.HyperVManager.png" /></a><br /><br /></strong></li>
<li>Create 3 <strong>Internal only&nbsp;</strong>networks to&nbsp;facilitate communication between the virtual machines you'll create.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7801.VirtualNetworkManager.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7801.VirtualNetworkManager.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7801.VirtualNetworkManager.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7801.VirtualNetworkManager.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0383.NetworkAdapters.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0383.NetworkAdapters.jpg"></a></li>
</ol>
<p>&nbsp;</p>
<h3>Create a Virtual Hard Disk to Serve as the Base Image for&nbsp;All Your&nbsp;Servers:</h3>
<ol>
<li>Launch <strong>Hyper-V Manager</strong>, right-click your server and then select <strong>New &gt;&nbsp;Virtual Machine...</strong><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8270.NewVirtualMachine.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8270.NewVirtualMachine.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7418.VMWizard_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7418.VMWizard_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7418.VMWizard_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7418.VMWizard_5F00_1.jpg" /></a><br /><br /></li>
<li>Type a name for the new virtual machine, either accept the default location for your new virtual machines, or check the <strong>Store the virtual machine in different location</strong> checkbox to specify another location.&nbsp;<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1212.VMWizard_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1212.VMWizard_5F00_2.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4137.VMWizard_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4137.VMWizard_5F00_1.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5635.VMWizard_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5635.VMWizard_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5635.VMWizard_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5635.VMWizard_5F00_2.jpg" /></a><br /><br /></li>
<li>On the <strong>Assign Memory</strong> dialog, specify 1024MB of RAM <br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5621.VMWizard_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5621.VMWizard_5F00_3.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1346.VMWizard_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1346.VMWizard_5F00_3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1346.VMWizard_3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1346.VMWizard_5F00_3.jpg" /></a><br /><br /></li>
<li>On the <strong>Configure Networking</strong> dialog, select <strong>External Virtual Network</strong> from the Connection dropdown:&nbsp;<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0820.VMWizard_4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0820.VMWizard_5F00_4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0820.VMWizard_4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0820.VMWizard_5F00_4.jpg" /></a><br /><br /></li>
<li>In the&nbsp;<strong>Connect Virtual Hard Disk</strong> dialog, name the new disk and specify its location and size<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1207.VMWizard_5a.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1207.VMWizard_5F00_5a.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1207.VMWizard_5a.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1207.VMWizard_5F00_5a.jpg" /></a><br /><br /></li>
<li>On the <strong>Installation Options</strong> dialog, leave the <strong>Install an operating system later</strong> radio button selected<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4544.VMWizard_6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4544.VMWizard_5F00_6.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4544.VMWizard_6.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4544.VMWizard_5F00_6.jpg" /></a><br /><br /></li>
<li>Finally, review the <strong>Completing the New Virtual Machine Wizard</strong> dialog and click the <strong>Finish</strong> button<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5468.VMWizard_7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5468.VMWizard_5F00_7.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1134.VMWizard_6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1134.VMWizard_5F00_6.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1667.VMWizard_7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1667.VMWizard_5F00_7.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/1667.VMWizard_7.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/1667.VMWizard_5F00_7.jpg" /></a><br /><br /></li>
<li><strong>Connect</strong> to the new VM, and then point the <strong>DVD Drive&nbsp;</strong>to&nbsp;your Windows Server 2008 R2 SP1 ISO file.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0525.NewVM_InsertDVD.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0525.NewVM_5F00_InsertDVD.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0525.NewVM_InsertDVD.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0525.NewVM_5F00_InsertDVD.jpg" /></a><br /><br /></li>
<li>Start the virtual machine, and then perform an install just&nbsp;as you would for&nbsp;a (physical) machine.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6254.InstallOS_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6254.InstallOS_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6254.InstallOS_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6254.InstallOS_5F00_0.jpg" /></a><br /><br /></li>
<li>Configure preferences for language, time and currency, and keyboard input.&nbsp; Click <strong>Next</strong> to continue.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5545.InstallOS_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5545.InstallOS_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5545.InstallOS_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5545.InstallOS_5F00_1.jpg" /></a><br /><br /></li>
<li>Select which OS version you want to install; you can perform either a <strong>Full</strong> or <strong>Server Core</strong> installation.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0334.InstallOS_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0334.InstallOS_5F00_3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/0334.InstallOS_3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/0334.InstallOS_5F00_3.jpg" /></a><br /><br /></li>
<li>When the install wizard completes, set a <strong>Password</strong>.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6470.InstallOS_SetPWD.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6470.InstallOS_5F00_SetPWD.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6470.InstallOS_SetPWD.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6470.InstallOS_5F00_SetPWD.jpg" /></a><br /><br /></li>
<li>If you&nbsp;ran&nbsp;a <strong>Full Server Installation</strong> then run&nbsp;<strong>Windows Update</strong>. You may have to run it more than once.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3683.WinUpdate.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3683.WinUpdate.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3683.WinUpdate.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3683.WinUpdate.jpg" /></a><br /><br /></li>
<li>If you ran a <strong>Core Server Installation</strong> then all administration must be performed&nbsp;using&nbsp;<strong>CMD.exe</strong>.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8640.ConfigureServerCoreOS_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8640.ConfigureServerCoreOS_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8640.ConfigureServerCoreOS_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8640.ConfigureServerCoreOS_5F00_0.jpg" /></a><br /><br /></li>
<li>
<p>To enable automatic updates, run the following commands (remember to press ENTER after each line):</p>
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td>
<p><span style="font-family: courier new,courier;"><strong>Net stop wuauserv</strong></span></p>
<p><span style="font-family: courier new,courier;"><strong>Cscript C:\Windows\System32\scregedit.wsf /AU 4</strong></span></p>
<p><span style="font-family: courier new,courier;"><strong>Net start wuauserv</strong></span></p>
</td>
</tr>
</tbody>
</table>
<p><strong></strong>&nbsp;</p>
</li>
<li>
<p>To force <strong>Windows Update</strong> to detect and install any available updates, run the following command:</p>
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong>Wuauclt /detectnow</strong></span></td>
</tr>
</tbody>
</table>
<p><br />&nbsp;</p>
</li>
<li>Since it will be easier to administer <strong>Server Core</strong> machines from a remote desktop, run the following command to enable remote administration:<br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong>Cscript C:\Windows\System32\Scregedit.wsf /AR 0</strong></span></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
<li>Don&rsquo;t install any roles or rename the machine. Once fully configured, run the following command:<br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong>C:\Windows\System32\Sysprep\Sysprep.exe</strong></span></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
<li>Select the options&nbsp;<strong>Enter&nbsp;System-Out-of-Box Experience&nbsp;(OOBE)</strong>,<strong> Generalize</strong> and <strong>Shutdown</strong>:<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5875.ConfigureServerCoreOS_Sysprep.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5875.ConfigureServerCoreOS_5F00_Sysprep.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5875.ConfigureServerCoreOS_Sysprep.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5875.ConfigureServerCoreOS_5F00_Sysprep.jpg" /></a><br /><br /></li>
<li>You now have a new base&nbsp;virtual hard disk that should be less than 8GB (Full) or 3GB (Core).</li>
<li>Finally, remove the BASE&nbsp;virtual machine&nbsp;from Hyper-V Manager; the <strong>BASE.vhd</strong> file will not be deleted.</li>
</ol>
<p>&nbsp;</p>
<h3>Create Differencing VHDs Based on&nbsp;your BASE Virtual Machine Image</h3>
<ol>
<li>Launch <strong>Hyper-V Manager</strong>, right-click your server and then select <strong>New &gt; Hard Disk...</strong><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5428.VDiskWizard_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5428.VDiskWizard_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/5428.VDiskWizard_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/5428.VDiskWizard_5F00_0.jpg" /></a><br /><br /></li>
<li>In the <strong>Choose Disk Type</strong> dialog, select the <strong>Differencing</strong> radio button, and then click the <strong>Next</strong> button.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2275.VDiskWizard_1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2275.VDiskWizard_5F00_1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2275.VDiskWizard_1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2275.VDiskWizard_5F00_1.jpg" /></a><br /><br /></li>
<li>On the <strong>Specify Name and Location</strong> dialog, type a name, specify where you want to save your new differencing hard disk, and then click the <strong>Next</strong> button.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6201.VDiskWizard_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6201.VDiskWizard_5F00_2.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3750.VDiskWizard_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3750.VDiskWizard_5F00_3.jpg"></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3312.VDiskWizard_2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3312.VDiskWizard_5F00_2.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3312.VDiskWizard_2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3312.VDiskWizard_5F00_2.jpg" /></a><br /><br /></li>
<li>On the <strong>Configure Disk</strong> dialog, click the <strong>Browse</strong> button and&nbsp;navigate to the parent hard disk <strong>BASE.vhd&nbsp;</strong><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2605.VDiskWizard_3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2605.VDiskWizard_5F00_3.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2605.VDiskWizard_3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2605.VDiskWizard_5F00_3.jpg" /></a><br /><br /><br /></li>
<li>Finally, review&nbsp;the <strong>Completing the New Virtual Hard Disk Wizard</strong> dialog, and click the&nbsp;<strong>Finish </strong>button.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2275.VDiskWizard_4.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2275.VDiskWizard_5F00_4.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2275.VDiskWizard_4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2275.VDiskWizard_5F00_4.jpg" /></a><br /><br /></li>
<li>You&nbsp;now have a new differencing&nbsp;virtual hard disk&nbsp;that is under&nbsp;200KB in size.&nbsp; Since the differencing VHD file contains only the data required&nbsp;to reference which parent&nbsp;virtual hard disk&nbsp;it was based upon, it can be safely copied and pasted to produce as many&nbsp;new virtual&nbsp;servers as you need.&nbsp; I'd recommend saving the original&nbsp;VHD file&nbsp;so it can be copied to create new machines in the future.&nbsp;<br /><br /><span style="text-decoration: underline;"><strong>WARNING: If you attempt to start or otherwise change the Parent Virtual Hard Disk then all of the differencing hard disks that were based upon it will be BROKEN!</strong></span><br /><br /></li>
</ol>
<h3>Create the Virtual Machines for Your Lab Network</h3>
<ol>
<li>Using the copy/paste method, create&nbsp;6 new differencing virtual hard disks named: DC01, iSCSI-01, SQLNode01, SQLNode02, SQLNode03, SQLNode04.</li>
<li>Run the <strong>New Virtual Machine Wizard</strong> six times; each time&nbsp;creating one of the&nbsp;6 new virtual machines.</li>
<ol>
<li>On the <strong>Configure Networking</strong> dialog, select <strong>External Virtual Network</strong> from the Connection dropdown.</li>
<li>On the <strong>Connect Virtual Hard Disk</strong> dialog, select the <strong>Use an existing virtual&nbsp;hard disk&nbsp;</strong>radio button, and then click the&nbsp;<strong>Browse</strong> button to locate the differencing VHD you created in step 1.<br />&nbsp;</li>
</ol>
<li>Using&nbsp;<strong>Hyper-V Manager</strong>, right-click&nbsp;each new&nbsp;virtual machine, and then select <strong></strong>select <strong>Settings</strong>.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6835.VMSettings_0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6835.VMSettings_5F00_0.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6835.VMSettings_0.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6835.VMSettings_5F00_0.jpg" /></a><br /><br /></li>
<li>In the <strong>Settings</strong> dialog, select <strong>Add Hardware</strong> &gt; <strong>Network Adapter</strong>, and then click the <strong>Add</strong> button&nbsp;to add&nbsp;aditional&nbsp;network adapters.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6457.NewNetworkAdapter.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6457.NewNetworkAdapter.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6457.NewNetworkAdapter.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6457.NewNetworkAdapter.jpg" /></a><br /><br /></li>
<li>For <strong>DC01</strong> (domain controller) and <strong>iSCSI-01</strong> (iSCSI Target), add <span style="text-decoration: underline;">only one</span> more network adapter to connect to <strong>Internal 1.&nbsp; </strong><strong>DC01 </strong>and&nbsp;<strong>iSCSI-01</strong> will be configured&nbsp;with 2 network adapters, 1 external and 1 internal.</li>
<li>For <strong>SQLNode01</strong>, <strong>SQLNode02</strong>, <strong>SQLNode03</strong>, <strong>SQLNode04</strong>, add 3 more network adapters to connect to <strong>Internal 1</strong>, <strong>Internal 2</strong> and <strong>Internal 3</strong>.&nbsp; <strong>SQLNode01</strong>, <strong>SQLNode02</strong>, <strong>SQLNode03</strong>, and&nbsp;<strong>SQLNode04 </strong>will be&nbsp;configured with&nbsp;4 network adapters, 1 external and 3 internal.</li>
</ol>
<p>&nbsp;</p>
<h3>Perform Initial Configurations</h3>
<ol>
<li>Start&nbsp;each of the Virtual Machines, and let the initial setup complete.</li>
<li>Using<strong> Hyper-V Manager</strong>, connect to each virtual server, and then set&nbsp;its Administrator <strong>Password</strong>.</li>
<li>Configure the IP addresses for each network interface as specified in the table below:</li>
<ol>
<li>The <strong>Internal 1</strong> network is used by the DNS/Domain Controller and the iSCSI Target.</li>
<li>The <strong>External Virtual Network</strong> is used only for connecting&nbsp;to the Internet so&nbsp;it can be disabled most of the time.</li>
<li>For all 3 Internal networks on all of the computers:</li>
<ol>
<li>Ensure the <strong>Subnet mask</strong> is set to <strong>255.255.255.0</strong></li>
<li>Ensure the <strong>Preferred DNS server&nbsp;</strong>is set to <strong>192.168.1.1.</strong></li>
<li>This will instruct them to register their names and IP addresses with the DNS server.</li>
</ol></ol>
<li>In the <strong>System Properties</strong> dialog, click the <strong>Change...</strong> button to rename each computer as specified in the table below:<br />
<table border="1" rules="all" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td valign="top"><b>Role</b></td>
<td valign="top"><b>Computer Name</b></td>
<td valign="top"><b>External</b></td>
<td valign="top"><b>Internal 1</b></td>
<td valign="top"><b>Internal 2</b></td>
<td valign="top"><b>Internal 3</b></td>
</tr>
<tr>
<td valign="top">DNS, Domain Controller</td>
<td valign="top">DC01.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.1</td>
<td valign="top">N/A</td>
<td valign="top">N/A</td>
</tr>
<tr>
<td valign="top">iSCSI Target</td>
<td valign="top">iSCSI-01.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.2</td>
<td valign="top">N/A</td>
<td valign="top">N/A</td>
</tr>
<tr>
<td valign="top">SQL Server 1</td>
<td valign="top">SQLNode01.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.3</td>
<td valign="top">192.168.3.3</td>
<td valign="top">192.168.4.3</td>
</tr>
<tr>
<td valign="top">SQL Server 2</td>
<td valign="top">SQLNode02.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.4</td>
<td valign="top">192.168.3.4</td>
<td valign="top">192.168.4.4</td>
</tr>
<tr>
<td valign="top">SQL Server 3</td>
<td valign="top">SQLNode03.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.5</td>
<td valign="top">192.168.3.5</td>
<td valign="top">192.168.4.5</td>
</tr>
<tr>
<td valign="top">SQL Server 4</td>
<td valign="top">SQLNode04.contoso.local</td>
<td valign="top">DHCP</td>
<td valign="top">192.168.2.6</td>
<td valign="top">192.168.3.6</td>
<td valign="top">192.168.4.6</td>
</tr>
</tbody>
</table>
<br /><strong>TIP:</strong> Rename the Network Connections in each virtual machine for easy identification. If you have trouble identifying each connection inside the virtual machine then temporarily set each adapter to <strong>Not Connected</strong> in the <strong>Hyper-V Manager - Settings</strong> dialog. This will cause the corresponding network adapter to display <strong>Network cable unplugged</strong> in <strong>Network and Sharing Center.<br /><br /><br /></strong></li>
<li>On the <strong>Computer Name/Domain Changes</strong> dialog, click the <strong>More...</strong> button, and then set the <strong>Primary DNS suffix of this computer</strong>&nbsp;to <span style="text-decoration: underline;">contoso.local</span> in the <strong>DNS Suffix and NetBIOS Computer Name</strong> dialog.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7824.SetDNSSuffix.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7824.SetDNSSuffix.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7824.SetDNSSuffix.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7824.SetDNSSuffix.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/2148.SetDNSSuffix.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/2148.SetDNSSuffix.jpg"></a><br /><br /></li>
<li>The <strong>Full computer name</strong> should be displayed&nbsp;including the DNS suffix in the <strong>Computer Name/Domain Changes&nbsp;</strong>dialog:<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8484.SetComputerName.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8484.SetComputerName.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8484.SetComputerName.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8484.SetComputerName.jpg" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3465.SetComputerName.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3465.SetComputerName.jpg"></a><br /><br /></li>
<li>&nbsp;Select the <strong>Domain</strong> radio button in the <strong>Member of</strong> control group, enter <strong>contoso.local</strong> in the text box, and then&nbsp;click the <strong>OK</strong> button to join the computer to the domain.</li>
</ol>
<p>&nbsp;</p>
<h3>Install the Domain Name Services&nbsp;(DNS) Server&nbsp;Role</h3>
<p>The first task you must complete&nbsp;to&nbsp;establish your new dev/test lab network is to create a&nbsp;Domain Name Services (DNS) server&nbsp;and an Active Directory Domain Services domain controller to serve as the root of your new AD Forest.</p>
<h4>To install the DNS Server&nbsp;role on a <strong>Full Server Installation&nbsp;</strong>follow these steps:</h4>
<ol>
<li>
<p>Start the <strong>Server Manager</strong>, right-click <strong>Roles</strong>, and then select <strong>Add Roles </strong>from the action menu.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7230.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7230.ServerMgr_5F00_AddRole.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/7230.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/7230.ServerMgr_5F00_AddRole.jpg" /></a><br /><br /></p>
</li>
<li>
<p>Next, select the&nbsp;<strong>DNS Server&nbsp;</strong>role, and then click the <strong>Next</strong> button<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4263.AddRolesWizard_DNS.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4263.AddRolesWizard_5F00_DNS.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/4263.AddRolesWizard_DNS.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/4263.AddRolesWizard_5F00_DNS.png" /></a></p>
</li>
<li>After the <strong>DNS Server&nbsp;role</strong> installation has been&nbsp;successfully completed, create one <strong>Primary Forward Lookup Zone</strong> for the <strong>contoso.local</strong> domain, and three <strong>Primary Reverse Lookup Zones</strong>; one for each of the three <em>internal</em> subnets you created earlier (<strong>192.168.2.<em>x</em></strong>, <strong>192.168.3.<em>x</em></strong>, and <strong>192.168.4.<em>x</em></strong>).&nbsp; Allow both non-secure and secure dynamic updates.<br /><br /></li>
<li>Next, from each of your new server machines, register their IP Configurations with the DNS server by openning a command prompt dialog and typing:<br /><br />
<table style="width: 100%; background-color: #000000;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong><span style="color: #ffffff;">ipconfig /registerdns</span></strong></span></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
<li>Finally, open the <strong>DNS Manager</strong> on your new domain controller and confirm that each of your servers appear in the domain catalog.&nbsp;</li>
</ol>
<h3>Install the Active Directory Domain Services Role</h3>
<p>After&nbsp;the DNS role&nbsp;has been successfully installed and configured&nbsp;we must&nbsp;next install the Active Directory Domain Services role and create the&nbsp;Contoso.local domain as the&nbsp;first domain in a new forest.&nbsp;&nbsp;</p>
<h4>To install the&nbsp;Active Directory Domain Services&nbsp;role on a Full Server Installation follow these steps:</h4>
<ol>
<li>Start the <strong>Server Manager</strong>, right-click <strong>Roles</strong>, and then select <strong>Add Roles </strong>from the action menu.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8535.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8535.ServerMgr_5F00_AddRole.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/8535.ServerMgr_AddRole.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/8535.ServerMgr_5F00_AddRole.jpg" /></a><br /><br /><br /></li>
<li>Next, select the&nbsp;<strong>Active Directory Domain Services</strong>&nbsp;role, and then click the <strong>Next</strong> button.<strong><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3757.AdRolesWizard_AD.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3757.AdRolesWizard_5F00_AD.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/3757.AdRolesWizard_AD.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/3757.AdRolesWizard_5F00_AD.png" /></a><br /><br /></strong></li>
</ol>
<h4>To install the DNS Server role and the&nbsp;Active Directory Domain Services&nbsp;role on a Server Core Installation follow these steps:</h4>
<p>If you ran a <strong>Server Core Installation</strong> then you cannot use the Active Directory Domain Controller Installation Wizard (Dcpromo.exe). This is especially true since <strong>DC01</strong> will be the first server introduced into your new environment, and as a result, there will be no other Windows Server 2008 machine that can be used to host the remote server administration tools.&nbsp;In this case installing DNS and Active Directory must be accomplished via the command-line interface using <strong>Dcpromo.exe</strong>.&nbsp; It's easies to use an <strong>unattend file</strong> to install or remove the domain controller role and the DNS role as an integrated part of the process.&nbsp; You could run <strong>dcpromo.exe</strong> on another computer running Windows Server 2008 R2 to&nbsp;create an unattend file that you can then use on the server running Server Core installation, but the syntax really isn't all that complex so here we will simply create one in-place on the server using <strong>Notepad</strong>.</p>
<ol>
<li>To create the unattend file open a new Notepad document by typing the following command at the command prompt.<br /><br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong>Notepad</strong></span></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
<li>Next, type the following commands, striking ENTER after each line:<br /><br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td>
<p><strong><span style="font-family: courier new,courier;">[DCINSTALL] </span></strong><br /><strong><span style="font-family: courier new,courier;">InstallDNS=yes</span></strong><br /><strong><span style="font-family: courier new,courier;">NewDomain=forest</span></strong><br /><strong><span style="font-family: courier new,courier;">NewDomainDNSName=contoso.local</span></strong><br /><strong><span style="font-family: courier new,courier;">DomainNetBiosName=contoso</span></strong><br /><strong><span style="font-family: courier new,courier;">SiteName=FirstSiteName</span></strong><br /><strong><span style="font-family: courier new,courier;">ReplicaOrNewDomain=domain</span></strong><br /><strong><span style="font-family: courier new,courier;">ForestLevel=4</span></strong><br /><strong><span style="font-family: courier new,courier;">DomainLevel=4</span></strong><br /><strong><span style="font-family: courier new,courier;">DatabasePath=%systemroot%\NTDS </span></strong><br /><strong><span style="font-family: courier new,courier;">LogPath=%systemroot%\LOG</span></strong><br /><strong><span style="font-family: courier new,courier;">RebootOnCompletion=yes</span></strong><br /><strong><span style="font-family: courier new,courier;">SYSVOLPath=%systemroot%\SYSVOL</span></strong><br /><strong><span style="font-family: courier new,courier;">SafeModeAdminPassword="<em>Your_Secure_Password"</em></span></strong></p>
</td>
</tr>
</tbody>
</table>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></li>
<li>When your finished, simply save the file to the root of the <strong>C:\</strong>&nbsp;drive by clicking <strong>File | Save As, </strong>supplying the name ad_unattend.txt, clicking the&nbsp;<strong>c:\</strong> folder, and then clicking the <strong>OK</strong> button to finish.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6433.SaveADUnattendFile.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6433.SaveADUnattendFile.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/49/38/6433.SaveADUnattendFile.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-49-38/6433.SaveADUnattendFile.jpg" /></a><br /><br />&nbsp;</li>
<li>Then, to install the <strong>DNS and Active Directory Domain Services</strong> roles on a <strong>Server Core</strong> instance of WIndows Server 2008 R2, run the following command:<br /><br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><strong><strong>dcpromo /unattend:</strong>C:\ad_unattend.txt</strong></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Series: Building a SQL Server 2012 AlwaysOn Virtual Lab</title>
      <link>https://docs.microsoft.com/archive/blogs/jtupitza/series-building-a-sql-server-2012-alwayson-virtual-lab</link>
      <pubDate>Mon, 23 Jan 2012 08:34:00 GMT</pubDate>
      <dc:creator><![CDATA[Jon Tupitza]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jtupitza/2012/01/23/series-building-a-sql-server-2012-alwayson-virtual-lab/</guid>
      <description><![CDATA[Overview
In this series of posts I will share how to build a virtual development &amp; test lab for...]]></description>
      <content:encoded><![CDATA[<h2>Overview</h2>
<p>In this series of posts I will share how to build a virtual development &amp; test lab for the purpose of experiencing the process of implementing the new SQL Server 2012 "Denali" high-availability and disaster recovery features.&nbsp; What's more, this&nbsp;lab can then be used to explore some of SQL Server 2012's other other new features.&nbsp; Since many of&nbsp;us do not have&nbsp;our own rack full server hardware, including storage area network (SAN) devices, I will demonstrate the process of hosting the entire lab in a Windows 2008 R2 Hyper-V host&nbsp;<strong>Boot-to-VHD&nbsp;</strong>server environment.&nbsp; For the purpose of enhancing&nbsp;its reusablility I will break the process of&nbsp;creating this&nbsp;lab into the following&nbsp;separate posts:</p>
<ol>
<li><a title="Create a Hyper-V Host System Using Boot-to-VHD" href="https://blogs.msdn.com/b/jtupitza/archive/2011/11/21/create-a-hyper-v-host-system-using-boot-to-vhd.aspx">Create a Hyper-V Host System Using Boot-to-VHD</a></li>
<li><a title="Create a Windows 2008 R2 Hyper-V Lab Network" href="https://blogs.msdn.com/b/jtupitza/archive/2012/01/23/create-a-host-environment-that-simulates-a-windows-2008-r2-network.aspx">Create a Windows 2008 R2 Hyper-V&nbsp;Lab Network</a></li>
<li><a title="Create a Virtual Shared Storage Solution in a Hyper-V Lab" href="https://blogs.msdn.com/b/jtupitza/archive/2012/01/23/creating-a-virtual-storage-solution-to-support-windows-failover-clustering-in-a-hyper-v-environment.aspx">Create&nbsp;a Virtual Shared Storage Solution in a Hyper-V Lab</a></li>
<li><a title="Creae a Windows 2008 R2 Failover Cluster in a Hyper-V Lab" href="https://blogs.msdn.com/b/jtupitza/archive/2012/01/23/creating-a-windows-2008-r2-failover-cluster.aspx">Create a Windows 2008 R2 Failover Cluster in a Hyper-V Lab</a></li>
<li><a title="Configure a SQL Server 2012 AlwaysOn Cluster for High-Availability Support" href="https://blogs.msdn.com/b/jtupitza/archive/2012/01/23/configuring-a-sql-server-2012-alwayson-cluster-for-high-availability-support.aspx">Configure a SQL Server 2012 AlwaysOn&nbsp;Cluster for High-Availability Support</a></li>
<li><a title="Configure SQL Server 2012 AlwaysOn Availability Groups for Disaster Recovery Support" href="https://blogs.msdn.com/b/jtupitza/archive/2012/01/23/configuring-sql-server-2012-alwayson-availability-groups-for-disaster-recovery-support.aspx">Configure SQL Server 2012 AlwaysOn Availability Groups for Disaster Recovery Support</a></li>
</ol>
<h2>What You Will Need</h2>
<p>In order to complete the exercises described in this series you will need the following software.</p>
<ul>
<li>Windows Server 2008 R2 with SP1 Evaluation <br /><a href="https://technet.microsoft.com/en-us/evalcenter/dd459137.aspx">https://technet.microsoft.com/en-us/evalcenter/dd459137.aspx</a></li>
<li>SQL Server 2012 RC0 or newer<br /><a href="https://technet.microsoft.com/en-us/evalcenter/hh225126.aspx">https://technet.microsoft.com/en-us/evalcenter/hh225126.aspx</a></li>
<li>Optionally you could choose to experiment with SQL Server 2008 R2 Evaluation <br /><a href="https://technet.microsoft.com/en-us/evalcenter/ee315247.aspx">https://technet.microsoft.com/en-us/evalcenter/ee315247.aspx</a></li>
<li>Microsoft iSCSI Software Target 3.3<br /><a href="https://www.microsoft.com/download/en/details.aspx?id=19867">https://www.microsoft.com/download/en/details.aspx?id=19867</a></li>
</ul>
<p><br />Of course, if you have an MSDN or TechNet Subscription, you could choose to download the software from those sources instead.</p>
<h2>Assumptions</h2>
<p>This series will assume the reader commands at least a basic familiarity with the following technologies:</p>
<ul>
<li>Windows Server 2008 R2 administration and configuration</li>
<li>Hyper-V Administration</li>
<li>Networking concepts, tools&nbsp;and procedures</li>
<li>Domain Name Services (DNS)</li>
<li>Active Directory Domain Services (AD-DS)</li>
<li>iSCSI Software Target 3.3</li>
<li>iSCSI Initiator</li>
<li>Failover Clustering (WSFC)</li>
<li>SQL Server Administration</li>
</ul>
<p>Although detailed step-by-step instructions will be provided for each activity, and the reader will develop skills using many of the above technologies, certain gaps will inevitably ocurr that cannot be foreseen.</p>
<h2>Summary</h2>
<p>This series of posts has demonstrated using a broad suite of technologies to help you build your own virtual labs.&nbsp;The process featured implementing Windows 2008 R2's "Boot-to-VHD" capability to make maximum use of underlying hardware resources, using Windows 2008 R2's Hyper-V role to host a virtual network, using Windows Storage Server's capability to simulate iSCSI storage in a virtual lab, implementing a Windows Server 2008 R2 Failover Cluster, installing a SQL Server 2012 AlwaysOn high-availability cluster, and configuring SQL Server 2012's AlwaysOn Availability Groups (AGs).</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Improve the Performance of Reporting Services Parameterized Reports</title>
      <link>https://docs.microsoft.com/archive/blogs/jtupitza/improve-the-performance-of-reporting-services-parameterized-reports</link>
      <pubDate>Wed, 23 Nov 2011 04:55:00 GMT</pubDate>
      <dc:creator><![CDATA[Jon Tupitza]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jtupitza/2011/11/23/improve-the-performance-of-reporting-services-parameterized-reports/</guid>
      <description><![CDATA[Summary
If you've ever developed SQL Server Reporting Services 2008 R2 reports with more than a...]]></description>
      <content:encoded><![CDATA[<h2>Summary</h2>
<p>If you've ever developed SQL Server Reporting Services 2008 R2 reports with more than a just few parameters then you may be aware that those reports may take a while to load.&nbsp; This post will reviel a few tricks and work-arounds I've discovered while delivering similar reports.&nbsp; The information reflects not only my own experience, but the collective experience of SSRS product group members, and other consultants at Microsoft.</p>
<h2>Problem Statement</h2>
<p>SQL Server 2008 R2 Reporting Services reports experience performance degradation as greater numbers of parameters are added to the report design.&nbsp; The degradation appears to center around the rendering of the parameter display panel wherein the default &ldquo;cascading&rdquo; behavior of the parameter panel appears to play a major part in the unacceptable performance.&nbsp;What&rsquo;s more, the performance degradation appears to occur on the client machine rather than on the server.&nbsp;During report execution resource consumption on the data source server barely registers with the results of queries returning instantaneously.&nbsp; However, on the client machine CPU consumption spikes dramatically.</p>
<h2>Solution Alternatives</h2>
<h3>Server Configuration:</h3>
<ul>
<li><span style="text-decoration: underline;">Use Cumulative Update 7 (CU7) for the RS Add-in for SharePoint</span>: It has been observed that the best performing configuration for SharePoint/Reporting Service integration indicates the use of Cumulative Update 7 (CU7) for the Reporting Services Add-in for SharePoint.&nbsp; Any subsequent attempt to upgrade RS Add-in to Service Pack 1 (SP1) results in the return of the unacceptable performance degradation.</li>
<li><span style="text-decoration: underline;">Ensure the use of a 64-bit platform:</span>&nbsp; Installing SSRS on 64-bit server platforms enable the access of far greater amounts of memory than 32-bit platforms.&nbsp; Memory in SSRS 2008 is used more efficiently at the data structure level. Under intensive workload pressures, it uses a file system cache in order to reduce memory utilization. By being more efficient and writing to disk, it can process more report executions (even large reports) successfully. The administrator uses settings to determine when SQL Server 2008 Reporting Services starts to use the file system cache and how aggressively the cache is used. The administrator should consider configuring memory settings for the SQL Server 2008 Reporting Services to optimally use their computer resources. Fine-tuning these settings can provide an increase in performance under intensive workload over the default configuration.</li>
<li><span style="text-decoration: underline;">Use cache execution</span> wherever reports do not require live execution. By enabling the cache execution setting, a temporary copy of the report is cached in memory; thus, preventing the re-execution of report queries each subsequent time the report is executed.</li>
<li><span style="text-decoration: underline;">Scheduled Execution</span> can be used to cause a report execution snapshot to be stored in the RS database.&nbsp; This can be scheduled for non-peak hours that remain synchronized with the refresh interval of the data source.&nbsp; This ensures that unnecessary report executions do not occur by using the report snapshot to render the report for the calling user rather than the report itself.</li>
<li><span style="text-decoration: underline;">Prepopulate the Report Cache by Using Data-Driven Subscriptions for Parameterized Reports</span>: For large parameterized reports, performance is improved by prepopulating the report cache using data-driven subscriptions. Data-driven subscriptions enable easier population of the cache for set combinations of parameter values that are frequently used when the parameterized report is executed. Note that if you choose a set of parameters that are not used, you take on the cost of running the cache with little value in return. Therefore, to identify the more frequent parameter value combinations, analyze the ExecutionLog2 view. Ultimately, when a user opens a report, the report server can use a cached copy of the report instead of creating the report on demand.</li>
</ul>
<h3>Report Design:</h3>
<ul>
<li><span style="text-decoration: underline;">Control the size of reports</span> by designing them with fewer numbers of parameters.</li>
<li><span style="text-decoration: underline;">Cache the results of parameter dataset queries</span> in the form of text-strings on the RS server&rsquo;s local file system, and then pass those text strings to populate the UI controls rather than re-executing queries.&nbsp; This should reduce the amount of data being passes across the network.</li>
<li><span style="text-decoration: underline;">Consider developing an ASP.NET Report Display Page</span> featuring its own parameter control panel that can be optimized to handle parameter datasets and values using finer-grained controls than are available via the Reporting Services ReportView control.</li>
</ul>
<h4>How to Disable the "Cascading" Behavior of Multiple Parameters</h4>
<p>When designing reports with multiple parameters the default behavior is to create a dependency between each of the parameters.&nbsp; This causes each parameter to be refreshed when any of the other parameters is configured at run-time.&nbsp; This causes each parameters dataset to be refreshed; thus causing additional latency.&nbsp; This behavior should be disabled for any parameters that do not actually require filtering by the other report parameters.</p>
<ol>
<li>Double-click the dataset for the parameter under the "Datasets" folder&nbsp;in the "Report Data" pane to open the "Dataset Properties" dialog.</li>
<li>Next&nbsp;select the "Parameters" item in the left-hand pane then select each parameter in the list and click the "Delete" button to remove the parameter.</li>
<li>Select the "Query" item in the left-hand pane, and then click the "Query Designer..." button to open the query designer dialog.</li>
<li>Delete the references to the parameters that are present in the "FROM" clause of the MDX query.</li>
<li>Execute the query to verify that it returns the appropriate values.</li>
<li>Click "OK" to close the query designer and close the dialog.</li>
</ol>
<p>This should remove dependencies between parameters; thus disabling the "cascading" behavior.</p>
<h4>How to Replace a Date Dimension DropDownList Parameter Control with a DateTime Picker</h4>
<ol>
<li>Double-click the Date dimension Parameter under the "Parameters" folder in the "Report Data" pane to open the "Report Parameter Properties" dialog.</li>
<li>On the "General" tab change the data type for the parameter to Date/Time in the "Data type:" dropdown list.</li>
<li>Click the "Available Values" item in the left-hand pane and select the "None" radio button in the "Choose the available values for this parameter" dialog.</li>
<li>Click the "Default Values" item in the left-hand pane, click the "Specify values" radio button, and then click the "Add" button to create a default value.&nbsp; Next click the&nbsp; expression button next to the new&nbsp;default value, and type an expression that resolves to a valid&nbsp;DateTime value; e.g., "=Today", or "=DateAdd(DateInterval.Day, -Today.Day, Today)".</li>
<li>Next, double-click the dataset for the report body under the "Datasets" folder in the "Report Data" pane to open the "Dataset Properties" dialog.</li>
<li>Click the expression button next to the "Parameter Value" dropdown list for the DateTime parameter whose value you need to specify, and then enter an expression that uses the parameters' DateTime value to concatenate a string that resolves to a valid member expression for the Date dimension that is specified in the the MDX query for the dataset.</li>
<ol>
<li>From Date &ndash; Click the expression button next to the appropriate parameter and enter an expression in the following format<br />
<table style="width: 90%; background-color: #c0c0c0;" border="0" cellpadding="4">
<tbody>
<tr>
<td><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b><span style="color: #ff0000;"><span style="color: #000000;">=</span>&ldquo;[Start Date].[FriendlyDate].&amp;[&ldquo;</span> + CDate(Parameters!StartDate.Value).Year.ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + IIF(CDate(Parameters!StartDate.Value).Month &lt;= 6, <span style="color: #ff0000;">&ldquo;1"</span>, <span style="color: #ff0000;">&ldquo;2"</span>) + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + DatePart(DateInterval.Quarter, CDate(Parameters!StartDate.Value)).ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + CDate(Parameters!StartDate.Value).Month,ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + Format(CDate(Parameters!StartDate.Value), <span style="color: #ff0000;">&ldquo;s&rdquo;</span>) + <span style="color: #ff0000;">&ldquo;]&rdquo;</span></b></span></td>
</tr>
</tbody>
</table>
<span style="font-family: courier new,courier;">&nbsp;</span></li>
<li>To Date &ndash; Click the expression button next to the appropriate parameter and enter an expression in the following format<br />
<table style="width: 90%; background-color: #c0c0c0;" border="0" cellpadding="4">
<tbody>
<tr>
<td><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b>=<span style="color: #ff0000;">&ldquo;[End Date].[FriendlyDate].&amp;[&ldquo;</span> + CDate(Parameters!EndDate.Value).Year.ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + IIF(CDate(Parameters!EndDate.Value).Month &lt;= 6, <span style="color: #ff0000;">&ldquo;1"</span>, <span style="color: #ff0000;">&ldquo;2"</span>) + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + DatePart(DateInterval.Quarter, CDate(Parameters!EndDate.Value)).ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + CDate(Parameters!EndDate.Value).Month,ToString() + <span style="color: #ff0000;">&ldquo;]&amp;[&ldquo;</span> + Format(CDate(Parameters!EndDate.Value), <span style="color: #ff0000;">&ldquo;s&rdquo;</span>) + <span style="color: #ff0000;">&ldquo;]&rdquo;</span></b></span></td>
</tr>
</tbody>
</table>
<br /><br /></li>
</ol></ol>
<p>Notice that the only difference between the two expressions is the parameter value being used; the from date uses <b><i>Parameters!StartDate</i></b> and the to date uses <b><i>Parameters!EndDate</i></b>. Remember that these values must reflect the names being used in your OLAP database since Date and Time dimensions often serve as role-playing dimensions and may have a very different name. The purpose is to build a string representation of a dimension expression that may resemble the following format:<br /><br /><b>[End Date].[FriendlyDate].[<i>Year</i>].[<i>Semester</i>].[<i>Quarter</i>].[<i>Month</i>].[<i>2011-11-22T00:00:00</i>]:</b></p>
<p>The italicized values need to be resolved using the values supplied by the Date/Time picker control in the Reporting Services Report Viewer user interface.</p>
<ul>
<li>To derive the Year:</li>
<ul>
<li><b><span style="font-family: courier new,courier; background-color: #c0c0c0;">CDate(Parameters!<i>ParamName</i>.Value).Year.ToString()</span><br /></b><b></b></li>
</ul>
<li>To derive the Semester:</li>
<ul>
<li><span style="font-family: courier new,courier; background-color: #c0c0c0;">I<b>IF(CDate(Parameters!<i>ParamName</i>.Value).Month &lt;= 6, <span style="color: #ff0000;">&ldquo;1"</span>, <span style="color: #ff0000;">&ldquo;2"</span>)<br /></b></span><b></b></li>
</ul>
<li>To derive the Quarter:</li>
<ul>
<li><b><span style="font-family: courier new,courier; background-color: #c0c0c0;">DatePart(DateInterval.Quarter, CDate(Parameters!<i>ParamName</i>.Value)).ToString()</span><br /></b><b></b></li>
</ul>
<li>To derive the Month:</li>
<ul>
<li><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b>CDate(Parameters!<i>ParamName</i>.Value).Month,ToString()<br /></b><b></b></span></li>
</ul>
<li>To derive the Member Date:</li>
<ul>
<li><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b>Format(CDate(Parameters!<i>ParamName</i>.Value), <span style="color: #ff0000;">&ldquo;s&rdquo;</span>)<br /></b></span><b></b></li>
</ul>
</ul>
<h4>&nbsp;How to Replace a&nbsp;Boolean Dimension Attribute DropDownList Parameter Control with a Checkbox Control</h4>
<ol>
<li>Double-click the parameter under the "Parameters" folder in the "Report Data" pane to open the "Report Parameter Properties" dialog.</li>
<li>On the "General" tab change the data type for the parameter to <strong><em>Boolean</em></strong> in the "Data type:" dropdown list, and then check the "Allow null value" checkbox.</li>
<li>Click the "Available Values" item in the left-hand pane and select the "None" radio button in the "Choose the available values for this parameter" dialog.</li>
<li>Click the "Default Values" item in the left-hand pane, and then click the "No default&nbsp;value" radio button.</li>
<li>Click the "Advanced" item in the left-hand pane, and then click the "Never refresh" radio button.</li>
<li>Next, double-click the dataset for the report body under the "Datasets" folder in the "Report Data" pane to open the "Dataset Properties" dialog.</li>
<li>Click the expression button next to the "Parameter Value" dropdown list for the&nbsp;boolrsn parameter whose value you need to specify, and then enter an expression that uses the parameters' value to concatenate a string that resolves to a valid member expression for the dimension that is specified in the the MDX query for the dataset.<br />
<table style="width: 90%; background-color: #c0c0c0;" border="0" cellpadding="4">
<tbody>
<tr>
<td><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b>=<span style="color: #ff0000;">&rdquo;[<em>Dimension Name</em>].[<em>Attribute Name</em>]&rdquo;</span> + IIF(IsNothing(Parameters!<em>ParameterName</em>.Value), <span style="color: #ff0000;">&ldquo;.[All Members]&rdquo;</span>, IIF(CBool(Parameters!<em>ParameterName</em>), <span style="color: #ff0000;">&ldquo;.&amp;[Yes]&rdquo;</span>, <span style="color: #ff0000;">&ldquo;.&amp;[No]&rdquo;</span>))</b></span></td>
</tr>
</tbody>
</table>
</li>
</ol>
<p style="padding-left: 30px;" class="CodeSample"><span style="font-family: courier new,courier; background-color: #c0c0c0;"><b></b></span>&nbsp;</p>
<h4 class="CodeSample"><span style="background-color: #ffffff;"><b>How to Replace a&nbsp;DropDownList Parameter Control with a Textbox Control</b></span></h4>
<ol>
<li>Double-click the parameter under the "Parameters" folder in the "Report Data" pane to open the "Report Parameter Properties" dialog.</li>
<li>On the "General" tab change the data type for the parameter to <strong><em>Text </em></strong>in the "Data type:" dropdown list, and then check the "Allow blank value" checkbox.</li>
<li>Click the "Available Values" item in the left-hand pane and select the "None" radio button in the "Choose the available values for this parameter" dialog.</li>
<li>Click the "Default Values" item in the left-hand pane, and then click the "No default value" radio button.</li>
<li>Click the "Advanced" item in the left-hand pane, and then click the "Never refresh" radio button.</li>
<li>Next, double-click the dataset for the report body under the "Datasets" folder in the "Report Data" pane to open the "Dataset Properties" dialog.</li>
<li>Click the expression button next to the "Parameter Value" dropdown list for the boolrsn parameter whose value you need to specify, and then enter an expression that uses the parameters' value to concatenate a string that resolves to a valid member expression for the dimension that is specified in the the MDX query for the dataset.<br /><br />
<table style="width: 90%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><span style="font-family: courier new,courier;"><strong>=<span style="color: #ff0000;">"[<em>Dimension Name</em>].[<em>Attribute Name</em>]&rdquo;</span> + IIF(Parameters!<em>ParameterName</em>.Value.ToString() = <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">&ldquo;.[All Members]&rdquo;</span>, <span style="color: #ff0000;">".&amp;["</span> + Parameters!<em>ParameterName.</em>Value.ToString() + <span style="color: #ff0000;">&ldquo;]&rdquo;</span>)</strong></span></td>
</tr>
</tbody>
</table>
<span style="font-family: courier new,courier; background-color: #c0c0c0;"><b></b></span></li>
</ol>
<p class="CodeSample"></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Part 1: Create a Hyper-V Host Using Boot-to-VHD</title>
      <link>https://docs.microsoft.com/archive/blogs/jtupitza/part-1-create-a-hyper-v-host-using-boot-to-vhd</link>
      <pubDate>Mon, 21 Nov 2011 07:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Jon Tupitza]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/jtupitza/2011/11/21/part-1-create-a-hyper-v-host-using-boot-to-vhd/</guid>
      <description><![CDATA[Introduction
The advent of Windows Server 2008 R2 and Windows 7 brought with it a fantastic new...]]></description>
      <content:encoded><![CDATA[<h2>Introduction</h2>
<p>The advent of Windows Server 2008 R2 and Windows 7 brought with it a fantastic new capability that greatly enhances our experience&nbsp;with creating lab and test environments: Boot to Virtual Hard Disk (Boot-to-VHD).&nbsp; Unlike VirtualPC virtual machines, "Boot to VHD" VM's utilize underlying hardware resources directly rather than via emulation, and this translates into improved performance. The virtual hard disk file can host the operating system and all its contained resources in one easy-to-manage container.&nbsp;&nbsp;Using "Boot to VHD"&nbsp;you can&nbsp;create a Windows&nbsp;Server 2008 R2 host server that runs the Hyper-V role that, in turn,&nbsp;can host&nbsp;an extensive environment made up of multiple guest systems&nbsp;that mimic an&nbsp;entire domain.&nbsp;&nbsp;This approach eases the creation&nbsp;of&nbsp;development&nbsp;and test environments and can leverage most of the services and capabilties that would be found on a production network: Active Directory Domain Services, DNS, Certificate Authorities, File and Print Servers, Datababase Management Servers, Web and Application Servers, SharePoint 2010 Servers; the list goes on! &nbsp;What's more,&nbsp;an entire lab environment can then be backed-up atomicly just by backing-up a single file.&nbsp; Using this approach snapshots can be created&nbsp;that capture your&nbsp;lab environment at critical states simply by backing-up a single VHD file at strategic points&nbsp;during its development.</p>
<h3><strong>How to install a VHD-Boot machine</strong></h3>
<ol>
<li>First, format a USB thumb drive (4GB&nbsp;minimum) using Windows Server 2008 R2, and then copy the contents of a Windows Server 2008 R2 ISO file to&nbsp;that USB stick.&nbsp;</li>
<ol>
<li>If you don't have a tool to open an ISO file, you can&nbsp;burn the ISO file to a DVD, and then copy&nbsp;its files to the USB stick.</li>
<li>Optionally,&nbsp;you can boot directly from&nbsp;the WIndows Server 2008 R2 DVD.</li>
</ol>
<li>Next, boot the system&nbsp;using either&nbsp;the setup DVD or the<span style="color: #000000;"> USB Stick created in step 1</span>.</li>
<li>At the setup screen, instead of choosing &ldquo;Install Now&rdquo;, press <strong>&ldquo;Shift-F10&rdquo;</strong> to&nbsp;enter into the preboot command line mode<em>.</em></li>
<li>Type <strong>DISKPART and then press ENTER </strong>to start the disk partitioning utitlity.</li>
<li>Create a new VHD file by entering:<br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><strong>CREATE VDISK FILE=&rdquo;X:\path\to\<em>VHDImageFile</em>.vhd&rdquo; TYPE=expandable MAXIMUM=maxsizeInMegabyte</strong></td>
</tr>
</tbody>
</table>
<br /><br /><br /></li>
<li>To create a <strong><em>differencing</em></strong> virtual hard disk file you'll need to add&nbsp;the following&nbsp;additional parameter to the "CREATE VDISK" statement:<br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" align="left">
<tbody>
<tr>
<td>&nbsp;<strong>PARENT=&rdquo;X:\path\to\<em>ParentVHDImageFile</em>.vhd&rdquo;</strong>.</td>
</tr>
</tbody>
</table>
<br /><br /></li>
<li>Now you can select the newly created&nbsp;VHD and attach it as a physical disk. <br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><strong>SELECT VDISK FILE=&rdquo;X:\path\to\<em>VHDImageFile</em>.vhd&rdquo; <br />ATTACH VDISK</strong></td>
</tr>
</tbody>
</table>
<br /><br /><br /><br /></li>
<li>Proceed the normal setup, but make sure you install to the correct disk (normally the last one), ignore the &ldquo;Windows cannot install to this disk&rdquo; warning!!</li>
<li>At next startup, you&rsquo;ll see your new&nbsp;"Windows&nbsp;Server 2008 R2"&nbsp;in the boot menu!</li>
</ol>
<p><em>Also, y</em><em>ou can&nbsp;manually add an existing&nbsp;VHD to the boot menu&nbsp;by using a command-line tool called </em><span style="text-decoration: underline;"><strong>BCDEdit</strong></span><em><em><em>, you just need to copy an existing&nbsp; boot menu entry and set some parameters:</em></em></em></p>
<ol>
<li>First you must type the following command in order to make a copy of an existing boot entry.&nbsp; Typically this will either be the <strong>{current}</strong> entry or the <strong>{default}</strong> entry (it's the same if only one entry exists):<br />
<table style="width: 100%; background-color: #c0c0c0;" border="0" align="left">
<tbody>
<tr>
<td><strong></strong><strong>BCDEDIT /copy {current} /d "Windows 2008 Server R2"</strong></td>
</tr>
</tbody>
</table>
<br /><br /></li>
<li>When the command completes it will return a GUID.&nbsp; Copy that GUID (Including the curly-braces).</li>
<li>Execute the following commands, replacing <strong>{newguid}</strong>with the GUID that was returned in the preceding step.&nbsp;
<table style="width: 100%; background-color: #c0c0c0;" border="0" cellpadding="4" align="left">
<tbody>
<tr>
<td><strong>BCDEDIT /set {newguid} device vhd=[D:]\filepath\<em>VHDImageFile</em>.vhd </strong><br /><strong>BCDEDIT /set {newguid} osdevice vhd=[D:]\filepath\<em>VHDImageFile</em>.vhd </strong><br /><strong>BCDEDIT /set {newguid} detecthal on</strong></td>
</tr>
</tbody>
</table>
</li>
</ol>
<p style="padding-left: 30px;">&nbsp;<br /><strong>NOTE:</strong> When supplying the drive letter where your VHD file resides, you must retain the square brackets; e.g., <em>vhd=</em> <strong>[D:] </strong><em>\filepath\VHDImageFile.vhd</em></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>