Virtual PC Guy's Blog

-- Ben Armstrong, Virtualization Program Manager

Talking about core virtualization at Microsoft (Hyper-V, Virtual PC and Virtual Server).

Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Developing on Windows Virtual PC / Virtual Server / Hyper-V   (RSS)

Using Floppy Disks with Windows Virtual PC

Most users of Windows Virtual PC do not need to use floppy disks with their virtual machines, as general usage of floppy disks has become rarer and rarer. Those who do need to use floppy disks – may think that they can no longer do this – as there is

Starting Virtual Machines via Scripting with Windows Virtual PC

Here are some simple scripts that allow you to start a virtual machine with Windows Virtual PC. Now, you may be wondering why you would want to do this. Well there are a couple of reasons I can think of: Automated testing. If you have a virtual machine

[Script] Listing Virtual Machines with Windows Virtual PC

To get things started here, I thought I would put up some samples for the most basic scripts I could think of for interacting with Windows Virtual PC. So here is a sample script that just lists the virtual machines that are currently registered on the

Windows Virtual PC and PowerShell

In the past I have lamented about how hard it is to use PowerShell to control Virtual Server .  Luckily it is much easier with Windows Virtual PC.  There is no need to load interop code – instead you can just point PowerShell at Virtual PC and

Developing against Windows Virtual PC

One of the big “under the covers” features of Windows Virtual PC is that it now has a programmable COM API that is based off of the Virtual Server COM API.  In fact – I have been able to take many of my existing Virtual Server scripts and turn them

Scripting Hyper-V: Using Associations

I would like to take a moment to talk about some “scripting technique” for how to get the best results out of your code.  With our WMI interfaces there are often multiple ways to get results, but some are more efficient than others.  Let’s say

Script: Creating an internal virtual network with Hyper-V – Plus…

Almost two weeks ago I posted a script for creating an internal virtual network , and today I would like to revisit it and extend it.  As I prefer to use core installations of Windows Server whenever possible – but this can make it a pain to configure

Script: Creating an external-only virtual network with Hyper-V

Okay, last script for the week.  Creating an external-only virtual network (one without a connection in the parent partition). VBScript: option explicit   Dim HyperVServer Dim SwitchFriendlyName Dim TypeLib Dim SwitchName Dim ExternalSwitchPortFriendlyName

Script: Creating an external virtual network with Hyper-V

Moving on with the series, we arrive at creating an external virtual network. VBScript: option explicit Dim HyperVServer Dim SwitchFriendlyName Dim TypeLib Dim SwitchName Dim InternalEthernetPortFriendlyName Dim InternalSwitchPortFriendlyName Dim InternalSwitchPortName

Script: Creating an internal virtual network with Hyper-V

Moving on from yesterdays script (which showed you how to create a private virtual network) let’s look at creating an internal virtual network via a script.  An internal virtual network is one that is not connected to a physical network adapter –

Script: Creating a private virtual network with Hyper-V

I spent a bunch of time scripting virtual networks under Hyper-V over the weekend – so this week I am going to share some of my scripts.  The first one is a simple one: it creates a private – or “virtual machine only” – virtual network. VBScript:

Enumerating parent KVP data

As I mentioned on Tuesday, when you send data to a virtual machine using KVPs they are then stored in a collection on the parent side to be pushed into the virtual machine whenever it starts up.  After sending a KVP you can then enumerate the KVPs

Sending data from parent to virtual machine via KVP

Last week I showed you how to gather information about the guest operating system running in a virtual machine by using the key-value pair functionality of Hyper-V. This week I would like to drill into how to send information from the parent to the virtual

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

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
More Posts Next page »
 
Page view tracker