<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Virtual Varia : Hyper-V How To</title><link>http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx</link><description>Tags: Hyper-V How To</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How To: Install Ubuntu 9.04 in a Hyper-V VM</title><link>http://blogs.msdn.com/mikekol/archive/2009/04/23/how-to-install-ubuntu-9-04-in-a-hyper-v-vm.aspx</link><pubDate>Fri, 24 Apr 2009 03:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565763</guid><dc:creator>mikekol</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/9565763.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=9565763</wfw:commentRss><description>&lt;P&gt;The&amp;nbsp;webbernetz are abuzz with news that a new version of Ubuntu has been released today.&amp;nbsp; As such, I figured that I should post instructions on how to get it going under Hyper-V.&lt;/P&gt;
&lt;P&gt;Now, I know that these steps are pretty complex, so I'll try to use as much detail as I can when writing them out.&lt;/P&gt;
&lt;P&gt;Step 1.&amp;nbsp; Download the ISO for Ubuntu.&lt;BR&gt;Step 2.&amp;nbsp; Create a VM and attach the ISO to it.&amp;nbsp; Use a Legacy Network Adapter if you need network access.&lt;BR&gt;Step 3.&amp;nbsp; Turn the VM on.&lt;BR&gt;Step 4.&amp;nbsp; Follow the on-screen instructions.&lt;/P&gt;
&lt;P&gt;That's it.&amp;nbsp; It works right "out of the box", so to speak.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9565763" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Miscellaneous+V/default.aspx">Miscellaneous V</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Random+Seed/default.aspx">Random Seed</category></item><item><title>More PowerShell in R2 tricks</title><link>http://blogs.msdn.com/mikekol/archive/2009/02/12/more-powershell-in-r2-tricks.aspx</link><pubDate>Thu, 12 Feb 2009 23:30:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9415720</guid><dc:creator>mikekol</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/9415720.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=9415720</wfw:commentRss><description>&lt;p&gt;The other day, Ben Armstrong posted the steps for &lt;a href="http://blogs.msdn.com/virtual_pc_guy/archive/2009/02/10/enabling-powershell-on-hyper-v-server-2008-r2.aspx"&gt;installing Windows PowerShell on Hyper-V Server 2008 R2&lt;/a&gt;.&amp;#160; How awesome is that?&amp;#160; A real, modern, powerful shell on Hyper-V Server!&lt;/p&gt;  &lt;p&gt;It should be noted that this also works on Windows Server 2008 R2 Core SKUs, so if you’re running Hyper-V on one of those, you can also use this trick.&lt;/p&gt;  &lt;p&gt;So why is this cool?&lt;/p&gt;  &lt;p&gt;Well, first of all, if you install PowerShell on a Server Core SKU, you can use a new and more powerful tool for installing and configuring server roles and features.&lt;/p&gt;  &lt;p&gt;To do this, you need to load the Server Manager module into your shell with the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Courier New"&gt;Import-Module ServerManager&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can get a list of the new cmdlets that this module provides by running:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Courier New"&gt;Get-Module ServerManager&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;So, if you’re on a Windows Server SKU, you can install all of your roles or features this way.&amp;#160; To install Hyper-V, you would use this command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Courier New"&gt;Add-WindowsFeature Hyper-V&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Ok, that’s cool and all, but it’s not that spectacular.&amp;#160; So how about being able to actually &lt;em&gt;interact&lt;/em&gt; with Hyper-V from this shell?&amp;#160; Even on Server Core or Hyper-V Server 2008 R2?&lt;/p&gt;  &lt;p&gt;Check out James O’Neill’s &lt;a href="http://www.codeplex.com/PSHyperv"&gt;PSHyperV project&lt;/a&gt; over on CodePlex.&amp;#160; If you download this library, you can interact with Hyper-V directly from your Core console.&amp;#160; &lt;/p&gt;  &lt;p&gt;The first thing to remember is that you need to dot-source the HyperV.ps1 script so that all of the functions remain in memory, like so:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Courier New"&gt;. .\hyperv.ps1&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;After you do that, you’ll get a list of all of the new functions and filters that this library provides.&amp;#160; Just as an example, you can create and configure a VM with these commands:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="3" face="Courier New"&gt;$vm = New-VM -name “MyVM”       &lt;br /&gt;Set-VMMemory -vm $vm -memory 2GB        &lt;br /&gt;Set-VMCPUCount -vm $vm -CPUCount 2        &lt;br /&gt;# some other logic to create a hard drive, or attach an existing one.        &lt;br /&gt;Start-VM -vm $vm -wait&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9415720" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Microsoft+Hyper-V/default.aspx">Microsoft Hyper-V</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Miscellaneous+V/default.aspx">Miscellaneous V</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category></item><item><title>Hyper-V Installation Tricks: Updates</title><link>http://blogs.msdn.com/mikekol/archive/2008/08/15/hyper-v-installation-tricks-updates.aspx</link><pubDate>Sat, 16 Aug 2008 02:04:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8870958</guid><dc:creator>mikekol</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8870958.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8870958</wfw:commentRss><description>&lt;p&gt;I haven’t updated my three part series about different ways to install Hyper-V for our RTM release.&amp;#160; I’ve been working on getting some step-by-step videos created, but it’s always been on the back burner, and I was waiting to update the posts until I had the videos ready.&lt;/p&gt;  &lt;p&gt;Well, a discussion on an internal DL yesterday lit a fire under me, so now I’m going to sit down and do this.&amp;#160; The videos aren’t done yet, but I’ll add them when they are.&lt;/p&gt;  &lt;p&gt;Since not much of the original content has changed, I’m just going to update the original posts with the new bits.&amp;#160; I’ll add some more descriptions about why I’m doing what I’m doing, and where I got certain things.&lt;/p&gt;  &lt;p&gt;Hopefully, this will make the series more useful.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;a href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-1-sysprep-and-hyper-v.aspx"&gt;Sysprep and Hyper-V&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a title="Hyper-V Installation Tricks - Part 2- Unattended Installation of Windows and Hyper-V RC0" href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-2-unattended-installation-of-windows-and-hyper-v-rc0.aspx"&gt;Unattended Installation of Windows and Hyper-V&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.msdn.com/mikekol/archive/2008/03/27/hyper-v-installation-tricks-part-3-integrated-installation-and-the-beauty-of-the-win6-servicing-stack.aspx"&gt;Integrated Installation and The Beauty of the Win6 Servicing Stack&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8870958" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+RTM/default.aspx">Hyper-V RTM</category></item><item><title>Adding the RC1 Integration Components to WinPE 2.0</title><link>http://blogs.msdn.com/mikekol/archive/2008/05/30/adding-the-rc1-integration-components-to-winpe-2-0.aspx</link><pubDate>Fri, 30 May 2008 23:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8564223</guid><dc:creator>mikekol</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8564223.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8564223</wfw:commentRss><description>&lt;P&gt;Mike Sterling just made a triumphant return to blogging by posting an article on how to add the RC1 ICs to WinPE.&amp;nbsp; Check it out &lt;A class="" href="http://blogs.msdn.com/mikester/archive/2008/05/30/using-the-hyper-v-integration-components-in-winpe.aspx" mce_href="http://blogs.msdn.com/mikester/archive/2008/05/30/using-the-hyper-v-integration-components-in-winpe.aspx"&gt;here&lt;/A&gt;.&amp;nbsp; Keep in mind, though, that this only works for WinPE 2.0, which is the WinPE that is based on Windows Vista and Windows Server 2008.&lt;/P&gt;
&lt;P&gt;As for my triumphant return to blogging, I'll be back next week with some updates to old posts and new posts as well.&amp;nbsp; In the mean time, I'm going to go back to playing GTA4.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8564223" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Microsoft+Hyper-V/default.aspx">Microsoft Hyper-V</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category></item><item><title>Hyper-V Installation Tricks - Part 3: Integrated Installation and The Beauty of the Win6 Servicing Stack</title><link>http://blogs.msdn.com/mikekol/archive/2008/03/27/hyper-v-installation-tricks-part-3-integrated-installation-and-the-beauty-of-the-win6-servicing-stack.aspx</link><pubDate>Fri, 28 Mar 2008 03:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8340644</guid><dc:creator>mikekol</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8340644.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8340644</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Updated for Hyper-V RTM&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Thus far we covered the steps necessary to capture a system image with Hyper-V installed, and how to install Windows and Hyper-V at the same time without dealing with system images at all.&lt;/p&gt;  &lt;p&gt;Let's take a step back and talk about system images again.&amp;#160; Images are a great way to deploy a customized version of Windows to many different workstations or servers without having to go through the effort of configuring each system independently of each other. &lt;/p&gt;  &lt;p&gt;Even if you're just setting Windows Vista or Windows Server 2008 up from a DVD, you're still using an image to do the installation.&amp;#160; If you look on the DVD in the \sources folder, you'll find a file called &lt;font face="Courier New"&gt;install.wim&lt;/font&gt;.&amp;#160; WIM stands for Windows IMage, and it's an actual image of a real Windows installation that Setup applies directly to your hard drive (and then manipulates a bit, but that's a different story).&lt;/p&gt;  &lt;p&gt;You can also make your own &lt;a href="http://technet.microsoft.com/en-us/windowsvista/aa905116.aspx" mce_href="http://technet.microsoft.com/en-us/windowsvista/aa905116.aspx"&gt;WIM files using the &lt;font face="Courier New"&gt;imagex.exe&lt;/font&gt; tool&lt;/a&gt; that ships with the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&amp;amp;DisplayLang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&amp;amp;DisplayLang=en"&gt;Windows AIK&lt;/a&gt;, which I'll link to again.&amp;#160; &lt;/p&gt;  &lt;p&gt;The cool thing about WIMs (and there are actually many, but I'm just going to stick with the one that's relevant to this post) is that - using &lt;font face="Courier New"&gt;imagex.exe&lt;/font&gt; - you can mount a WIM as a folder on your Win6 (that's Vista and Server 2008)-based system and copy files to or from it, then save your changes.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;So what does this have to do with Hyper-V installation?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Well, hang on...&amp;#160; there's more that we need to talk about.&lt;/p&gt;  &lt;p&gt;With Windows Vista and Windows Server 2008, some really cool work was done to make the operating systems more servicable.&amp;#160; I'm not really in a position to go into all the details, but one of the absolute coolest side effects was the ability to service a Windows installation without actually booting it, which is called Offline Servicing.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;No, really... what does this have to do with Hyper-V installation?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Hyper-V RTM ships as a hotfix, which means that you can use the Offline Servicing features of the servicing stack to integrate it with any Windows Server 2008 image that you've got.&amp;#160; (This includes the retail media, as well as any image that you made yourself.&amp;#160; For best results, you should only use images that have been sysprep'd, or are otherwise generalized.)&lt;/p&gt;  &lt;p&gt;Assuming you're using WIMs, here's how to do it.   &lt;br /&gt;    &lt;br /&gt;(Robert Larson has posted a great step-by-step article that even has pictures, if that’s more your thing.&amp;#160; Check it out over &lt;a href="http://virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/installation-deployment/slipstreaming-hyper-v-rtm.html"&gt;here&lt;/a&gt;.)&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Download the Hyper-V RTM hotfix (it could actually be any hotfix packaged into an MSU)      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Copy the WIM file you want to integrate this fix into to a place where you have read/write access.&amp;#160; I usually create a folder in the root of the drive called C:\image.&amp;#160; If you’re copying files from a DVD, remember to remove the Read-Only attribute from the WIM file, either by right-clicking on it in Explorer, choosing Properties, and un-ticking the Read Only box, or issuing the command attrib c:\image\install.wim –r.     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Extract the CAB file from the MSU you just downloaded, just like we talked about in Part 2.&amp;#160; &lt;a href="http://support.microsoft.com/kb/928636" mce_href="http://support.microsoft.com/kb/928636"&gt;There's also a KB article that describes the process.&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Open an elevated AIK Tools Command Prompt (because you've installed the AIK, right?).      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Create a folder to use as a mount point for your WIM (I typically use &lt;font face="Courier New"&gt;C:\mnt&lt;/font&gt;).       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Did you know that WIM files can contain more than one image?&amp;#160; In fact, the INSTALL.WIM file on standard Windows Server 2008 media contains six different images!&amp;#160; You can see all of the images in a WIM file by running imagex /info c:\image\install.wim.&amp;#160; For starters, let’s work on image number 1.     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Run:      &lt;br /&gt;&lt;font face="Courier New"&gt;imagex /mountrw C:\image\install.wim 1 C:\mnt&lt;/font&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Run:      &lt;br /&gt;&lt;font face="Courier New"&gt;start /w pkgmgr /ip /m:c:\extract\Windows6.0-KB950050-x64.cab /o:c:\mnt;c:\mnt\windows /s:%temp%        &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;Check the return code by running:      &lt;br /&gt;&lt;font face="Courier New"&gt;echo %errorlevel%&lt;/font&gt;       &lt;br /&gt;      &lt;br /&gt;If it's anything but 0, there was a failure while applying the update.       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Run:      &lt;br /&gt;&lt;font face="Courier New"&gt;imagex /unmount /commit c:\mnt        &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font face="ta"&gt;If you have multiple images in your WIM that you want to patch, repeat this process – starting at step 7, and changing the “1” to whatever image number you want to patch – for each image in the WIM.&lt;/font&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;font face="ta"&gt;And there you have it.&amp;#160; The next time you apply that image, your Windows installation will have the Hyper-V RTM bits already present in the package store.&amp;#160; That's different than having the role enabled, though.&amp;#160; You'll still need to enable it (which can be automated using parts of the unattend fragments provided in Part 2), but when you do, you'll have RTM from the beginning).&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8340644" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+RTM/default.aspx">Hyper-V RTM</category></item><item><title>Hyper-V Installation Tricks - Part 2: Unattended Installation of Windows and Hyper-V</title><link>http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-2-unattended-installation-of-windows-and-hyper-v-rc0.aspx</link><pubDate>Wed, 26 Mar 2008 09:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8337309</guid><dc:creator>mikekol</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8337309.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8337309</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;Updated for Hyper-V RTM&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Picture it:&amp;nbsp; Sicily, 1914.&amp;nbsp; You've got a bunch of Servers that you need to install and configure Windows Server 2008 and Hyper-V on.&amp;nbsp; You don't feel like messing around with Sysprep.&amp;nbsp; What do you do?&lt;/P&gt;
&lt;P&gt;Well, since none of these things existed in 1914, you're probably pretty safe, but that doesn't really help anyone right now, does it?&lt;/P&gt;
&lt;P&gt;What you need, is a way to do an unattended installation of Windows and Hyper-V so you don't have to sit there the whole time and type commands when the system is ready for you.&amp;nbsp; Lucky for you, we've already thought of that.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Before you begin, I strongly recommend that you download the Windows AIK for Windows Server 2008 and Windows Vista SP1.&amp;nbsp; The AIK contains tools and documentation specifically for helping administrators just like you to roll-out Windows on a large scale.&amp;nbsp; With the AIK, you'll get a nifty little tool that will help you build unattended installation files (formerly called &lt;FONT face="Courier New" size=2&gt;sysprep.inf&lt;/FONT&gt;, now called &lt;FONT face="Courier New" size=2&gt;unattend.xml&lt;/FONT&gt;).&amp;nbsp; You can download it &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&amp;amp;DisplayLang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&amp;amp;DisplayLang=en"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Assumptions&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For the purposes of this post, I'm going to assume that you already have an &lt;FONT face="Courier New" size=2&gt;unattend.xml&lt;/FONT&gt; file you plan on using to answer questions at install-time.&amp;nbsp; In the body of this post, I'll only be providing XML fragments for you to drop into your answer file as necessary.&amp;nbsp; But, just to make sure that everyone gets the information they way, I'll attach a complete and working answer file (except for the product key, of course), which you can find at the bottom of this post. (Use that file at your own risk - it repartitions your hard drive, so don't use it unless you understand everything it does!) &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;You're dealing with enabling the Hyper-V role on x64 servers, and you want to apply the RTM patch. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;You're going to be using a USB key with your Windows installation media to do the unattended installation.&amp;nbsp; You could just as easily create a custom install DVD with the unattend file and the RTM QFE on it.&amp;nbsp; It's up to you, but I'm just going to stick with the steps for a USB key. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;The Steps&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Download the Hyper-V RTM patch.&amp;nbsp; (We're assuming you're doing this on the server, so we're working with x64 packages only.)&amp;nbsp; It's over on the Microsoft Download Center, which is right over here.&amp;nbsp; Download the MSU, and save it to your local machine. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Create a working directory on your local machine.&amp;nbsp; I prefer to call mine &lt;FONT face="Courier New" size=2&gt;C:\extract&lt;/FONT&gt;. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;From an elevated command prompt, run the following command: &lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;expand -F:* &lt;EM&gt;Windows6.0-KB950050-x64.msu&lt;/EM&gt; C:\extract &lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Look in &lt;FONT face="Courier New" size=2&gt;C:\extract&lt;/FONT&gt; and you’ll see an assortment of files.&amp;nbsp; There are only two files that you need to care about.&amp;nbsp; First, take a look at &lt;FONT face="Courier New" size=2&gt;Windows6.0-KB950050-x64.xml&lt;/FONT&gt; in your favorite text editor.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;Look at the &lt;FONT face="Courier New" size=2&gt;&amp;lt;package /&amp;gt;&lt;/FONT&gt; element.&amp;nbsp; We’re going to use this in a minute, so you may want to copy it to your clipboard. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;The next file to find is &lt;FONT face="Courier New" size=2&gt;Windows6.0-KB950050-x64.cab&lt;/FONT&gt;.&amp;nbsp; This file contains the actual hotfix. Copy it to the root of your USB key. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Open up your &lt;FONT face="Courier New" size=2&gt;unattend.xml&lt;/FONT&gt; file and add one of the following fragments right after the &amp;lt;unattend /&amp;gt; element, but before any of the &amp;lt;settings /&amp;gt; elements. &lt;BR&gt;&lt;BR&gt;You’ll notice that in the fragments below, we’ve used the &lt;FONT face="Courier New" size=2&gt;&amp;lt;package /&amp;gt;&lt;/FONT&gt; section that we copied out of the XML file in step 4.&amp;nbsp; The only change we made was to the &lt;FONT face="Courier New" size=2&gt;&amp;lt;source /&amp;gt;&lt;/FONT&gt; element’s location attribute, so we can make sure that Windows Setup will know where to find the hotfix.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;&amp;lt;!-- fragment for Server Full --&amp;gt; &lt;BR&gt;&amp;lt;servicing&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;package &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action="configure"&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;assemblyIdentity &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Microsoft-Windows-Foundation-&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;Package" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; version="6.0.6001.18000" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processorArchitecture="amd64" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; publicKeyToken="31bf3856ad364e35"&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language="" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;selection &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Microsoft-Hyper-V" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state="true" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;selection &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Microsoft-Hyper-V-Management-Clients" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state="true" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/package&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;package &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action="install"&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;assemblyIdentity &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Package_for_KB950050" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; version="6.0.1.9"&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processorArchitecture="amd64" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; publicKeyToken="31bf3856ad364e35" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language="neutral" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location="E:\Windows6.0-KB949219-x64.cab" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/package&amp;gt; &lt;BR&gt;&amp;lt;/servicing&amp;gt;&lt;/FONT&gt; &lt;BR&gt;&lt;BR&gt;-or- &lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;&amp;lt;!-- fragment for Server Core --&amp;gt; &lt;BR&gt;&amp;lt;servicing&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;package &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action="configure"&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;assemblyIdentity &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Microsoft-Windows-ServerCore-&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;Package" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; version="6.0.6001.18000" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processorArchitecture="amd64" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; publicKeyToken="31bf3856ad364e35"&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language="" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;selection &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Microsoft-Hyper-V" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state="true" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/package&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;package &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action="install"&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;assemblyIdentity &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Package_for_KB950050" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; version="6.0.1.9"&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processorArchitecture="amd64" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; publicKeyToken="31bf3856ad364e35" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; language="neutral" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location="E:\Windows6.0-KB949219-x64.cab" /&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/package&amp;gt; &lt;BR&gt;&amp;lt;/servicing&amp;gt; &lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Save the &lt;FONT face="Courier New" size=2&gt;unattend.xml&lt;/FONT&gt; file to your USB key as "&lt;FONT face="Courier New" size=2&gt;autounattend.xml&lt;/FONT&gt;". &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Go test it out.&amp;nbsp; Pop a Windows installation DVD into one of your servers and plug in the USB Key that you copied all of your unattend files to.&amp;nbsp; If you had the unattend file answer all of the questions during setup, the installation should just start without you having to do anything. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Once you're at the desktop of your new Windows installation, go check in the Programs applet in the Control Panel.&amp;nbsp; If you look at installed updates, you should see KB950050- the Hyper-V RTM QFE. &lt;/LI&gt;&lt;/OL&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8337309" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/mikekol/attachment/8337309.ashx" length="4938" type="text/xml" /><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+RTM/default.aspx">Hyper-V RTM</category></item><item><title>Hyper-V Installation Tricks - Part 1: Sysprep and Hyper-V</title><link>http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-1-sysprep-and-hyper-v.aspx</link><pubDate>Wed, 26 Mar 2008 09:31:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8337308</guid><dc:creator>mikekol</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8337308.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8337308</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Updated for Hyper-V RTM&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Before we jump right into this, I thought it would be best if we got a few things straight.&amp;#160; For the remainder of this post, everytime I say &amp;quot;sysprep,&amp;quot; I'm referring to running Sysprep with the /generalize switch.&amp;#160; This is the best way to make sure that the Windows installation image that you capture and apply to other systems actually works when you put it on those other systems.&lt;/p&gt;  &lt;p&gt;For more details on what Sysprep with and without the /generalize switch does, I encourage you to read the documentation, which I have conveniently provided &lt;a href="http://technet2.microsoft.com/WindowsVista/en/library/fd2f79c9-3049-4b8c-bcfd-4e6dc5771ace1033.mspx?mfr=true"&gt;a hyperlink to&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;So, you're planning to sysprep a Windows Server 2008 box with Hyper-V installed?&amp;#160; Good choice.&amp;#160; I'm sure you'll be happy with the result, but there are few things that you'll have to do to make sure Hyper-V functions properly after you apply the image to a different computer.&amp;#160; &lt;/p&gt;  &lt;p&gt;The purpose of sysprep is to make the system as generic as possible so that any image taken of a sysprep'd system can then be applied to different hardware.&amp;#160; Syspreping the system will destroy any super-specific information - like hardware IDs.&amp;#160; The next time that Windows installation boots up, all of the information is regenerated.&lt;/p&gt;  &lt;p&gt;With Hyper-V, however, you'll need to do a little bit of work after the system boots back up for the first time.&lt;/p&gt;  &lt;p&gt;First, &lt;strong&gt;&lt;a href="http://support.microsoft.com/kb/954356"&gt;the hypervisor will not be running&lt;/a&gt;&lt;/strong&gt;, since the BCD (Boot Configuration Data) store has been generalized.&amp;#160; You'll need to run the following command to put the hypervisor launch directive back in the BCD store:&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="2"&gt;bcdedit /set hypervisorlaunchtype auto&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Secondly, &lt;strong&gt;any virtual network switch that was set for external connectivity will revert to an internal-only switch&lt;/strong&gt;.&amp;#160; This is because the physical NIC that the external switch was bound to doesn't technically exist after a sysprep.&amp;#160; You'll need to rebind the switch to a physical NIC if you want external connectivity again.&lt;/p&gt;  &lt;p&gt;Thirdly, &lt;strong&gt;any disks that you have set to pass-thru (whether hard disks or CD/DVD ROM drives) will need to be set up again&lt;/strong&gt; (this is also because of the hardware IDs).&lt;/p&gt;  &lt;p&gt;If you have to do this on a lot of systems, I recommend that you take a look at our &lt;a href="http://msdn2.microsoft.com/en-us/library/cc136992(VS.85).aspx"&gt;WMI API documentation&lt;/a&gt; and figure out how to do this programmatically, and then add commands to your unattend.xml file that run those scripts after the first boot on the new hardware.&lt;/p&gt;  &lt;p&gt;I'll talk more about this in a future post.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8337308" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+RTM/default.aspx">Hyper-V RTM</category></item><item><title>Hyper-V Installation Tricks - Prologue</title><link>http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-prologue.aspx</link><pubDate>Wed, 26 Mar 2008 09:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8337302</guid><dc:creator>mikekol</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/8337302.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=8337302</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Updated for Hyper-V RTM&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As you may have heard, we've shipped Hyper-V.&amp;#160; Sorry for the lack of posts - it seems like I'm always on vacation when we ship a major release like this, so my posts lag a few days behind.&lt;/p&gt;  &lt;p&gt;Installing Hyper-V isn't exactly a difficult task, but if you have to do it on multiple machines, installing Windows, installing Hyper-V and then applying the RTM patch can be a bit time consuming.&amp;#160;&amp;#160; The purpose of this series of posts is to offer a few different ways to help you speed up your Hyper-V deployments.&lt;/p&gt;  &lt;p&gt;Here are the major topics I'm planning to post about:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a class="" href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-1-sysprep-and-hyper-v.aspx" mce_href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-1-sysprep-and-hyper-v.aspx"&gt;Sysprep and Hyper-V&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a class="" href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-2-unattended-installation-of-windows-and-hyper-v-rc0.aspx" mce_href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-2-unattended-installation-of-windows-and-hyper-v-rc0.aspx"&gt;Unattended Installation of Windows and Hyper-V&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.msdn.com/mikekol/archive/2008/03/27/hyper-v-installation-tricks-part-3-integrated-installation-and-the-beauty-of-the-win6-servicing-stack.aspx"&gt;Integrated Installation - The Beauty of the Win6 servicing stack&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If you've got any other suggestions for topics, please let me know.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8337302" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+RTM/default.aspx">Hyper-V RTM</category></item><item><title>How do I automate "Viridian" installation on Win2k8 RC0?</title><link>http://blogs.msdn.com/mikekol/archive/2007/10/01/how-do-i-automate-viridian-installation-on-win2k8-rc0.aspx</link><pubDate>Mon, 01 Oct 2007 22:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5227198</guid><dc:creator>mikekol</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/mikekol/comments/5227198.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mikekol/commentrss.aspx?PostID=5227198</wfw:commentRss><description>&lt;div class="wlWriterSmartContent" id="scid:B3E14793-948F-49af-A347-D19C374A7C4F:6071ec20-b681-4980-beab-98d63c19b5c3" style="padding-right: 6px; display: inline; padding-left: 0px; float: left; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt; &lt;script type="text/javascript"&gt;&lt;!--
digg_bodytext = 'I'm happy to provide some information on how to do this, with the caveat that you should not be rolling this build of "Viridian" anywhere near your data center.&amp;nbsp; If you're doing a massive, wide-scale deployment of "Viridian" at this stage in the development process, and you're not a member of the TAP program, you should call a therapist immediately.&amp;nbsp; If, however, you're just curious about an alternate installation method, read on.';
//--&gt;&lt;/script&gt; &lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/div&gt;  &lt;p&gt;Sorry for the abrupt end to the posts last week, everyone.&amp;#xA0; I was out sick.&amp;#xA0; But fear not, for I am once again a healthy and strapping young man.&amp;#xA0; And as such, I hereby return to blogging Virtual Goodness!&lt;/p&gt;  &lt;p&gt;So - automating &amp;quot;Viridian&amp;quot; installation.&amp;#xA0; I'm happy to provide some information on how to do this, with the caveat that you should &lt;strong&gt;not&lt;/strong&gt; be rolling out this build of &amp;quot;Viridian&amp;quot; anywhere near your data center.&amp;#xA0; If you're doing a massive, wide-scale deployment of &amp;quot;Viridian&amp;quot; at this stage in the development process, and you're not a member of the TAP program, you should call a therapist immediately.&amp;#xA0; If, however, you're just curious about an alternate installation method, read on.&lt;/p&gt;  &lt;p&gt;I'm assuming by &lt;em&gt;automate&lt;/em&gt;, we're talking about doing something simple like creating a batch file specifically to run a series of tasks that will install &amp;quot;Viridian&amp;quot;, so that's the level of information I'm going to provide.&amp;#xA0; Feel free to adapt this however you'd like - I promise not to copyright this.&lt;/p&gt;  &lt;p&gt;I also won't get into how to install Windows in unattended mode - there's plenty of information on how to do that online, so I won't add yet another resource.&lt;/p&gt;  &lt;p&gt;The first step to installing &amp;quot;Viridian&amp;quot;, obviously, is to get the software onto the system.&amp;#xA0; To do this, we need to stage and install&lt;sup&gt;1&lt;/sup&gt; the two MSU packages that contain the &amp;quot;Viridian&amp;quot; server and management components.&lt;/p&gt;  &lt;p&gt;To install the management tools from the command line, run: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" size="2"&gt;start /w wusa %SystemRoot%\WSV\Windows6.0-kb939854-x64.msu /quiet&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To stage the &amp;quot;Viridian&amp;quot; server components from the command line, run:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" size="2"&gt; start /w wusa %SystemRoot%\WSV\Windows6.0-kb939853-x64.msu /quiet&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Reboot your server before moving on to the next step using your favorite reboot technique.&lt;/p&gt;  &lt;p&gt;To install the &amp;quot;Viridian&amp;quot; server components from the command line, run: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" size="2"&gt;ServerManagerCMD.exe -install WSV&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This is the command line version of the Role Management Tool that I mentioned in my original post, and will perform the installation for you.&lt;/p&gt;  &lt;p&gt;Reboot your server again.&lt;/p&gt;  &lt;p&gt;As for configuring the network switches or creating VMs programmatically, I'm going to simply stop here and say that yes, it will be possible in future builds.&amp;#xA0; We do not have scripts available publicly that do this now, and we are not publishing any documentation on our WMI interfaces until our Beta release.&lt;/p&gt;  &lt;p&gt;Hope this helps!&lt;/p&gt; &lt;font size="-1"&gt;   &lt;blockquote&gt;     &lt;p&gt;&lt;font size="1"&gt;&lt;em&gt;&lt;sup&gt;1 &lt;/sup&gt;&amp;quot;What's up with this crazy lingo you're throwing around here, Mike? What's the difference between staged and installed?&amp;quot;&lt;/em&gt;           &lt;br /&gt;I'm glad you asked, Billy.&amp;#xA0; Think of the last time that you needed to install an optional component on Windows XP or Windows Server 2003.&amp;#xA0; Unless you had the whole installation CD copied to a network share or the local drive (which a lot of OEMs do), you probably needed to insert your installation CD during the process so Windows could get all the files it needed.&amp;#xA0;&amp;#xA0; &lt;/font&gt;&lt;/p&gt;      &lt;p&gt;&lt;font size="1"&gt;In Windows Vista and Windows Server 2008, we changed how that works.&amp;#xA0; There's a &amp;quot;package store&amp;quot; on every installation that contains the binaries for all of the optional components and features so that you don't need to provide the installation DVD at every install/uninstall of an optional component.&amp;#xA0; These binaries aren't loaded into memory, and aren't even in the same location they would be if the component was installed.&amp;#xA0; They're just present on the system so that optional components and feature installation is a little bit easier.&lt;/font&gt;&lt;/p&gt;      &lt;p&gt;&lt;font size="1"&gt;When a component is &lt;em&gt;only&lt;/em&gt; available in the package store, and is not installed on the system, it's &lt;strong&gt;&lt;em&gt;staged&lt;/em&gt;&lt;/strong&gt;.&amp;#xA0; When a component is installed on the system, it's - you guessed it - &lt;strong&gt;&lt;em&gt;installed&lt;/em&gt;&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;   &lt;/blockquote&gt; &lt;/font&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5227198" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mikekol/archive/tags/Microsoft+Hyper-V/default.aspx">Microsoft Hyper-V</category><category domain="http://blogs.msdn.com/mikekol/archive/tags/Hyper-V+How+To/default.aspx">Hyper-V How To</category></item></channel></rss>