Welcome to TechNet Blogs Sign in | Join | Help

August 2009 - Posts

Hyper-V Podcast: TR9 – Bob Muglia

Shortly after TR9 I had the opportunity to talk with STB President Bob Muglia about Virtualization. Click the picture to open this 5 minute audio podcast from my public Skydrive ( TR9 – Bob Muglia ).  Includes Bob’s thoughts about customer advantages

Hyper-V TV: How to Fix BIOS error “Hypervisor is not running…”

In this 5 minute video Windows Server Technical Writer Felipe Ayora demonstrates how to change the BIOS settings on your computer to make the hypervisor run. NOTE: remember to completely power off your computer after making the changes to the BIOS. Some

System Center Virtual Machine Manager 2008 R2 – Eval Download Live

Link: http://www.microsoft.com/downloads/details.aspx?FamilyID=292de23c-845c-4d08-8d65-b4b8cbc8397b Team Blog http://blogs.technet.com/systemcenter/archive/2009/08/24/system-center-virtual-machine-manager-vmm-2008-r2-rtms.aspx

Hyper-V How To: Check if ICs are Current using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for checking the integration services/integration components to see if they are current in your VMs: # Test if the IC version is up to date param( [string]$vmName = $(throw "Must specify

Hyper-V How To: Check Hypervisor Heartbeat using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for checking in the hypervisor is running on a Hyper-V server (host/parent partition): # Check if Hypervisor is running $hypervisor = gwmi –ErrorAction SilentlyContinue Win32_PerfRawData_HvStats_HyperVHypervisor

Hyper-V How To: Snapshot a VM using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for taking a snapshot of your VMs: # Take a snapshot of a VM param( [string]$vmName = $(throw "Must specify virtual machine name") ) # Get the virtual machine by name $vm = gwmi -namespace

Hyper-V How To: Shut Down VMs using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for shutting down your VMs: # Shutdown a Virtual Machine (requires Integration Components) param( [string]$vmName = $(throw "Must specify virtual machine name") ) # Get the VM by name

Hyper-V How To: Set a Custom KVP using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for setting custom KVPs: # Set a Custom KVP param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$Key = $(throw "Must specify a key"), [string]$Value = $(throw

Hyper-V How to: Remove Virtual NIC using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for removing virtual NICs from your VMs: # Remove a NIC (synthetic ethernet port) from a virtual machine param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$ethPortName

There is no “Them” There

Another Pun-tastic blog post title designed to defeat SEO! Seriously though, in talking about Community (notice the capital C there?) with my peers, I encourage them to stop thinking of “us” as opposed “ them”, meaning YOU. “The Community” (another capital

Hyper-V How To: Map your Virtual Network Settings using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for getting a mapping your virtual network settings: # Navigate Network Topology to determine Virtual Switch type # ie: Internal, External, External-Shared, or Private # Prompt for the

Hyper-V How To: Modify VLAN Settings using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for modifying hte VLAN settings on your VMs: # Modify VLAN setting for VM param( $vmName = $(throw "Must supply a virtual machine name"), $vlanId = $(throw "Must supply vlan id"), $computer

Hyper-V How To: Merge VHDs using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for merging VHDs: # Merge VHDs param( [string]$mergePath = $(throw "Must specify full path for merging VHD"), [string]$parentPath = $(throw "Must specify full path of parent VHD") )

Hyper-V How To: Loopback Mount a VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for loopback mounting a VHD, for example, if you need to use bcdedit to alter the boot configuration store offline: # Loopback mount a VHD param( [string] $path = $(throw "Must supply

Hyper-V How To: List VMs using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for getting a list of VMs: # List VMs $vmList = gwmi -namespace root\virtualization Msvm_ComputerSystem |` where{$_.Name -ne $env:COMPUTERNAME} $vmList | select ElementName,Name,EnabledState,StatusDescriptions

Hyper-V How To: List Snapshots using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for getting a list of snapshots: # List Virtual System Snapshots #Obtain the VM name $VM_Name= Read-Host("Please specify the name of the VM ") $HostName = "." #obtain the Msvm_ComputerSystem

Hyper-V: Everything you always wanted to know about clustering* but were afraid to ask

My teenage daughter never tires of reminding me how often I show my age. The punning title of this blog is no exception. However, that should not take away from the awesomeness of the Clustering Team Blog post that lists 300+ useful documents, guides,

Hyper-V How To: Get Intrinsic KVPS using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for getting an intrinsic KVPS: # Get Intrinsic KVPs (Included Guest machine name, IC Version, OS Version, etc) param( [string]$vmName = $(throw "Must specify virtual machine name") )

Hyper-V How To: Get a Custom KVPS using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for getting a custom KVPS: # Get Custom KVPs param( [string]$vmName = $(throw "Must specify virtual machine name") ) $vm = gwmi -namespace root\virtualization Msvm_ComputerSystem -filter

Hyper-V How To: Expand a VHD

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for expanding VHD: # Expand a VHD param( [string]$vhdPath = $(throw "Must specify full path for VHD"), [string]$vhdSize = $(throw "Must specify expansion to add to VHD (in MB)") ) #

Hyper-V How To: Delete a VM using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for deleting a VM: # Delete a VM param( [string]$VMName = $(throw "Must specify name of virtual machine to delete") ) #Obtain the VM object that we are going to destroy $query = "SELECT

Hyper-V R2: Updated Requirements are live

The updated TN page Requirements and Limits for Virtual Machines and Hyper-V in Windows Server 2008 R2 is live. Enjoy.

Hyper-V How To: Delete Snapshot using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for deleting a VM snapshot: However BEFORE you go deleting snapshots , please read the Hyper-V Snapshot FAQ , and have a look at the Ben Armstrong Snapshot FAQ Video . # Delete Virtual

Hyper-V How To (Not): Snapshot FAQ with Ben Amrstrong

Some customers are having trouble with snapshots in Hyper-V . I recently had the opportunity to discuss these issues and best practices to avoid them with Ben Armstrong, a.k.a. Virtual PC Guy Click the image to view the 12 minute video on Showcase (not

Hyper-V How To: Create a Virtual Switch using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for creating a virtual switch: # Create a Virtual Switch param( [string]$vsName = $(throw "Must specify virtual switch name") ) # Get the Virtual Switch Management Service $vsms = gwmi

Hyper-V How To: Find the right Hyper-V Cmdlet

Jamesone’s excellent PowerShell Management Library for Hyper-V includes a Hyper-V cmdlet documentation PDF file that helps you chunk all the things you can do with Hyper-V using PS, for example, the following list of cmdlets parsed by function: Admin

Hyper-V How To: Create a VM using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for creating a VM: # Create a VM param( [string]$vmName = $(throw "Must supply a virtual machine name") ) # Get a new instance of Msvm_VirtualSystemGlobalSettingData $vsgsdClass = [wmiclass]"root\virtualization:Msvm_VirtualSystemGlobalSettingData"

Hyper-V How To: Detect if you are inside a VM

Sometimes, when troubleshooting or for forensic reasons, you may have to determine if an application is running inside a virtual machine. John Kelbley, co-author of Windows Server 2008 Hyper-V : Insiders Guide to Microsoft's Hypervisor , shares how. One

Hyper-V How To: Create a Fixed VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for creating a fixed VHD for your VM: # Create fixed VHD param( [string]$vhdPath = $(throw "Must specify full path for new VHD"), [string]$vhdSize = $(throw "Must specify size for new

Hyper-V How To: Create a Dynamic VHD using Script?

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for creating a dynamic VHD for your VM: # Create a dynamic VHD param( [string]$vhdPath = $(throw "Must specify full path for new VHD"), [string]$vhdSize = $(throw "Must specify size

Hyper-V How To: Create a Differencing VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for creating a diff VHD for your VM: # Create a differencing VHD param( [string]$newPath = $(throw "Must specify full path for new differencing VHD"), [string]$parentPath = $(throw "Must

Hyper-V How To: Find RSAT Tools for Win 7

For some reason, the search engines are not yet pulling up the download location of the newly releaser Remote Administration Tools you need for Hyper-V R2 (Windows Server 2008 R2 and Windows 7). It could be because they are titled and tagged in a way

Hyper-V How To: Modify VM VLAN IDs for Server Core using Script

Need to remotely set the VLAN IDs on your server core installation? Some friends on the Hyper-V team put together a powershell 2.0 script for setting vlan id which you could run on the server core directly (rename the extension of the script to .ps1).

Hyper-V How To: Copy-VM

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for copying a VM: ################################################################################ # # Copyright ©2008 Microsoft Corporation. All rights reserved. # # File: Copy-Vm.ps1

Hyper-V How To: Convert a VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for converting your VHDs: # Convert a VHD param( [string]$vhdPath = $(throw "Must specify full VHD path, including extension"), [string]$destPath = $(throw "Must specify full path of

Hyper-V How To: Connect a Virtual Switch to a VM using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for connecting a virtual switch to a VM: # Connect Virtual Switch to VM param( [string]$vsName = $(throw "Must specify virtual switch name"), [string]$vmName = $(throw "Must specify

Hyper-V How To: Connect a Virtual Switch to Physical NIC using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for connecting a virtual switch to a physical NIC on the HOST: # Compact a VHD param( [string]$vhdPath = $(throw "Must specify complete VHD path, including extension") ) #obtain the

Hyper-V How To: Connect Virtual Switch to Host using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for connecting your virtual switches to the management partition (parent partition): # Connect a Virtual Switch to the management partition param( [string]$vsName = $(throw "Must specify

Hyper-V How To: Compact a VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for compacting your VHDs: # Compact a VHD param( [string]$vhdPath = $(throw "Must specify complete VHD path, including extension") ) #obtain the Msvm_ImageManagementService class $ImageMgtService

Hyper-V How To: Clear All Virtual Networking using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for clearing all the VM’s networking objects: # Clear out all Virtual Networking objects # WARNING: Do not run this script remotely, as it will interrupt any network # connections during

Hyper-V How To: Reset VM MAC address range using a script

A friend has shared a script for resetting MAC address ranges on the NIC in your VMs if you are getting conflicts: Option Explicit Dim strComputer, objWMIService, IPConfig, IPConfigSet, i, currentIP, arrayIP, lastOcet, lastOcetHex Dim colItems, objItem,

Hyper-V How To: Change VM State using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for changing the VM state: # Change state of VM param( [string]$vmName = $(throw "Must supply a virtual machine name") [int]$newState = $(throw "Must specify a state to change to:`nEnabled:

Hyper-V How To: Change VHD using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for changing the VHD in a VM: # Change VHD in drive param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$oldPath = $(throw "Must specify the current path to

Hyper-V How To: Change ISO in VM Virtual DVD Drive using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for changing the ISO in a VM DVD drive: # Change ISO in virtual DVD drive param( [string]$vmName = $(throw "Must specify virtual machine name"), [int]$ideNum = $(throw "Must specify

Hyper-V How To: Apply VM Snapshot with Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for applying a virtual machine snapshot to a VM: # Apply Virtual System Snapshot param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$vmSnapName = $(throw

Hyper-V How To: Add a Virtual NIC to a VM using Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for adding a virtual NIC to a VM: # Add a NIC (synthetic ethernet port) to a virtual machine param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$ethPortName

Must See Hyper-V TV: Virtual PC Guy #1 W/a Bullet

Ben Armstr0ng, who blogs as Virtual PC Guy , recorded a 4 minute animation video that shows Hyper-V Architecture about a month ago. It is now the number 1 most-viewed Hyper-V video! Felipe’s video discussing how he uses virtualization ( Getting to Know

Hyper-V How To: Add a PT Disk to A VM with a Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for adding a pass-through disk to a VM: # Add a pass-through disk to a VM param( [string]$vmName = $(throw "Must specify virtual machine name"), [int]$ideNum = $(throw "Must specify

Remote Server Administration Tools for Windows 7 Released

Hyper-V R2 users have been waiting for the remote tools, released today as RSAT Tools for Windows 7 at: http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=en

Hyper-V Common Criteria Certification

  Q: Is Hyper-V Common Criteria Certified (Common Criteria level EAL4 augmented by ALC_FLR.3)? A: Heck ya: : http://www.bsi.de/zertifiz/zert/reporte.htm#Midsize_Systems :-) Congrats to the Hyper-V team.

Hyper-V Video: How to Configure an R2 Cluster

Matt’s posted a new video on The Edge showing how to configure a cluster, includes configuration of a Windows Server 2008 R2 Hyper-V cluster , configuring networking , servers , and the SAN integration .   Check out his series here . I like

Hyper-V R2 How To: Check CSV Free Disk Space

1. Open CluAdmin.msc 2. Click “Cluster Shared Volumes 4. Click the Volume (Cluster Disk also identified by C:\ClusterStorage\Volume…), right click and select “Properties” Both “Capacity” and “Free Space” are shown. If you use PowerShell you can use the

Hyper-V R2 How To: Move a VM + storage + snapshots

Want to move a VM from server A to server B along with its associated storage and snapshots in R2? Snapshots are associated with the VMs and not the VHD files. You should explore import/export. Soumya’s written a series of blogposts to get you started:

Hyper-V Podcast: John Cortez on How Microsoft IT Does Branch Office Virtualization

I recently had the opportunity at TR9 to chat for 5 minutes with John Cortez in Microsoft IT about virtualization and improvements to Branch Office infrastructure that resulted in millions of dollars of savings to IT. For more information see the white

Hyper-V How To: Set Up Multi-site Clustering

Courtesy of a colleague, here are some handy resources for reading up on how to set up a multi-site cluster: Clustering Forum: http://social.technet.microsoft.com/Forums/en-US/winserverClustering/threads Blog: http://blogs.msdn.com/clustering/archive/2008/05/10/8483427.aspx

Forum Greatest Hits: Call Now, Operators Are On Duty

Markus, the moderator over on the ILM forum, has created an interesting new content form: Forum Greatest Hit .   GHs are technical articles that are developed to address the following three key areas: Discoverability – For common questions, you should

Hyper-V How To: Build a Virtualized Test Infrastructure

I recently had the opportunity to chat with Rodney Fournier, Senior PFE at Microsoft, about building and running a testing infrastructure with our virtualization and management products, including Hyper-V R2, SCVMM, Operations Manager, Configurations
Posted by tonyso | 0 Comments

Better Living Through Twitterment

Microsoft has a search engine for twitter . You can find some interesting results and new information. For example, someone recently twitted a blog post of mine (shown below). Is this Leetspeak? fat fingers? Netgenoten Goed artikel: Hyper-V How To: Learn
Posted by tonyso | 1 Comments
 
Page view tracker