Welcome to MSDN Blogs Sign in | Join | Help

January 2008 - Posts

Renaming a Hyper-V Virtual Machine

Moving on we come to a sample script for changing a setting on a virtual machine - in this case I am changing the virtual machines name. VBScript: Option Explicit   Dim WMIService Dim VM Dim VMManagementService Dim VMSystemSettingData Dim VMName

Shutting down a Hyper-V Virtual Machine

Now to get a little trickier - shutting down a virtual machine: VBScript: Option Explicit   Dim WMIService Dim VMList Dim VMName Dim VMGuid Dim ShutdownList Dim Result   'Specify the name of the virtual machine that I want to shutdown VMName

Starting a Hyper-V Virtual Machine

Next in the line up of scripts - another simple one - starting a virtual machine: VBScript: Option Explicit   Dim WMIService Dim VMList Dim VMName   'Specify the name of the virtual machine that I want to start VMName = "Windows Server

Bring on the Scripts!

Okay! Now that initial documentation of the Hyper-V WMI API is available I thought I would respond with a "Week of Hyper-V Scripts". Starting with a simple one - here is a script that will list the name, identifier and state for each virtual

Hyper-V WMI Documentation Available

Now for me to start working on some sample code for you all: http://msdn2.microsoft.com/en-us/library/cc136992(VS.85).aspx Cheers, Ben
Posted by Virtual PC Guy | 6 Comments
Filed under:

Using BitLocker under Virtual PC / Virtual Server

Up until recently, I thought it was impossible to use BitLocker drive encryption under Virtual PC / Virtual Server (because the virtual machines do not have a TPM for BitLocker to use).  However, thanks to Pascal Sauliere, I now know how to do this. 

Virtualization Announcements

We had a bunch of announcements today: Bob Muglia sent out an executive email on Harnessing the Power of Virtualization for Dynamic IT , and we also our Vision and Strategy to Accelerate Virtualization Adoption . Some key items here: Microsoft has acquired

Creating your own Hyper-V MMC Console

The Hyper-V Manager is normally displayed under the Server Manager, and as a stand alone entry under Administrative Tools.  However - I like to make my own customized MMC Console for Hyper-V.  Specifically I like to have the Hyper-V Manager,
Posted by Virtual PC Guy | 3 Comments
Filed under:

Allowing non-Administrators to control Hyper-V

By default Hyper-V is configured such that only members of the administrators group can create and control virtual machines.  Today I am going to show you how to allow a non-administrative user to create and control virtual machines. Hyper-V uses
Posted by Virtual PC Guy | 8 Comments
Filed under:

Managing Snapshots with Hyper-V

Hyper-V introduces the concept of virtual machine snapshots - which is to say point in time images of a virtual machine that you can return to at any stage.  These snapshots are implemented in the virtualization layer - and can be taken at any time
Posted by Virtual PC Guy | 8 Comments
Filed under:

Understanding the 'Clipboard' menu under Hyper-V

With Hyper-V the Virtual Machine Connection window has a menu titled 'clipboard'.  This menu brings two of my favorite features from Virtual PC to the server world.  Unfortunately these features caused some confusion under Virtual PC - so we
Posted by Virtual PC Guy | 1 Comments
Filed under:

Virtual Machine Connection Key Combinations with Hyper-V

With Hyper-V we now have the "Virtual Machine Connection" to use when interacting with a virtual machine (unlike Virtual Server which used "VMRC").  The Virtual Machine Connection window wraps the standard Remote Desktop Client
Posted by Virtual PC Guy | 5 Comments
Filed under:

Problems with Virtual Server and Automatically Restarting Virtual Machines

Per this KB article: http://support.microsoft.com/kb/941125 There is a known issue with Virtual Server and virtual machines which are configured to 'save state' when the system is shutdown - and then to automatically restart when the system is powered

Mounting VHDs from Managed Code

When Virtual Server 2005 R2 SP1 was released it included the VHDMount tool - that came with a DLL to allow you to control it programmatically.  Unfortunately we were rather light with the documentation / sample code for this.  So today I would

Using Hyper-V with a Wireless Network Adapter

Out of the box Hyper-V does not support connecting virtual machines to wireless network adapters.  As a primarily server focused product this is a reasonable limitation - especially given evils that we need to do to get wireless network adapters
Posted by Virtual PC Guy | 10 Comments
Filed under:

Understanding Networking with Hyper-V

With Hyper-V the world of networking is quite different than it was with Virtual Server. First to set the scene, with Windows Server 2008 installed on a system with one network adapter you will see this under Network Connections: And your system is operating
Posted by Virtual PC Guy | 22 Comments
Filed under:

The Explanation for Error 61658 when installing IC's with Hyper-V

If you are having problems installing integration components on Hyper-V and are getting an error 61658 - go and check out Mike's post on this issue: http://blogs.msdn.com/mikekol/archive/2008/01/04/getting-an-error-while-installing-the-ics-on-server-2003-here-s-why.aspx
Posted by Virtual PC Guy | 0 Comments
Filed under:

Running Virtual PC under Hyper-V Beta

They say that a picture speaks a thousands words, so: Yes!  This is Windows Server 2008 running the Hyper-V beta with Windows Server 2003 installed in a virtual machine, which in turn has Virtual PC 2007 installed and running Windows 98. And the

Things that Virtual PC needs to be run as Administrator for...

For the most part Virtual PC is able to happily run when you are using a non-administrative user account and everything will work.  There are - however - a couple of things that will not work correctly unless Virtual PC is run under an Administrative
 
Page view tracker