Browse by Tags

Tagged Content List
  • Blog Post: Hyper-V and "Event ID: 157 - Disk x has been surprise removed"

    After posting about Hyper-V and Event ID 58 the other week - I had a number of people ask me about Event ID 157. They told me that each time they backed up a virtual machine they were seeing this event inside of the virtual machine as well. At first, I could not figure out why they were seeing this...
  • Blog Post: Finding a Virtual Machine Configuration File

    Oh, how I do like a PowerShell challenge. The other day a colleague asked me this – “Ben, do you have a PowerShell snippet that I could give to a customer that tells them which virtual machine configuration file belongs to which virtual machine?” Now, if you have ever looked at your virtual machine configuration...
  • Blog Post: Copying the VHD of a Generation 2 Linux VM–and not booting afterwards…

    If you have installed Linux in a Generation 2 virtual machine – everything is probably working great for you!  You can even export the virtual machine and import it somewhere else.  However, things will not go well if you just shutdown the virtual machine and copy the virtual hard drive to...
  • Blog Post: Adding a second (and third) management OS adapter to a Virtual Switch

    I was working on a Hyper-V server the other day – and decided that I wanted to connect it to a set of virtual machines that I had been working with.  Unfortunately, I had configured the virtual machines with multiple network interfaces on multiple separate subnets – and my host only had one physical...
  • Blog Post: Hyper-V and Wireless networking

    I have been getting a lot of questions about Hyper-V and wireless networking lately.  Specifically, these questions have been from people saying “why does it work sometimes, and not work other times”.  To give some background – wireless networking is quite tricky for virtualization.  To...
  • Blog Post: “The RPC server is unavailable” with Microsoft Virtual Machine Converter

    When I first tried to perform a physical to virtual migration with the Microsoft Virtual Machine Converter 3.0 – I immediately hit this error message: After a bit of poking around, I was able to figure out the problem.  Microsoft Virtual Machine Converter use WMI, which is blocked on the Windows...
  • Blog Post: Microsoft Virtual Machine Converter 3.0 Now Available

    Yesterday we released the Microsoft Virtual Machine Converter 3.0.  You can download it here: http://www.microsoft.com/en-us/download/details.aspx?id=42497 It has a staggering amount of features.  Including the ability to convert physical computers to virtual machines and to convert VMware...
  • Blog Post: Changing Ubuntu Screen Resolution in a Hyper-V VM

    If you install Ubuntu 14.04 inside a Hyper-V virtual machine – you automatically get all the integration components and virtualized drivers.  Including the Hyper-V video driver.  However, if you try to change the screen resolution inside your virtual machine you will notice something odd: There...
  • Blog Post: “Error applying Hard Drive changes” on Generation 2 VMs

    A Microsoft employee recently contacted us with this issue: “When I try and attach a virtual hard disk to a generation 2 virtual machine – I get an error message that says ‘Error applying Hard Drive changes’” It took a bit of conversation – but eventually we figured out what was happening.  Here...
  • Blog Post: Importing a Virtual Machine with an Incompatible Saved State

    This afternoon – an email arrived with the following question for me: “I’m working with on a Hyper-V migration with an import-vm component. I saw what I believe is your post on importing incompatible VMs. We are experiencing an issue where the incompatibility has to do with a bad saved state after the...
  • Blog Post: ‘Unnamed VM’ could not initialize… The security ID structure is invalid (0x80070539)

    While working on a system recently, I imported an old virtual machine – which then failed to start with this error message: What to do?  Well – thankfully the solution is already documented here: http://support.microsoft.com/kb/2927313/en-us But how did this happen?  And what is going on? Well...
  • 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...
Page 1 of 2 (37 items) 12