<?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 PC Guy's WebLog</title><link>http://blogs.msdn.com/virtual_pc_guy/default.aspx</link><description>Talking about virtualization at Microsoft (Virtual PC, Virtual Server and Windows virtualization).</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Windows XP Tablet Edition under Windows Virtual PC</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/09/windows-xp-tablet-edition-under-windows-virtual-pc.aspx</link><pubDate>Wed, 10 Feb 2010 07:37:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9961038</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9961038.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9961038</wfw:commentRss><description>&lt;p&gt;Over the weekend I spent some time going through my dusty archives of a virtual machines, bringing them all across to Windows Virtual PC and making sure they were all up to date.&amp;#160; One of the virtual machines that I worked on was a Windows XP Tablet Edition virtual machine (which I blogged about &lt;a href="http://blogs.msdn.com/virtual_pc_guy/archive/2005/06/13/428676.aspx" target="_blank"&gt;back in 2005&lt;/a&gt;).&lt;/p&gt;  &lt;p&gt;At first I was disappointed to notice that tablet input seemed to have stopped working.&amp;#160; But a bit of investigation quickly revealed the problem and the solution.&amp;#160; Windows XP Tablet Edition turns off all pen functionality if you connect to it using Remote Desktop – and does the same thing when using Windows Virtual PC with integration features enabled.&amp;#160; Disabling integration components restored pen functionality:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/WindowsXPTabletEditionunderWindowsVirtua_14C44/tablet-wvpc1_2.png" target="_blank"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="tablet-wvpc1" border="0" alt="tablet-wvpc1" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/WindowsXPTabletEditionunderWindowsVirtua_14C44/tablet-wvpc1_thumb.png" width="244" height="191" /&gt;&lt;/a&gt; &lt;a href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/WindowsXPTabletEditionunderWindowsVirtua_14C44/tablet-wvpc2_2.png" target="_blank"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="tablet-wvpc2" border="0" alt="tablet-wvpc2" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/WindowsXPTabletEditionunderWindowsVirtua_14C44/tablet-wvpc2_thumb.png" width="244" height="191" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;(The first picture above shows pen input not working – because integration is enabled, while the second shows it working correctly once integration is disabled).&lt;/p&gt;  &lt;p&gt;Now to answer some random questions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows XP Tablet Edition is the only Windows OS that lets you use pen input in a virtual machine.&amp;#160; Windows Vista and Windows 7 both check for the presence of a pen input device – which does not exist inside the virtual machine.&lt;/li&gt;    &lt;li&gt;Yes, the virtual machine I upgraded over the weekend was the same virtual machine that I created for the blog post back in 2005.&amp;#160; Checking the creation date on the virtual machines virtual hard disk file shows that it was created one day before the original blog post.&lt;/li&gt;    &lt;li&gt;For the record – the oldest virtual machine in my collection is my OS/2 Warp 4.0 virtual machine – with a creation date from mid 2001.&amp;#160; This is closely followed by a NetWare 3.12 virtual machine :-)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9961038" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Operating+Systems+under+Virtual+PC+_2F00_+Virtual+Server+_2F00_+Hyper-V/default.aspx">Operating Systems under Virtual PC / Virtual Server / Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Virtual+PC/default.aspx">Windows Virtual PC</category></item><item><title>Accessing Shared Drives from the Command Prompt under Windows Virtual PC</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/08/accessing-shared-drives-from-the-command-prompt-under-windows-virtual-pc.aspx</link><pubDate>Tue, 09 Feb 2010 01:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9959505</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9959505.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9959505</wfw:commentRss><description>&lt;P&gt;With Windows Virtual PC we changed our shared folders to be based on the drive sharing code from Remote Desktop.&amp;nbsp; The advantage of this change is that shared drives are now much more stable, reliable and better performing than shared folders ever were.&amp;nbsp; There are some downsides to this change (as I have &lt;A href="http://blogs.msdn.com/virtual_pc_guy/archive/2009/11/04/restricting-shared-drives-under-windows-virtual-pc.aspx" target=_blank mce_href="http://blogs.msdn.com/virtual_pc_guy/archive/2009/11/04/restricting-shared-drives-under-windows-virtual-pc.aspx"&gt;touched on before&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;One of the issues is that shared drives do not get drive letters assigned to them inside the virtual machine with Windows Virtual PC.&amp;nbsp; Which means that while it is easy to use them from the graphical user interface, it can be problematic if you want to access them from the command line.&lt;/P&gt;
&lt;P&gt;Luckily there is an easy solution.&amp;nbsp; You can map a shared drive to a drive letter inside the virtual machine by simply running a command like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color=#000080 face="Courier New"&gt;&lt;STRONG&gt;net use j: \\tsclient\c&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/AccessingSharedDrivesfromtheCommandPromp_F7D6/command%20line%20shared%20folders_2.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/AccessingSharedDrivesfromtheCommandPromp_F7D6/command%20line%20shared%20folders_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="command line shared folders" border=0 alt="command line shared folders" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/AccessingSharedDrivesfromtheCommandPromp_F7D6/command%20line%20shared%20folders_thumb.png" width=331 height=274 mce_src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/AccessingSharedDrivesfromtheCommandPromp_F7D6/command%20line%20shared%20folders_thumb.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Where “c” is the drive letter that you are trying to access on the physical computer and “j” is the drive letter that you want to use inside the virtual machine.&amp;nbsp; Once you have done this you can change to the drive letter you just used and run command line operations like you would for any other drive.&lt;/P&gt;
&lt;P&gt;Cheers, &lt;BR&gt;Ben &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9959505" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Virtual+PC+_2F00_+Server+Tips+_2700_n_2700_+Tricks/default.aspx">Virtual PC / Server Tips 'n' Tricks</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Virtual+PC/default.aspx">Windows Virtual PC</category></item><item><title>Using Windows Server 2008 Core on Windows Virtual PC</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/04/using-windows-server-2008-core-on-windows-virtual-pc.aspx</link><pubDate>Fri, 05 Feb 2010 06:43:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9958638</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9958638.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9958638</wfw:commentRss><description>&lt;p&gt;First, a caveat.&amp;#160; This is not supported.&amp;#160; Most of what I am about to talk about is not supported.&amp;#160; Feel free to use this information, but do not call Microsoft if it does not work for you.&lt;/p&gt;  &lt;p&gt;With that out of the way – this morning I was asked how to get a Windows Server 2008 core installation working on Windows Virtual PC, with integration components.&amp;#160; This is possible, and very handy, but is a little tricky to do.&lt;/p&gt;  &lt;p&gt;Windows Server 2008 will install onto Windows Virtual PC in a core configuration with no issues.&amp;#160; But when you try to install the Integration Components, the installer will fail with the following error message:&lt;/p&gt;  &lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px 5px 5px 0px; display: inline; border-top: 0px; border-right: 0px" title="w2K8CoreVPC7" border="0" alt="w2K8CoreVPC7" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/UsingWindowsServer2008CorewithIntegratio_13BAF/w2K8CoreVPC7_3.png" width="503" height="382" /&gt;&lt;/p&gt;  &lt;p&gt;The problem is that the installer is trying, and failing, to initialize the sound card driver that is part of the integration components.&amp;#160; What you need to do is to disable the sound card in the virtual machine.&lt;/p&gt;  &lt;p&gt;You could do this through our handy COM interface, but it is much easier to just go in and hack the virtual machine configuration file.&amp;#160; The first thing you will need to do is to turn off the virtual machine (do not hibernate it, you need to turn it off or shut it down).&amp;#160; The file you then need to find is the .VMC file for your virtual machine – it will be in the location that you specified when creating the virtual machine:&lt;/p&gt; &lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px 5px 5px 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/UsingWindowsServer2008CorewithIntegratio_13BAF/image_11.png" width="538" height="308" /&gt;  &lt;p&gt;Open this file in notepad, and locate the section that talks about the sound adapter (it is toward the end):&lt;/p&gt;  &lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/UsingWindowsServer2008CorewithIntegratio_13BAF/image_6.png" width="673" height="319" /&gt;    &lt;br /&gt;You need to change the boolean value from “true” to “false” (in the picture above I have already made the necessary change).&amp;#160; When you have done this, save the changes to the file, close notepad and start the virtual machine.    &lt;br /&gt;    &lt;br /&gt;Now the Integration Components should install successfully.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Note, when you select to &lt;strong&gt;Install Integration Components&lt;/strong&gt; from the &lt;strong&gt;Tools&lt;/strong&gt; menu, the installer will not start automatically.&amp;#160; You will need to manually change to the CD-ROM drive (most likely the E:) and run &lt;strong&gt;setup.exe&lt;/strong&gt; to start the process.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;After a reboot you should be able to enable integration features and get integrated mouse and clipboard support.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9958638" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Operating+Systems+under+Virtual+PC+_2F00_+Virtual+Server+_2F00_+Hyper-V/default.aspx">Operating Systems under Virtual PC / Virtual Server / Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Virtual+PC/default.aspx">Windows Virtual PC</category></item><item><title>Hyper-V ActiveX RDP Control</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/03/hyper-v-activex-rdp-control.aspx</link><pubDate>Thu, 04 Feb 2010 06:50:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9958007</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9958007.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9958007</wfw:commentRss><description>&lt;p&gt;The Dynamic Data Center Toolkit for Hosters project have just put up the sample code for a Hyper-V ActiveX RDP control, available here:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://code.msdn.microsoft.com/ddc/Release/ProjectReleases.aspx?ReleaseId=3833" href="http://code.msdn.microsoft.com/ddc/Release/ProjectReleases.aspx?ReleaseId=3833"&gt;http://code.msdn.microsoft.com/ddc/Release/ProjectReleases.aspx?ReleaseId=3833&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;What this allows you to do is to create a Remote Desktop connection directly to the virtual machine (not to the guest operating system) in exactly the same manner as when you are using the Virtual Machine Connection window in the Hyper-V Management Console.&lt;/p&gt;  &lt;p&gt;As this is an ActiveX control you can even use it in a web page if you wish to.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9958007" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Developing+on+Windows+Virtual+PC+_2F00_+Virtual+Server+_2F00_+Hyper-V/default.aspx">Developing on Windows Virtual PC / Virtual Server / Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Server+2008+R2/default.aspx">Windows Server 2008 R2</category></item><item><title>Windows Server Performance Team: Increase VMBus buffer sizes to increase network throughput to guest VMs</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/02/windows-server-performance-team-increase-vmbus-buffer-sizes-to-increase-network-throughput-to-guest-vms.aspx</link><pubDate>Wed, 03 Feb 2010 07:23:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9957415</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9957415.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9957415</wfw:commentRss><description>&lt;p&gt;The Windows Server Performance team have done a really interesting post on how to optimize network performance inside of virtual machines by increasing the size of the VMBus buffers used by our network adapters.&amp;#160; They also do a very good job of explaining the causes and implications of performance issues around virtual networking – so go check it out:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.technet.com/winserverperformance/archive/2010/02/02/increase-vmbus-buffer-sizes-to-increase-network-throughput-to-guest-vms.aspx" href="http://blogs.technet.com/winserverperformance/archive/2010/02/02/increase-vmbus-buffer-sizes-to-increase-network-throughput-to-guest-vms.aspx"&gt;http://blogs.technet.com/winserverperformance/archive/2010/02/02/increase-vmbus-buffer-sizes-to-increase-network-throughput-to-guest-vms.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9957415" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item><item><title>Hyper-V VM State to Memory Dump Converter</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/02/01/hyper-v-vm-state-to-memory-dump-converter.aspx</link><pubDate>Tue, 02 Feb 2010 07:07:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9956813</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9956813.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9956813</wfw:commentRss><description>&lt;p&gt;Today Anton – from the Hyper-V development team – released the Hyper-V VM State to Memory Dump Converter tool.&lt;/p&gt;  &lt;p&gt;What this tool does is allow you to take the saved state files from a Hyper-V virtual machine and convert it to the memory dump format that is used by the Windows debugging tools.&amp;#160; This is very handy if you are a developer who wants to poke around inside the state of a virtual machine – without generating a full memory dump internally (or configuring and connecting a debugger).&lt;/p&gt;  &lt;p&gt;You can even use this tool to look at the memory state from a virtual machine snapshot.&lt;/p&gt;  &lt;p&gt;You can download the tool (and read more about it) from here:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://code.msdn.microsoft.com/vm2dmp" href="http://code.msdn.microsoft.com/vm2dmp"&gt;http://code.msdn.microsoft.com/vm2dmp&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9956813" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Developing+on+Windows+Virtual+PC+_2F00_+Virtual+Server+_2F00_+Hyper-V/default.aspx">Developing on Windows Virtual PC / Virtual Server / Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Server+2008+R2/default.aspx">Windows Server 2008 R2</category></item><item><title>NVSPBind and NVSPScrub</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/01/28/nvspbind-and-nvspscrub.aspx</link><pubDate>Fri, 29 Jan 2010 07:47:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9955185</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9955185.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9955185</wfw:commentRss><description>&lt;p&gt;Earlier this week, John Howard alerted the world of the availability of “NVSPBind”.&amp;#160; This is a handy command line tool that allows you to edit the network protocol bindings on a virtual network adapter (note, it does not work if you are not using virtual networks).&amp;#160; This is very useful if you are running Hyper-V Server or Hyper-V on a Windows Server core installation.&lt;/p&gt;  &lt;p&gt;You can read more about NVSPBind &lt;a href="http://blogs.technet.com/jhoward/archive/2010/01/25/announcing-nvspbind.aspx" target="_blank"&gt;here on John’s blog&lt;/a&gt;, and download it from here: &lt;a title="http://code.msdn.microsoft.com/nvspbind" href="http://code.msdn.microsoft.com/nvspbind"&gt;http://code.msdn.microsoft.com/nvspbind&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Though I would like to spend a moment singing the praises of an older tool, NVSPScrub (available here: &lt;a title="http://code.msdn.microsoft.com/nvspscrub" href="http://code.msdn.microsoft.com/nvspscrub"&gt;http://code.msdn.microsoft.com/nvspscrub&lt;/a&gt;).&lt;/p&gt;  &lt;p&gt;This tool provides for a quick and easy way to delete all virtual network settings on a system.&amp;#160; This can be a real life saver if you have been playing around the the Hyper-V WMI interfaces and have messed up the network configuration on your server.&lt;/p&gt;  &lt;p&gt;It has saved me from myself a number of times now.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9955185" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item><item><title>Hyper-V virtual machines do not start after using Startup Repair</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/01/19/hyper-v-virtual-machines-do-not-start-after-using-startup-repair.aspx</link><pubDate>Tue, 19 Jan 2010 19:06:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9950476</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9950476.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9950476</wfw:commentRss><description>&lt;p&gt;Over the weekend, I attempted to reconfigure some of the drives in my Hyper-V server at home.&amp;#160; Note that I said “attempted”.&amp;#160; I ran into hardware issues and ended up having to revert back to my old configuration - but somehow in all of this – I broke my system disk.&lt;/p&gt;  &lt;p&gt;Specifically it would not boot any more.&lt;/p&gt;  &lt;p&gt;This did not phase me because I knew that the excellent &lt;a href="http://windows.microsoft.com/en-us/windows7/products/features/startup-repair" target="_blank"&gt;startup repair tool&lt;/a&gt; in Windows would soon have me up and running – which it did. &lt;/p&gt;  &lt;p&gt;But I was surprised to find that when my system did finally boot – none of my virtual machines started up.&amp;#160; When I tried to start the virtual machines manually, I was informed that the hypervisor was not running.&lt;/p&gt;  &lt;p&gt;After scratching my head for a moment, I realized what had happened.&amp;#160; Startup repair had rebuilt my &lt;a href="http://en.wikipedia.org/wiki/Boot_Configuration_Data#Boot_Configuration_Data" target="_blank"&gt;boot configuration data store&lt;/a&gt; to get my system up and running.&amp;#160; But it did not know that Hyper-V needs to have some specific settings enabled in the boot configuration data store in order to start the hypervisor.&lt;/p&gt;  &lt;p&gt;I quickly opened an administrative command prompt and ran the following command:&lt;/p&gt;  &lt;p&gt;&lt;font color="#000080" face="Courier New"&gt;&lt;strong&gt;bcdedit /set hypervisorlaunchtype auto&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;After that I rebooted the system and successfully started my virtual machines.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9950476" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item><item><title>MED-V Administration Video Series</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2010/01/18/med-v-administration-video-series.aspx</link><pubDate>Tue, 19 Jan 2010 00:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9949654</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9949654.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9949654</wfw:commentRss><description>&lt;p&gt;If you have been wondering where I have been, I have been on holiday for the last four weeks, visiting friends and family in sunny Australia.&amp;#160; But now I am back in cold, rainy, dark Seattle – so I should have plenty of time to get blogging.&lt;/p&gt;  &lt;p&gt;Just before I went off on holiday, the MED-V team put together a helpful set of videos that step through the administration side of using MED-V.&amp;#160; Lifting their descriptions from &lt;a href="http://blogs.technet.com/medv/archive/2009/12/07/microsoft-enterprise-desktop-virtualization-med-v-administration-video-series-now-available-for-download.aspx" target="_blank"&gt;their blog post on this&lt;/a&gt;, the following videos are available:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;strong&gt;Preparing a MED-V Image&lt;/strong&gt; - Learn how to prepare a Virtual PC image for use with MED-V.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Testing, Packing, and Uploading a MED-V Image&lt;/strong&gt; - After completing the preparation, an image will be tested, then packaged, and finally uploaded to the MED-V Server for distribution.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;MED-V Workspace Walkthrough&lt;/strong&gt; - See how to configure a MED-V workspace (policies for the virtual machine) and watch a demonstration of the key features so that you can evaluate and learn the key capabilities of MED-V.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Publishing Different Applications to Different Users of the Same MED-V Image&lt;/strong&gt; - This demonstration will show you how to use a common MED-V image to serve multiple users or groups while presenting different applications. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Creating a MED-V Installation Package&lt;/strong&gt; - Deploying MED-V packages can be streamlined by creating an installation package that includes all of the prerequisite technologies (Virtual PC, Virtual Machine Additions update, and MED-V client) as well as a MED-V Workspace.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;MED-V First Time Setup with Domain Join&lt;/strong&gt; - Taking workspace images and configuring them to join the organization Active Directory domain is a critical part of managing, controlling and updating the virtual machines deployed, and is easy with MED-V first time setup.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Monitoring and Troubleshooting Tools in MED-V&lt;/strong&gt; - Having the right tools to gain status, detect errors, and analyze problems is important when planning a MED-V infrastructure.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Updating a MED-V Image&lt;/strong&gt; - MED-V workspaces will require updates as any other machine on the network, this walkthrough of updating the master image and distributing to users can be used if machines are not joined to the domain and managed by typical system management tools.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;You can download any one (or all) of these videos from here: &lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=1f0d3e54-25d1-4ec1-a844-3b508bd63ffa" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1f0d3e54-25d1-4ec1-a844-3b508bd63ffa"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=1f0d3e54-25d1-4ec1-a844-3b508bd63ffa&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9949654" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/MED-V/default.aspx">MED-V</category></item><item><title>RemoteApp + Hyper-V + Windows XP / Vista</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/12/17/remoteapp-hyper-v-windows-xp-vista.aspx</link><pubDate>Thu, 17 Dec 2009 10:15:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9938100</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9938100.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9938100</wfw:commentRss><description>&lt;p&gt;The Remote Desktop team just did an interesting post here:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/rds/archive/2009/12/15/remoteapp-for-hyper-v.aspx" href="http://blogs.msdn.com/rds/archive/2009/12/15/remoteapp-for-hyper-v.aspx"&gt;http://blogs.msdn.com/rds/archive/2009/12/15/remoteapp-for-hyper-v.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;About the RemoteApp for Hyper-V functionality that is available with Windows Server 2008 R2.&amp;#160; &lt;/p&gt;  &lt;p&gt;The concept here is that you would have a setup similar to Windows Virtual PC, where you run a legacy application in a Windows XP / Vista virtual machine, and access it seamlessly from your desktop.&amp;#160; Only in this case the virtual machine is not running on your desktop – but on a Hyper-V server.&lt;/p&gt;  &lt;p&gt;This looks really neat&amp;#160; - and I am hoping to get the time to try it out in the next week or two.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9938100" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Server+2008+R2/default.aspx">Windows Server 2008 R2</category></item><item><title>The different ways to compact a disk</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/12/14/the-different-ways-to-compact-a-disk.aspx</link><pubDate>Mon, 14 Dec 2009 09:08:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9936430</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>12</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9936430.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9936430</wfw:commentRss><description>&lt;p&gt;Today if you want to compact a virtual hard disk – you can use Virtual PC / Virtual Server / Hyper-V or Windows 7.&amp;#160; But not all methods are the same.&amp;#160; Under the covers there are two different approaches that are taken to compacting virtual hard disks:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Virtual PC / Virtual Server:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Perform a blind “block level” compaction.&amp;#160; Here the virtual hard disk is inspected at a block level, and when a block is found which is full of zeroes, the block is removed from the virtual hard disk.&lt;/p&gt;  &lt;p&gt;More accurately, zeroed blocks are not copied.&amp;#160; Because when you compact a virtual hard disk with Virtual PC / Virtual Server – they do so by creating a new blank virtual hard disk and copying the data across – and then deleting the original virtual hard disk at the end.&lt;/p&gt;  &lt;p&gt;Advantages:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Works with any file system inside the virtual hard disk.&lt;/li&gt;    &lt;li&gt;Can compact differencing virtual hard disks (Windows Virtual PC only).&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Disadvantages:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Requires that you run a pre-compaction tool that writes zeroes to unused space in the virtual hard disk.&lt;/li&gt;    &lt;li&gt;May work better if you run a defragmentation program inside the virtual machine first.&lt;/li&gt;    &lt;li&gt;Requires that you have enough free space on the physical disk for a second copy of the virtual hard disk.&lt;/li&gt;    &lt;li&gt;Has to process all the data in the virtual hard disk – so can take a while.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Hyper-V / Windows 7:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Hyper-V and Windows 7 use a different approach to compacting virtual hard disks.&amp;#160; What they do is look for an NTFS file system on the virtual hard disk.&amp;#160; If they find one, they read this data directly and use it to identify zeroed blocks that can be removed from the virtual hard disk.&lt;/p&gt;  &lt;p&gt;This operation is done “in place” which means that no second virtual hard disk is created.&lt;/p&gt;  &lt;p&gt;Advantages:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;No preparation needed - just point it at an offline virtual hard disk and it works.&lt;/li&gt;    &lt;li&gt;No need for extra free space on the physical disk.&lt;/li&gt;    &lt;li&gt;Faster than Virtual PC / Virtual Server.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Disadvantages:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Does not work with non-NTFS formatted virtual hard disks.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9936430" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Server+2008+R2/default.aspx">Windows Server 2008 R2</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Virtual+PC/default.aspx">Windows Virtual PC</category></item><item><title>Core Configurator 2.0 now available!</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/12/03/core-configurator-2-0.aspx</link><pubDate>Fri, 04 Dec 2009 07:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9932380</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9932380.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9932380</wfw:commentRss><description>&lt;P&gt;Core Configurator 2.0 is now available for download here: &lt;A title=http://coreconfig.codeplex.com/ href="http://coreconfig.codeplex.com/" mce_href="http://coreconfig.codeplex.com/"&gt;http://coreconfig.codeplex.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you are unfamiliar with this tool – it is a graphical tool that allows you to configure a whole bunch of system settings on a Windows Server Core installation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/CoreConfigurator2.0_14C56/Pics_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/CoreConfigurator2.0_14C56/Pics_2.jpg"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; MARGIN: 5px 5px 5px 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=Pics border=0 alt=Pics src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/CoreConfigurator2.0_14C56/Pics_thumb.jpg" width=492 height=386 mce_src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/CoreConfigurator2.0_14C56/Pics_thumb.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Having spent some time playing with this release I have been impressed by a number of features:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The entire tool is just a bunch of PowerShell Scripts.&amp;nbsp; Truly amazing stuff.&amp;nbsp; I just spent half an hour pouring over the code in these scripts to see how they are able to do half the things they manage to do.&lt;/LI&gt;
&lt;LI&gt;If you have not enabled PowerShell on your core server – the launch script will offer to do so automatically.&amp;nbsp; So it is very easy to get up and running.&lt;/LI&gt;
&lt;LI&gt;Along with all the usual server core configuration stuff - this release has basic support for Hyper-V which allows you to list virtual machines, start and stop virtual machines, and view the thumbnail of running virtual machines.&lt;/LI&gt;
&lt;LI&gt;If you are planning to use this to setup server core inside a virtual machine – you can also download the tool on a .ISO file – which lets you easily connect it to your virtual machine of choice.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Cheers, &lt;BR&gt;Ben&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9932380" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Windows+Server+2008+R2/default.aspx">Windows Server 2008 R2</category></item><item><title>Why Hyper-V cannot boot off of SCSI disks (and why you should not care)</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/12/01/why-hyper-v-cannot-boot-off-of-scsi-disks-and-why-you-should-not-care.aspx</link><pubDate>Tue, 01 Dec 2009 18:58:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930998</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>12</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9930998.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9930998</wfw:commentRss><description>&lt;p&gt;Under Hyper-V we have two kinds of disk controller that you can add to a virtual machine – IDE disks and SCSI disks.&amp;#160; A rough list of the differences between these controllers is as follows:&lt;/p&gt;  &lt;p&gt;IDE:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Works on operating systems without integration services installed / available&lt;/li&gt;    &lt;li&gt;Can be used to boot a virtual machine&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;SCSI:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Supports hot add / remove of virtual hard disks&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The type of disk controller that you use in the virtual machine has nothing to do with the type of disk that you are using in your physical computer.&amp;#160; SCSI VHDs can be stored on IDE disks, and IDE VHDs can be stored on SCSI disks.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Why can’t you boot Hyper-V virtual machines off of SCSI disks?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Well, calling our SCSI controller “SCSI” is somewhat of a misnomer.&lt;/p&gt;  &lt;p&gt;When we were working on Virtual Server we heard, loud and clear, that servers had SCSI disks – so virtual servers needed to have virtual SCSI disks.&amp;#160; To this end we invested in the emulation of an Adaptec SCSI controller for Virtual Server.&amp;#160; Unfortunately, this SCSI controller is a very advanced piece of hardware – and as a result was actually &lt;a href="http://blogs.msdn.com/virtual_pc_guy/archive/2005/01/26/361361.aspx" target="_blank"&gt;slower to emulate&lt;/a&gt; than the more simplistic IDE controller that we were already emulating.&lt;/p&gt;  &lt;p&gt;In the end we had to extend our emulated Adaptec controller and write custom drivers for our supported operating systems in order to get good performance for SCSI in a virtual machine.&lt;/p&gt;  &lt;p&gt;With Hyper-V we dropped the emulation of an Adaptec controller altogether.&amp;#160; Instead we implemented our traditional emulated IDE controller and a new completely virtual, VMBUS based, storage controller - with no traces of emulation present.&lt;/p&gt;  &lt;p&gt;It is this virtual storage controller that you are adding to a virtual machine when you choose to add a SCSI controller to a virtual machine.&lt;/p&gt;  &lt;p&gt;The problem is that the BIOS that is used by our virtual machine has no knowledge of VMBUS and is only able to boot to emulated devices.&amp;#160; This is why you can boot to an IDE controller and a legacy network adapter – but not to a SCSI controller or network adapter.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Why you should not care about not being able to boot off of SCSI disks in Hyper-V.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;When talking to users about needing to boot off of SCSI disks in a virtual machine – there were two reasons that came up.&lt;/p&gt;  &lt;p&gt;The first one was that SCSI could support larger virtual hard disks than IDE could.&amp;#160; To address this we made the IDE controller in Hyper-V use &lt;a href="http://en.wikipedia.org/wiki/Logical_block_addressing#LBA.2C_ATA_devices_and_Enhanced_BIOS" target="_blank"&gt;48-bit LBA&lt;/a&gt;.&amp;#160; This allows you to attach virtual hard disks that are up to 2TB in size to an IDE controller.&lt;/p&gt;  &lt;p&gt;The second reason was performance.&amp;#160; But that too is not an issue.&lt;/p&gt;  &lt;p&gt;Let me start by grabbing an architectural diagram I have on file (you can tell that this is an old diagram because it uses our codename – Viridian – which means it was originally drawn before we had been given “Hyper-V” as our name).&amp;#160; Now, the parent partition diagram is not 100% correct for Windows Server 2008 R2 – but the child partition diagram is accurate for both Windows Server 2008 and Windows Server 2008 R2, and that is where I want to focus.&lt;/p&gt; &lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px 5px 5px 0px; display: inline; border-top: 0px; border-right: 0px" title="storage" border="0" alt="storage" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/WhyHyperVcannotbootoffofSCSIdisksandwhyy_8E75/storage_3.png" width="643" height="535" /&gt;  &lt;br /&gt;  &lt;p&gt;The first thing to notice in the child partition side of things is the “Virtual Storage Minport (VSC)”.&amp;#160; The is essentially the driver that gets loaded when you attach a SCSI controller to a virtual machine.&amp;#160; It connects to VMBUS and allows us to perform Disk I/O without any emulation involved in a very high performance manner.&lt;/p&gt;  &lt;p&gt;The next thing to notice is the “Fast Path Filter”.&amp;#160; This is a filter driver that gets installed on all disk objects in the virtual machine – whether they are IDE or SCSI.&amp;#160; It allows us to pass directly to the VMBUS based path for everything except low level disk operations (like partitioning a disk).&lt;/p&gt;  &lt;p&gt;What this means is that once the integration services are installed the same code path is used for disk I/O whether you use an IDE disk or a SCSI disk.&amp;#160; There are two limitations that remain for IDE disks:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Disk commands to IDE disks on the same controller are serialized by the guest operating system (note that you can only have two IDE disks on a single controller)&lt;/li&gt;    &lt;li&gt;The IDE disk is limited to I/O block sizes of 512kb or less – while the SCSI controller can go up to block sizes of 8mb&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;However I have yet to see a test where either of these limitations resulted in a noticeable performance difference between IDE and SCSI.&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9930998" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item><item><title>Updated Hyper-V Monitor Gadget Now Available</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/11/30/updated-hyper-v-monitor-gadget-now-available.aspx</link><pubDate>Tue, 01 Dec 2009 07:34:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930621</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9930621.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9930621</wfw:commentRss><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 5px 5px 5px 0px; display: inline; border-top: 0px; border-right: 0px" title="Capture" border="0" alt="Capture" align="right" src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/UpdatedHyperVMonitorGadgetNowAvailable_148FC/Capture_1.png" width="201" height="189" /&gt;Tore Lervik has released an updated version of his fantastic Hyper-V Monitor Gadget.&amp;#160; New features in this release include:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Neat little CPU graph for running virtual machines&lt;/li&gt;    &lt;li&gt;Option to use Remote Desktop to connect to running virtual machines&lt;/li&gt;    &lt;li&gt;Support for turning on / shutting down a remote Hyper-V server using Wake-On-LAN&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If you have not tried this tool out, you should go and grab a copy from here: &lt;a title="http://mindre.net/post/Hyper-V-Monitor-Gadget-for-Windows-Sidebar.aspx" href="http://mindre.net/post/Hyper-V-Monitor-Gadget-for-Windows-Sidebar.aspx"&gt;http://mindre.net/post/Hyper-V-Monitor-Gadget-for-Windows-Sidebar.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers,   &lt;br /&gt;Ben    &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9930621" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item><item><title>Hyper-V and Domain Controllers – Demo Tips and Tricks</title><link>http://blogs.msdn.com/virtual_pc_guy/archive/2009/11/20/hyper-v-and-domain-controllers-demo-tips-and-tricks.aspx</link><pubDate>Sat, 21 Nov 2009 07:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9926682</guid><dc:creator>Virtual PC Guy</dc:creator><slash:comments>12</slash:comments><comments>http://blogs.msdn.com/virtual_pc_guy/comments/9926682.aspx</comments><wfw:commentRss>http://blogs.msdn.com/virtual_pc_guy/commentrss.aspx?PostID=9926682</wfw:commentRss><description>&lt;P&gt;In the past I have talked about the different configuration options when running &lt;A href="http://blogs.msdn.com/virtual_pc_guy/archive/2008/11/24/the-domain-controller-dilemma.aspx" target=_blank mce_href="http://blogs.msdn.com/virtual_pc_guy/archive/2008/11/24/the-domain-controller-dilemma.aspx"&gt;Domain Controllers and Hyper-V&lt;/A&gt;.&amp;nbsp; One of the more interesting configurations I discussed then was having a Hyper-V server joined to a domain where the domain controller was a virtual machine running on the same instance of Hyper-V.&lt;/P&gt;
&lt;P&gt;This is actually a configuration I use all of the time when I am doing public demonstrations.&amp;nbsp; The reason why I do this is because:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I do not like to ship hardware – as I have had hardware get damaged in shipping too many times. &lt;/LI&gt;
&lt;LI&gt;I do not trust networking in a demo environment – so if I can keep it all on one computer, I will. &lt;/LI&gt;
&lt;LI&gt;I often have to demonstrate software / configurations that need a domain controller. &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;This all means that I need to have a domain controller in a virtual machine on my laptop.&lt;/P&gt;
&lt;P&gt;Over the course of many demos – I have gleaned a few interesting tips and tricks for this sort of configuration.&lt;/P&gt;
&lt;P&gt;One of the biggest differences (for me) about doing this on my laptop, is that I need to system to be able to boot quickly and reliably.&amp;nbsp; Often when speaking publicly – I only get to take the stage about 10 minutes prior to speaking.&amp;nbsp; I need to be able to boot my whole system and be confident that my demo is going to work in under 10 minutes.&lt;/P&gt;
&lt;P&gt;Sometimes I also need to run my PowerPoint presentation on the same laptop – so make that 8 minutes to “up and running”.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tip #1 – Disable the use of cached credentials&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Normally, if you have a computer joined to a domain and you try to login when no connection to the domain controller is present- you will be able to log in successfully.&amp;nbsp; The reason why this works is because Windows allows you to use a locally cached copy of your domain credentials.&lt;/P&gt;
&lt;P&gt;Unfortunately – this can be a problem in a demo environment.&amp;nbsp; Imagine this scenario:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;You have your demo all setup and ready to go, you pack up your laptop and head out to where you are going to be presenting.&amp;nbsp; Once there you boot your laptop, login, and start the presentation.&amp;nbsp; 20 minutes in – it is time for your demo.&amp;nbsp; You switch from PowerPoint and start to do the demo – only to find that none of your server virtual machines are authenticating with each other!&amp;nbsp; After a few minutes of nervous muttering – you realize that the domain controller never started.&amp;nbsp; By this time – your demo is pretty much ruined and you have to abandon the whole thing.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yup,&amp;nbsp; I have had this happen to me.&amp;nbsp; That is why I like to disable the use of cached credentials.&amp;nbsp; This way I am immediately alerted of problems with my domain environment – and know that if I was able to login – then everything is fine.&amp;nbsp; Of course, if you are going to do this you need to be extra careful to have a local administrator account ready to go if there is a problem to fix.&lt;/P&gt;
&lt;P&gt;You can disabled the use of cached credentials by going to the client computer (your physical computer / management operating system in this case), opening REGEDIT.EXE and locating this registry key: &lt;STRONG&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&lt;/STRONG&gt;.&amp;nbsp; Then you want to find the entry called &lt;STRONG&gt;cachedlogonscount&lt;/STRONG&gt; and change it to &lt;STRONG&gt;0&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tip #2 – Avoid huge delays by fixing the DNS up when the Domain Controller Starts&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have wrestled with this one for a while, as I know many of you have.&amp;nbsp; When you restart your domain controller it seems to take &lt;STRONG&gt;*for ever*&lt;/STRONG&gt; before it will let you authenticate from a remote computer.&amp;nbsp; I timed my standard demo environment (without the change that I am about to discuss) and it would often take longer than 10 minutes from system boot to being able to login to the domain.&amp;nbsp; Clearly this is a big issue for me when I am up on stage and trying to get my demo up and running quickly.&amp;nbsp; But I have also been frustrated by this is my home server setup as well.&amp;nbsp; After a bit of digging – I discovered that the cause of this delay is because the domain controller is not registered correctly with the domain name services server (DNS).&amp;nbsp; As I have a small setup I usually create a single virtual machine that contains the domain controller, DNS server and DHCP server.&lt;/P&gt;
&lt;P&gt;In this configuration – the DNS server comes up after the domain controller – and does not have the registration information from the domain controller.&amp;nbsp; When a domain controller fails to register itself with a DNS server, two things happen:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;No one is able to find the domain controller&lt;/LI&gt;
&lt;LI&gt;The domain controller waits about 10 minutes before trying to re-register itself with the DNS server&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;So the trick is to try and get re-registration to happen quicker.&lt;/P&gt;
&lt;P&gt;The way I do this is by creating a batch file (which I call “FixDNS.CMD”) the contents of this batch file is as follows:&lt;/P&gt;
&lt;DIV style="BORDER-BOTTOM: silver 1px solid; TEXT-ALIGN: left; BORDER-LEFT: silver 1px solid; PADDING-BOTTOM: 4px; LINE-HEIGHT: 12pt; BACKGROUND-COLOR: #f4f4f4; MARGIN: 20px 0px 10px; PADDING-LEFT: 4px; WIDTH: 97.5%; PADDING-RIGHT: 4px; FONT-FAMILY: 'Courier New', courier, monospace; DIRECTION: ltr; MAX-HEIGHT: 200px; FONT-SIZE: 8pt; OVERFLOW: auto; BORDER-TOP: silver 1px solid; CURSOR: text; BORDER-RIGHT: silver 1px solid; PADDING-TOP: 4px" id=codeSnippetWrapper&gt;
&lt;DIV style="BORDER-BOTTOM-STYLE: none; TEXT-ALIGN: left; PADDING-BOTTOM: 0px; LINE-HEIGHT: 12pt; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: #f4f4f4; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; FONT-FAMILY: 'Courier New', courier, monospace; DIRECTION: ltr; BORDER-TOP-STYLE: none; COLOR: black; FONT-SIZE: 8pt; BORDER-LEFT-STYLE: none; OVERFLOW: visible; PADDING-TOP: 0px" id=codeSnippet&gt;&lt;PRE style="BORDER-BOTTOM-STYLE: none; TEXT-ALIGN: left; PADDING-BOTTOM: 0px; LINE-HEIGHT: 12pt; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: white; MARGIN: 0em; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; FONT-FAMILY: 'Courier New', courier, monospace; DIRECTION: ltr; BORDER-TOP-STYLE: none; COLOR: black; FONT-SIZE: 8pt; BORDER-LEFT-STYLE: none; OVERFLOW: visible; PADDING-TOP: 0px"&gt;ipconfig /flushdns&lt;/PRE&gt;&lt;!--CRLF--&gt;&lt;PRE style="BORDER-BOTTOM-STYLE: none; TEXT-ALIGN: left; PADDING-BOTTOM: 0px; LINE-HEIGHT: 12pt; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: #f4f4f4; MARGIN: 0em; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; FONT-FAMILY: 'Courier New', courier, monospace; DIRECTION: ltr; BORDER-TOP-STYLE: none; COLOR: black; FONT-SIZE: 8pt; BORDER-LEFT-STYLE: none; OVERFLOW: visible; PADDING-TOP: 0px"&gt;ipconfig /registerdns&lt;/PRE&gt;&lt;!--CRLF--&gt;&lt;PRE style="BORDER-BOTTOM-STYLE: none; TEXT-ALIGN: left; PADDING-BOTTOM: 0px; LINE-HEIGHT: 12pt; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: white; MARGIN: 0em; PADDING-LEFT: 0px; WIDTH: 100%; PADDING-RIGHT: 0px; FONT-FAMILY: 'Courier New', courier, monospace; DIRECTION: ltr; BORDER-TOP-STYLE: none; COLOR: black; FONT-SIZE: 8pt; BORDER-LEFT-STYLE: none; OVERFLOW: visible; PADDING-TOP: 0px"&gt;nltest /dsregdns&lt;/PRE&gt;&lt;!--CRLF--&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The “ipconfig” commands ensure that all is correct with the DNS settings and the “nltest” command does the work to register the domain controller with the DNS server.&lt;/P&gt;
&lt;P&gt;I then use task scheduler to run this batch file “At system startup”.&amp;nbsp; I have it configured to run without needing a user to log in, and have it run as a domain administrator account:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/HyperVandDomainControllersDemoTipsandTri_7BF0/Untitled4_2.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/HyperVandDomainControllersDemoTipsandTri_7BF0/Untitled4_2.png"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=Untitled4 border=0 alt=Untitled4 src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/HyperVandDomainControllersDemoTipsandTri_7BF0/Untitled4_thumb.png" width=330 height=248 mce_src="http://blogs.msdn.com/blogfiles/virtual_pc_guy/WindowsLiveWriter/HyperVandDomainControllersDemoTipsandTri_7BF0/Untitled4_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The result of these changes is that my laptop is able to boot and login to the domain controller in under 4 minutes.&amp;nbsp; Handy!&lt;/P&gt;
&lt;P&gt;Well, that is it for today.&amp;nbsp; Hopefully these tips and tricks will help you out some day.&lt;/P&gt;
&lt;P&gt;Cheers, &lt;BR&gt;Ben&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9926682" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/virtual_pc_guy/archive/tags/Hyper-V/default.aspx">Hyper-V</category></item></channel></rss>