Welcome to MSDN Blogs Sign in | Join | Help

Developing on Virtual Server / Hyper-V (RSS)

Information about how to use Virtual Server's COM and Hyper-V's WMI APIs to do interesting things

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

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

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

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

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

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