VM Operations

  There are three operation methods regarding VM operations: 1.       DefineVirtualSystem 2.       ModifyVirtualSystem 3.       DestroyVirtualSystem   VMs are represented by in memory WMI objects and serialized as Xml files as their backend storage. DefineVirtualSystem creates WMI objects and Xml files that are representing the creation VM. DestroyVirtualSystem will delete the WMI objects and its Xml…

1

Virtual System Management Services

Introduction Msvm_VirtualSystemManagementService is a WMI object that Hyper-V uses to perform Virtual System Management related operations. The service codes are implemented in vmms.exe which is in %windows%\system32 directory. Hyper-V Manager UI also uses these WMI operations to perform VM management operations. I will briefly describe what these methods are designed for and map them against…

3

Hyper-V WMI Introduction

It will be really difficult to under Hyper-V programming model without understanding WMI. I will briefly describe the WMI concepts that were used in our samples. WMI borrowed Relational Database concept and applied to the object world. There are many similarities between Relational Database and WMI. WMI CIM Studio is a visual tool that allows…

4

Build and Run C# Samples

To build and run each sample in C#, here are the steps: 1. Create a new project:     2. Add a new class and name it as common.cs:   3. Copy the common library code from:  http://msdn.microsoft.com/en-us/library/cc723869(VS.85).aspx and paste it into common.cs 4. Copy the C# sample and paste it into program.cs, for example: http://msdn.microsoft.com/en-us/library/cc723870(VS.85).aspx 5….

1

Debug Hyper-V VBSCript Samples

One of customers was not able to get the DNS name from a VM by running the samples at: http://msdn.microsoft.com/en-us/library/cc723870(VS.85).aspx I debugged and found out that the Win2008 Virtual System was still running Hyper-V beta. Here are the steps that I took: Copied the VBScript from the MSDN website above. Saved the VBScript as GetVirtualSystemDNSName.vbs Ran…

0

Blog Introduction

I wrote the msdn Hyper-V documentation samples with my colleges’ help. I want to use this blog to explain the contexts that we missed from these samples. I will be really happy if we can achieve the following goals together: Make our MSDN online samples easier to understand. Get your feedbacks into these samples. Get scenario samples that we need…

3

Purpose of My blog

I wrote the msdn Hyper-V documentation samples with my colleges’ help. I want to use this blog to explain the contexts that we missed from these samples. I will be really happy if we can achieve the following goals together: Make our MSDN online samples easier to understand. Get your feedbacks into these samples. Get scenario samples that we need…

0