Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Virtual PC Guy's WebLog
Talking about virtualization at Microsoft (Virtual PC, Virtual Server and Windows virtualization).
This Blog
Email
Syndication
RSS 2.0
Atom 1.0
Search
Go
News
Welcome to the Blog of Ben Armstrong.
I am a Program manager on the core virtualization team at Microsoft. I will be talking about what I love and hate about our products here.
I also maintain a
personal blog
.
The standard Microsoft disclaimer applies to pretty much everything on this page:
"This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use."
Cheers,
Ben
MS Virtualization Links
The official VPC WebPage
Virtually Vista
The official Virtual Server WebPage
John Howard's Virtualization Blog
Robert Larson's Virtualization Blog
rakeshm's VM Management Blog
Taylor Brown's Blog
MVP Sites
Steve Jain's website
What works on Virtual PC...
Tags
Developing on Virtual Server / Hyper-V
Gaming under Virtual PC
Hyper-V
Operating Systems under Virtual PC / Virtual Server / Hyper-V
Personal
SCVMM
Tech / Microsoft Talk
Virtual PC / Server Tips 'n' Tricks
Recent Posts
Warning on Hyper-V hosts under SCVMM
New HVRemote tool
Hyper-V Script: Looking at KVP GuestIntrinsicExchangeItems
Go check out SCVMM 2008
Back from TechEd China
Archives
November 2008 (5)
October 2008 (3)
September 2008 (10)
August 2008 (7)
July 2008 (7)
June 2008 (11)
May 2008 (8)
April 2008 (10)
March 2008 (18)
February 2008 (10)
January 2008 (19)
December 2007 (11)
November 2007 (12)
October 2007 (5)
September 2007 (13)
August 2007 (3)
July 2007 (14)
June 2007 (14)
May 2007 (12)
April 2007 (23)
March 2007 (19)
February 2007 (7)
January 2007 (15)
December 2006 (4)
November 2006 (9)
October 2006 (19)
September 2006 (15)
August 2006 (11)
July 2006 (19)
June 2006 (13)
May 2006 (26)
April 2006 (22)
March 2006 (23)
February 2006 (22)
January 2006 (18)
December 2005 (1)
November 2005 (19)
October 2005 (20)
September 2005 (15)
August 2005 (19)
July 2005 (18)
June 2005 (17)
May 2005 (19)
April 2005 (18)
March 2005 (18)
February 2005 (20)
January 2005 (18)
December 2004 (20)
November 2004 (20)
October 2004 (16)
Browse by Tags
All Tags
»
Developing on Virtual Server / Hyper-V
(RSS)
Hyper-V
Operating Systems under Virtual PC / Virtual Server / Hyper-V
Personal
Tech / Microsoft Talk
Virtual PC / Server Tips 'n' Tricks
Tuesday, November 18, 2008 1:29 AM
Hyper-V Script: Looking at KVP GuestIntrinsicExchangeItems
You may wonder what that title is about, so let me pause to explain things a little. One of the Integration Components that gets installed inside the virtual machine with Hyper-V is the "KVP" component - which stands for "Key Value
Posted by
Virtual PC Guy
|
1 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Tuesday, September 30, 2008 12:20 AM
Hyper-V: Scripting Fixed VHD Creation
This script is practically identically to the one for creating a dynamically expanding virtual hard disk . The big thing to be aware of is that creation of a fixed size virtual hard disk takes a lot longer - so you need to make sure you handle the
Posted by
Virtual PC Guy
|
3 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Thursday, September 25, 2008 10:52 PM
Hyper-V: Scripting Dynamic VHD Creation
Today I would like to show you some basic scripts for creating a new dynamically expanding virtual hard disk. The tricky thing about doing this is that the WMI interfaces for creating virtual hard disks expect the size of the new virtual hard disk
Posted by
Virtual PC Guy
|
2 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Thursday, July 10, 2008 12:18 AM
PowerShell Management Library for Hyper-V
James O'Neill posts here: http://hypervoria.com/hyper-v/hyper-v-powershell-library-now-on-codeplex.aspx to let us know that he has provided a PowerShell Management Library for Hyper-V available here: http://www.codeplex.com/PSHyperv Cheers, Ben
Posted by
Virtual PC Guy
|
2 Comments
Filed under:
Developing on Virtual Server / Hyper-V
,
Hyper-V
Wednesday, June 11, 2008 9:33 AM
Hyper-V Script: Compact VHD
Continuing on with my walk through the storage WMI API - here are some scripts for compacting VHDs with Hyper-V. Note that Hyper-V allows you to compact both differencing and dynamically expanding virtual hard disks. PowerShell: # Prompt for the
Posted by
Virtual PC Guy
|
11 Comments
Filed under:
Developing on Virtual Server / Hyper-V
,
Hyper-V
Monday, June 09, 2008 11:55 PM
Hyper-V Script: Validate VHD
Hyper-V provides a handy scripting interface that allows you to validate a virtual hard disk. You can use this for two main purposes: To confirm that a standard VHD file is correctly structured and not corrupted. To confirm that a differencing disk
Posted by
Virtual PC Guy
|
1 Comments
Filed under:
Developing on Virtual Server / Hyper-V
,
Hyper-V
Wednesday, May 28, 2008 12:37 AM
Scripting VM Creation with Hyper-V
People have been bugging me for this for a while - so here we go. Here are the VBScripts / PowerShell scripts to create a basic virtual machine: VBScript: Option Explicit Dim HyperVServer Dim VMName Dim WMIService Dim VSManagementService Dim VSGlobalSettingData
Posted by
Virtual PC Guy
|
6 Comments
Filed under:
Developing on Virtual Server / Hyper-V
,
Hyper-V
Monday, May 19, 2008 2:04 AM
Handling Job Objects with Hyper-V WMI scripting
Many of the methods in the Hyper-V WMI have an odd way of returning status. They can either immediately return a return value - or instead return a job object - and it can be hard to predict which one you are going to get. The reason for this is that
Posted by
Virtual PC Guy
|
4 Comments
Filed under:
Developing on Virtual Server / Hyper-V
,
Hyper-V
Thursday, March 27, 2008 8:06 PM
WMI Changes in Hyper-V RC
There have been some changes to the WMI management interfaces in the release candidate of Hyper-V from the previous beta release. While there have been no changes to the model, a number of the strings used in different places have been "cleaned up" to
Posted by
Virtual PC Guy
|
2 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Friday, February 01, 2008 9:55 PM
Mounting a Virtual Hard Disk with Hyper-V
You can mount a virtual hard disk under the parent partition with Hyper-V and a simple script: VBScript: Option Explicit Dim WMIService Dim VHDService Dim VHD 'Specify the VHD to be mounted VHD = "F:\Windows.vhd" 'Get instance
Posted by
Virtual PC Guy
|
10 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Thursday, January 31, 2008 9:49 PM
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
Posted by
Virtual PC Guy
|
3 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Wednesday, January 30, 2008 10:34 PM
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
Posted by
Virtual PC Guy
|
1 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Tuesday, January 29, 2008 11:24 PM
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
Posted by
Virtual PC Guy
|
5 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Monday, January 28, 2008 8:17 PM
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
Posted by
Virtual PC Guy
|
11 Comments
Filed under:
Developing on Virtual Server / Hyper-V
Thursday, January 10, 2008 4:26 PM
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
Posted by
Virtual PC Guy
|
3 Comments
Filed under:
Developing on Virtual Server / Hyper-V
More Posts
Next page »