Browse by Tags

Tagged Content List
  • Blog Post: Using PowerShell to Ping Test a VM

    I have been spending some time creating PowerShell snippets to help when you need to troubleshoot / debug a Hyper-V environment. Here is a handy one-liner that I recently created: Get-VM "File Server" | Select -ExpandProperty NetworkAdapters | Select -ExpandProperty IPAddresses | %{Ping $_} When...
  • Blog Post: Hyper-V Survey

    We want to hear from you! Right now there is a small survey (under 10 minutes of work to complete) on Hyper-V available here: https://www.instant.ly/s/G5bPn?s=bb In this survey we: Ask for some basic information about how you are using virtualization Ask for feedback on Hyper-V in Windows...
  • Blog Post: The Most Popular Hyper-V PowerShell Cmdlets - by Bing

    Last week Jose Barreto made an excellent post about using PowerShell and Bing to check the popularity of various SMB PowerShell cmdlets. Well, I could not resist doing the same with Hyper-V! I made a slight tweak to Jose's code - by storing my data in a hashtable. This made it easier to sort and output...
  • Blog Post: Hyper-V PowerShell One-Line-Challenge - Part 3

    After posting my Hyper-V one-line PowerShell snippets last week - I had numerous people ask me: "Can you make this export to a CSV file?". How could I resist the ability to make this command even longer? So here you are: Get-Volume | ?{$_.DriveLetter -ne $null} | select @{N='Drive Letter';E={$_.DriveLetter...
  • Blog Post: Virtual PC Guy @ Ignite

    I will be at Microsoft Ignite this year. What will I be speaking about? Well - let me tell you: Looking forward to seeing everyone there! Cheers, Ben
  • Blog Post: Using PowerShell to Look at a VM Configuration

    I was recently asked to provide a PowerShell sample that would let you see everything inside a virtual machine configuration file - without having to import the virtual machine in question. Here is what I put together: Function Expand-VMConfig ($VMConfig) { $tempVM = (Compare-VM -Copy -Path $VMConfig...
  • Blog Post: Hyper-V PowerShell One-Line-Challenge - Part 2

    Building on the Hyper-V PowerShell One-Liner that I posted on Monday - comes this even more complicated one-liner: Get-Volume | ?{$_.DriveLetter -ne $null} | select @{N='Drive Letter';E={$_.DriveLetter}},@{N='Free Space (GB)';E={"{0:N2}" -f ($_.SizeRemaining / 1GB)}},@{N='Space Used By VHDs (GB)';E...
  • Blog Post: Hyper-V PowerShell One-Line-Challenge

    While digging through my notes I came across an exchange between a colleague and I - where we were challenging each other to come up with the most impressive (and functional) "Hyper-V PowerShell One Liner". Here is an example of a good one: Get-Volume | ?{$_.DriveLetter -ne $null} | select @{N='Drive...
  • 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: Removing a Missing Network Adapter

    I recently hit a problem with one of my virtual machines. I had copied a virtual hard disk from one server to another, created a new virtual machine that used this virtual hard disk, and found that my scripts did not work anymore. After a bit of inspection I realized what was going on - in moving the...
  • Blog Post: Hyper-V on Windows 10 Technical Preview Build 10049

    Last night we released Windows 10 Technical Preview Build 10049 to Windows Insiders on the Fast ring. This is an exciting release - as it has some key new technology in it. Most notably it is the first release with Project Spartan in it. You can read all about it here: http://blogs.windows.com/bloggingwindows...
  • Blog Post: Checking Virtual Machine Health After a Disaster

    Last weekend I suffered a human disaster in my "server room". Which is to say that I knocked down a shelf in my garage and accidentally disconnected the UPS. This, in turn turned off all of my hardware. An hour later I had fixed the shelf, reconnected all the wiring and had booted the servers again....
  • Blog Post: SMB Bandwidth Limits and Shared Nothing Live Migration

    This week I have been discussing the network QoS options available for a Windows Server private cloud. On Wednesday I talked about the SMB bandwidth limit capability - that allows you to specify separate bandwidth limits for virtual machine storage and live migration traffic over SMB. One interesting...
  • Blog Post: Converged Network QoS and Live Migration over SMB

    On Monday I gave you a pointer to a great resource on configuring network QoS in converged networking configurations. One thing that this documentation does not cover is how to configure QoS for Live Migration over SMB. If you are using Live Migration over SMB, and storing virtual machine hard drives...
  • Blog Post: Getting QoS Right with Hyper-V and Converged Networking

    Back in the "olden days" of Windows Server 2008 R2, getting networking right for a Hyper-V private cloud was simple. Annoying - yes. But simple. Basically - you just had to have a separate network adapter (or two) for every class of traffic possible. Thankfully with Windows Server 2012 (and 2012 R2...
  • Blog Post: Hyper-V and "Event ID: 58 - The disk signature of disk 2 is equal to the disk signature of disk 0"

    On Monday I talked about how we had changed backup in Windows Server 2012 R2 to make it scale better. However, there is one annoying downside of this change that I did not discuss. And that is Event ID 58. As I mentioned - we now connect a copy of a virtual machines virtual hard disk back to itself...
  • Blog Post: How Hyper-V Backup Got Better in 2012 R2 (but now requires a SCSI controller)

    Hyper-V has always provided the ability to backup all running virtual machines from the host operating system, without incurring any downtime for the virtual machines being backed up. To do this it utilizes the fantastic VSS (Volume Shadow Copy Services) functionality in Windows. When a user wants to...
  • Blog Post: Checking and Correcting Virtual Hard Disk Fragmentation

    With both dynamically expanding and differencing virtual hard disks - the following pattern is used when writing data: Check to see if data has already been written to this area of the disk If yes - write new data to the same location as the old data If no - create new blocks on the disk...
  • Blog Post: Enabling Secure Boot on Linux with the Windows Technical Preview

    When we released Windows Server 2012 R2 / Windows 8.1 and introduced the world to Generation 2 virtual machines - we were only able to run Windows guest operating systems. In the following months we worked with a bunch of folks in the Linux community and were able to get a number of Linux distributions...
  • Blog Post: Hyper-V Backup doesn’t interrupt running virtual machines (anymore)

    Hyper-V has always provided the ability to backup all your virtual machines from the host operating system.  In order to provide a consistent backup of the virtual machine – Hyper-V has traditionally employed two approaches: If the guest operating system has the Hyper-V backup integration service...
  • 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: Memory Demand in Windows 10

    When we introduced Dynamic Memory in Windows Server 2008 R2 SP1, one of the concepts we also introduced was “Memory Demand”.  Memory Demand is our assessment of how much memory a virtual machine actually wants (as compared to how much it has!).  Memory Demand is the primary metric that we use...
  • Blog Post: Hot Memory Resize with Windows 10

    One of the features that was introduced in the Technical Preview (and later builds) of Windows 10 (and Windows Server) is the ability to resize the memory of virtual machines while they are running. In Windows Server 2008 R2 SP1 we introduced the Dynamic Memory feature that allows Hyper-V to rapidly...
Page 1 of 22 (539 items) 12345»