Browse by Tags

Tagged Content List
  • Blog Post: How to get the best disk performance with Linux on Hyper-V

    I was recently reading our documented Best Practices for running Linux on Hyper-V and noticed this section: Use I/O scheduler NOOP for better disk I/O performance. The Linux kernel has four different I/O schedulers to reorder requests with different algorithms. NOOP is a first-in first-out queue that...
  • Blog Post: What version of Linux Supports what in Hyper-V?

    We have been doing a lot of work to increase the functionality of Linux on top of Hyper-V, and we have been contributing the necessary changes directly to the main Linux source.  While this is all good – it has caused confusion for some people as they are trying to figure out which versions of Linux...
  • 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: Ubuntu 14.04 in a Generation 2 VM

    Recently, Canonical released Ubuntu 14.04.  This is the first Linux release to support running inside of a Generation 2 virtual machine.  To get this working in your environment, you need to have Windows 8.1 or Windows Server 2012 R2 installed.  Then you need to download an installation...
  • Blog Post: Gathering Recent Events for a Specific VM

    Imagine this scenario: you login to one of your Hyper-V servers and find that something has gone wrong with a virtual machine.  Maybe the guest operating system is not responding, maybe it is running slower than expected, maybe something else has gone wrong. As you are triaging the problem – you...
  • Blog Post: Listing all the IP Addresses used by VMs

    Here is a neat little snippet of PowerShell: Get-VM | ?{$_.State -eq "Running"} |  Get-VMNetworkAdapter | Select VMName, IPAddresses If you run this on a Hyper-V Server it will give you a listing of all the IP addresses that are assigned to running virtual machines: This works whether...
  • 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: Hyper-V Networking–NIC Teaming

    If you look at the advanced features of a network adapter in Hyper-V, you may have noticed the NIC Teaming option below: And wondered what this was about. In most deployments you will enabled network adapter teaming in the host operating system, and connect a virtual switch to the team.  If you...
  • Blog Post: Understanding Maximum Dynamic Memory from inside a VM

    Dynamic memory is a great feature that allows Hyper-V administrators to get better utilization of their physical memory.  But it can be hard to tell what is going on from inside of a virtual machine.  There are, however, some things that you can do from inside a virtual machine. The first thing...
  • 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: Updated Hypervisor Top Level Functional Specification

    We have recently published a new version of the Hypervisor Top Level Functional Specification for Windows Server 2012 R2 / Windows 8.1.  You can grab a copy here: http://download.microsoft.com/download/A/B/4/AB43A34E-BDD0-4FA6-BDEF-79EEF16E880B/Hypervisor Top Level Functional Specification v4.0...
  • 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: Cloning running virtual machines in SCVMM 2012 R2

    Yesterday I posted about how Windows 8.1 / Windows Server 2012 R2 allow you to export a running virtual machine.  This is also available when using SCVMM 2012 R2. Here you can now clone a running virtual machine.  When you clone the virtual machine you can either store it in your virtual machine...
  • Blog Post: Exporting a running virtual machine

    One of the small features that we added in Windows 8.1 / Windows Server 2012 R2 is the ability to export a virtual machine that is currently running.  Using this feature is simple enough, just select a running virtual machine and choose to export it.  Here you can see that my MineCraft Server...
  • Blog Post: Resizing the boot drive of a virtual machine

    You can only resize the virtual hard disk of a running virtual machine if: It is a .VHDX file It is connected to a SCSI controller These restrictions mean that people often ask me if you can resize the boot disk of a virtual machine.  And the answer is: Yes, if it is a Generation 2 virtual machine...
  • Blog Post: Shrinking a VHDX on a Running Virtual Machine

    This week I have been talking about how to resize a VHDX on a virtual machine that is currently running.  It is easy to think that you can only increase a VHDX of a running virtual machine, but you can also shrink the VHDX of a running virtual machine.  The first thing that you need to do is...
Page 1 of 2 (26 items) 12