Hyper-V

Tip: Adding Support for 802.1x Through the Hyper-V vSwitch in Windows 10 1809 and Windows Server 2019

Starting with Windows 10 1809 and Windows Server 2019, Microsoft added the ability to provide support for 802.1x through the Hyper-V vSwitch. To enable it, a registry modification is required. Run the following with elevated credentials: reg add “HKEY_LOCAL_MACHINE\SYSTEM\CURRENTControlSet\vmsmp\parameters” /v 8021xEnabled /t REG_DWORD /d 1 /f shutdown /r /t 0 This makes the necessary registry modification and then restarts the computer.

AWS Adds Hyper-V Migration Support

Amazon has announced that it has added the ability to mass migrate Hyper-V farms to AWS. AWS Server Migration Service now supports the ability to migrate Hyper-V VMs to AWS. With this launch, you can now migrate virtual machines running in on-premises virtualization stacks from both Microsoft Hyper-V and VMware ESX/ESXi environments. AWS Server Migration Service is an agentless service that makes it easier to migrate thousands of on-premises workloads to AWS. It allows you to automate, schedule, and track incremental replications of live server volumes, making it easier for you to coordinate large-scale server migrations. Automating incremental replication, Server Migration Service helps you speed up your migration process and reduce the operational cost of migration. Details: https://aws....

Hyper-V Performance Monitor Tool

Monitor and view Hyper-V VM Guest Performance on your Hyper-V Hosts. This free PerfMon Tool Monitors CPU, Memory, Disk I/O and Network Statistics as seen from inside the Guest. All data is retrieved via WMI only. No modules or software install required. Run from any member server. Download: Hyper-V Performance Monitor Tool (PowerShell) Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in San Francisco in 2017!

How to Compact and Shrink the Size of a VHD File

By Garth Jones In a recent blog post, How to Expand a Disk within a VM That Is Using a VHD File, I showed you how to expand a VHDX file in logical disk size. I did this because I had a problem with the auto-growth of my SQL Server logs. Now that this problem is fixed, I want to return the VHDX file back to its normal logical size of 128GB, and make the VHDX file as small as possible. This blog post will show you how to perform these tasks. I can hear some of you saying, “Why? You are using a dynamically expanding VHDX file, so why bother compacting and shrinking the file?” As a refresher, remember that a dynamically expanding VHDX file will start at a few MBs and grow as files are added to the virtual hard drive. If you delete a file within the virtual hard drive, the space is freed up onl...

Reducing the Effects of Endpoint Protection on Hyper-V Server Performance

By Garth Jones Recently, I noticed that one of my Hyper-V test labs consistently had a Disk Queue Length of 5 or more disk read/writes. A disk queue length of one or more means that there’s a bottleneck every time the server/application tries to access the disks. In most cases, the server/application is doing nothing. This explains why you will see pauses in your server/application when it is stuck waiting. Since disk I/O is the number one killer of VM performance, anything to reduce it is a good thing! This blog post will focus solely on reducing unnecessary disk I/O caused by Endpoint Protection (when it scans for viruses and malware) in System Center Configuration Manager. Not too long ago, I wrote a blog post about how to exclude VHD* files from Endpoint Protection scanning, but I want...

Veeam Finds that KB4013429 Breaks Hyper-V 2016 Backup

Microsoft’s monthly updates always provides fodder for complaint – and that’s just with Microsoft’s own products. But, the inability to test against 3rd party products is another potential pitfall of Microsoft updates. That’s why its so important to test the updates before deployment. Case in point: Veeam has found that the recent KB4013429 breaks the company’s Hyper-V 2016 Backup product. Veeam’s alert here: Microsoft KB4013429 breaks Hyper-V 2016 Backup The KB alert states that… …the issue persists if the following conditions are met: Cluster resource owner node is not upgraded VM owner node is upgraded   Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in ...

Configuration Manager, Endpoint Protection and Hyper-V

By Garth Jones More and more companies are using Endpoint Protection in System Center Configuration Manager, along with the Hyper-V role, to virtualize computers within their environments. It should be noted that in order to get the most out of the Hyper-V role you should exclude VHD* files from being scanned by any antivirus (AV) products, including Endpoint Protection. Excluding these files will prevent unnecessary AV scans on these very large files which then helps to increase disk I/O. This blog post will show you how to exclude VHD* files from Endpoint Protection scanning. Start by opening the Configuration Manager console and expanding Endpoint Protection | Antimalware Policies. Next, select the Default Client Antimalware Policy and click on the Properties button. In the Default Anti...

Notes from the Field: Converting Hyper-V Server to Windows Server

By Garth Jones In a previous blog post I talked about Broadcom NIC issues that cropped-up when I upgraded a Hyper-V Server to Windows Server 2012 R2 Standard. In this blog post I’ll talk about the lessons I learned during the upgrade. During the upgrade process I also needed to convert a pass-through disk to a VHDX file, adjust the RAID configuration, and convert the host to Windows Server 2012 R2 Standard. I decided to change the RAID configuration to RAID 1 for the host OS C:\ and RAID 5 to hold all the VHDX files on D:\. This was done to allow the maximum disk space without sacrificing performance on the VMs. At a high level the following steps were performed. 1. Backed-up both VMs to a Network Attached Storage (NAS) device. 2. Created an iSCSI (Internet Small Computer System Interface)...

Hyper-V Server Slow? Check Broadcom NIC KB

By Garth Jones The first day after upgrading from Hyper-V 2012 Server to Windows Server 2012 R2 Standard with the Hyper-V role installed, I was in the office early, like any good administrator, making sure that there weren’t any issues. Unfortunately, before I had a chance to look at my emails, a colleague told me that the server was slow. Specifically, file transfers were very slow. What happened? When the request to upgrade the server originally crossed my desk, I wanted to upgrade Hyper-V 2012 Server to Windows Server 2012 R2 Standard, but my research told me that you couldn’t do that. I had to change my plan to format the hard drives and install Windows Server 2012 R2 Standard. The update was also complicated by the fact that the Hyper-V host server had a pass-through disk for one of t...

Windows 10 Creators Update’s Virtual Machine Quick Create and Memory Allocation Changes in Hyper-V

One of the new features introduced in Build 15002 of Windows 10 is the ability to quickly create virtual machines using an enhanced Hyper-V Manager feature. Still a work in progress, Microsoft says… Hyper-V Manager has a new page that makes it faster and easier to create virtual machines. Just open Hyper-V Manager and click ‘Quick Create’. The simple wizard will help you set up a VM in just a few clicks. After the virtual machine has been created, the confirmation page will allow you to connect to it or enter advanced settings. Additionally, Build 15002 changes how memory is allocated for virtual machines. With these changes, Hyper-V starts allocating memory in small chunks (to give the operating system a chance to trim memory from other applications) and will use all available memor...

New Feature for Hyper-V

By Garth Jones This blog post has been a long time coming. It started with an open letter to Ben Armstrong. Ben’s one of the Lead Program Managers on the Microsoft Hyper-V Team. I asked Ben to consider adding a feature that would allow for Virtual Machines (VMs) to be started in a pre-defined order with delays between each VM. I would love to see this in Hyper-V! I can hear what you’re thinking, “This is a great idea, but doesn’t it already exist in Hyper-V?” No, not what I’m looking for. You might ask, “What about the delayed start option?” Yes, that kind of works, but there are several major drawbacks with the delayed start option. Mainly having to: · Set this option manually for EACH VM (see Row #1 in my example below). · Track what you have set for each VM. · Manually create a delay be...

Why Are My Virtual Machines Slow?

By Garth Jones The other day, I was working on my test SQL 2016 server and everything was “slow.” Since this was a virtual machine (VM), and we all know that disk I/O (input/output) is the number one killer of VM performance, I quickly looked at Resource Monitor. I saw that the host’s Disk Queue Length was over 50! Normally, it should be a max of 5 (red arrow) when I have all of my test labs up and running at the same time. Having a disk queue length of 50 told me right away that one or more of my VMs was writing a lot of data to the disk! Unfortunately, I’ve seen this problem before, so it didn’t take me that long to track down which VM was the culprit. All of my VMs are set to use Dynamic Memory. This means that they rarely have a multiple of 512 MB of memory assigned to them. I opened H...

  • 1
  • 2