Browse by Tags

Tagged Content List
  • Blog Post: Programmatically Detecting when a VM Changes State

    Every now and then I get asked how to detect whenever a virtual machine changes state. Usually, people who ask about this have written some code that periodically queries Hyper-V to see what state different virtual machines are in (stopped, running, etc.). What they find is that this is not efficient...
  • Blog Post: Setting up non-administrative control of Hyper-V through PowerShell–Updated

    Yesterday, I told you about how it was now easier to allow a non-administrative user to control Hyper-V . This is nice – but it does mean that this script that I blogged about 4 years ago no longer works. Here is a new one: $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent...
  • Blog Post: Allowing non-Administrators to control Hyper-V–Updated

    A long time ago, I did a post about how to allow non-Administrative users to control Hyper-V .  Then I did a post that showed you how to script this whole configuration .  Finally, I did a post that showed you how to setup a “Hyper-V Administrators” group to make the whole process easier. Well...
  • Blog Post: Looking for Wasted Space inside Virtual Machines

    Recently, I tried to update the operating system installed inside of one of my virtual machines.  I quickly received an error message stating that I did not have enough free space available to perform the upgrade.  My immediate thought was that I would need to expand the size of the virtual...
  • Blog Post: Exporting a Virtual Machine Checkpoint

    Something neat that you can do in Windows Server 2012 / Windows 8 or later is to export a virtual machine checkpoint.  You can do this by either: Selecting the checkpoint in the UI and selecting Export from the action pane Using the Export-VMSnapshot cmdlet When you do this, we will actually create...
  • Blog Post: Importing a VM with VHDs in Different Paths

    I was recently given an interesting challenge.  I was asked to show how you could use PowerShell to import a virtual machine; where the virtual hard disks were stored in multiple different locations.  Now, if the virtual hard disks were all in a single location, you could just use the “VHDSourcePath...
  • Blog Post: Hyper-V Networking–Router Guard

    Router guard is another advanced networking feature that was added in Windows Server 2012: When you enable Router Guard Hyper-V switch will discard the following packets: ICMPv4 Type 5 (Redirect message) ICMPv4 Type 9 (Router Advertisement) ICMPv6 Type 134 (Router Advertisement) ICMPv6 Type 137 (Redirect...
  • Blog Post: Hyper-V Networking–DHCP Guard

    If you start digging into the advanced settings section of a virtual network adapter – there is a lot of interesting stuff to look at.  Today I’m going to talk about the DHCP guard setting: This setting stops the virtual machine from making DHCP offers over this network interface.  To be clear...
  • Blog Post: My Daily Hyper-V Status Email–Part 5 of 5

    After displaying event logs , virtual machine health and storage health – the last thing that is included in my daily status email is usage data. For this I take advantage of the built in metrics functionality that is part of Hyper-V. Looking at this report – I realize I should probably filter our replicated...
  • Blog Post: My Daily Hyper-V Status Email–Part 4 of 5

    Now that I have talked about displaying event log information and virtual machine health information; the next part of my status email is storage health information. In my experience – the most common failure for my servers is a failed hard disk.  Now, as I have multiple levels of redundancy configured...
  • Blog Post: My Daily Hyper-V Status Email–Part 3 of 5

    Continuing on with my daily status email series ; after displaying event log information , my email displays a high level summary of the virtual machine health: These tables are generated with the following code: # VM Health $message = $message + "<style>TH{background-color:Indigo...
  • Blog Post: My Daily Hyper-V Status Email–Part 2 of 5

    Yesterday , I introduced my daily status email.  Today I am going to talk about the first chunk of information that is included in this email: event logs. The primary goal of my status email is to let me know if anything has gone wrong.  By looking at any errors or warnings in the System and...
  • Blog Post: My Daily Hyper-V Status Email–Part 1 of 5

    I have spent a fair amount of time creating a reliable and resilient Hyper-V deployment in my house . For the most part this system runs smoothly, however, the resiliency of the design leads to an interesting problem. My Hyper-V servers are housed in a small closet off the side of my garage. And if...
  • Blog Post: Using Compare-VM on Compare-VM

    I have been spending a lot of time this week looking at all the functionality that is available in the Compare-VM PowerShell cmdlet in Hyper-V.  The core concept of Compare-VM is that it returns a “virtual machine compatibility report” that lets you know about any problems that exist with the virtual...
  • Blog Post: Using PowerShell to Live Migrate to a Computer with a Different Virtual Switch

    So far this week I have shown you how to register and how to import virtual machines with configuration problems using PowerShell.  However, the question I most often hear is this one: how do I use PowerShell to live migrate a virtual machine to another computer – where the virtual switch names...
  • Blog Post: Importing an Incompatible VM with PowerShell

    Yesterday I stepped through the process of registering an incompatible virtual machine with PowerShell .  But what if you want to import the virtual machine instead of registering it?  Well, the process is pretty much identical.  Replace Import-VM with Compare-VM, fix the incompatibilities...
  • Blog Post: Registering an Incompatible VM with PowerShell

    If you have ever tried to register a virtual machine in Hyper-V Manager, and the virtual machine was not compatible with your current computer, you would have seen something like this: This is a GUI experience that allows you to make changes to the incoming virtual machine in order to make it work on...
  • Blog Post: Why is the wrong time displayed on my virtual machine?

    Here is the scenario: You have a bunch of server virtual machines that are merrily running somewhere in your environment.  Normally you do not interact with them, but once in a while you need to login to one of them and do something.  When this happens – you open up Hyper-V Manager and connect...
  • Blog Post: Managing Windows Server 2012 Hyper-V from Windows 8.1

    In the past we have always required that you use Hyper-V Manager on the same version of Windows as the version of Windows that you are using to run Hyper-V (i.e. Use Windows 7 to manage Windows Server 2008 R2, use Windows 8 to manage Windows Server 2012).  But we have made a change with Windows...
  • Blog Post: Reading Hyper-V Event logs with PowerShell

    Here is a handy tip – it is quite easy to gather any information that Hyper-V puts in the event log from PowerShell. You can get all Hyper-V related events by running: Get-WinEvent -FilterHashTable @{LogName ="Microsoft-Windows-Hyper-V*"} But I would not recommend that, as you will get a lot...
  • Blog Post: Using PowerShell to Update Integration Components with SCVMM

    Given that the process for updating integration components in System Center Virtual Machine Manager has been optimized for large scale operations – and obvious question is: how do I script this? The answer is quite simple.  All you need to do is to get the virtual machine object and run: Set-VM...
  • Blog Post: Updating Integration Services with SCVMM

    As a Hyper-V program manager, I am very familiar with the process for upgrading virtual machines using Hyper-V.  But I also often get questions about how you do this through System Center Virtual Machine Manager – and why the experiences are different. How you do it is easy enough – right click...
  • Blog Post: Figuring out your NUMA topology with Hyper-V

    I was recently asked how you should go about determining the NUMA topology of a physical computer, for the purposes of planning a Hyper-V deployment.  This is something that is normally quite tricky to do – so we actually included this information directly into the Hyper-V PowerShell interface to...
  • Blog Post: Configuring Hyper-V Replica Resynchronization

    If you have Hyper-V Replica enabled on a virtual machine, and Hyper-V is not able to send all disk changes across in a timely fashion, the replication relationship will eventually be put into a failed state.  At this point in time you need to perform a resynchronization to get the replication relationship...
  • Blog Post: Virtualizing Exchange on Hyper-V

    I was recently given a pointer to the following white paper that goes through all the best practices for virtualizing Exchange on top of Hyper-V: http://download.microsoft.com/download/4/A/C/4AC32FD3-220E-45DC-AA97-DBDBE19C15B2/Best_Practices_for_Virtualizing_and_Managing_Exchange_2013.pdf It does a...
Page 1 of 5 (108 items) 12345