Updated in Mar 2023: Ignore the May 2022 update, I was right all along. Microsoft actually change the default VMQ in Azure Stack HCI deployments, so that says all I need to know.
**** ALWAYS change base processor to core 2 (or 1 if HT is not enabled) **** Updated in May 2022: For about a year or so now since MS made some tweaks and a growing confidence in the out of the box settings, the optimal position has changed on WS2019.
Quick tip: You find yourself with duplicate HA roles for a virtual machine and you’re unable delete the problematic resource…
Symptoms:
Duplicate cluster roles for a virtual machine.
When attempting to delete, you get the error:
Error code: 0x8007012f The file cannot be opened because it is in the process of being deleted.
Firstly, why does this happen?
This can happen if an admin uses Failover Cluster Manager (even after they’ve been specifically instructed many times not too) to enable HA for a VM, then goes to SCVMM and uses the Migrate Virtual Machine and enable HA.
In a recent project, the management were keen to see some dashboards and insights into their organizations shiny new infrastructure.
Whilst SCOM gives some great data and statistics, it’s not overly helpful in demonstrating the high level view to management out of the box.
This is where Microsoft Operations Management Suite (OMS) steps in..
Background: This engagement included a new Hyper-converged platform (Hyper-V and Storage Spaces Direct) managed and monitoring with System Center (SCVMM and SCOM), so we had a great foundation to light up OMS and some chosen solutions.
I will add to this post over time with anything I can recall that has helped in the tuning of the many environments I’ve worked on…
Edited: 30/11 - Thoughts on Dynamic Optimization
Before I continue, as usual I’ll try not to repeat what you can already find out there, so here are some tips that have been helpful over the years. Be sure to investigate whether each of the tips mentioned are valid for your version of hypervisor as a couple of these posts have aged:
Hi all, this has been a long time coming but I wanted to share my thoughts and experiences on virtualization, Hyper-V and blades.
Before we get started, I wanted to put this in context and give some reasoning as to the purpose of this post. Over the last 5 or 6 years, I’ve been closely working with many service providers and enterprises in designing, configuring and supporting Hyper-V and System Center environments, and an interesting and often polarising discussion topic that regularly surfaces is blades vs racks.
Another one from my toolkit..
Basically run this batch file from a folder with the required update files and it will install them all.
Once it is finished it will prompt for any input to restart the server.
Enjoy! Dan
@ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION FOR /R "%~dp0" %%A IN (-KB.msu) DO ( CALL :SUB %%~nA ECHO= Installing KB!KB_NUM! >NUL TIMEOUT /t 3 WUSA "%%A" /quiet /norestart) ECHO= == Press any key to restart == >NUL PAUSE SHUTDOWN.
Quick Tip!!
So I was asked to create a custom property that gives a quick overview of the total size for the virtual disks on a VM
So, leveraging of my DataStore script, I came up with the below..
Enjoy Note: This assumes you have created your custom property already
$VMS = Get-scvirtualmachine Foreach ($VM in $VMS) { $DZ = $null $dzprop = Get-SCCustomProperty -Name Datasize $DataSize = Get-SCCustomPropertyValue -CustomProperty $dzprop -InputObject $VM IF ($DataSize.
Fast publish… will revisit later
Scenario:
Existing NVGRE gateways manual deployed. Working fine for ages. NAT resources failed to come online HyperV Network Virtualization Gateway role failed
FOCM below
Cluster resource xxxxxxxxxxxxxxxxxx of type ‘Nat’ in clustered role ‘HyperV Network Virtualization Gateway’ failed
The Windows NAT Driver service failed to start due to the following error:
The property set specified does not exist on the object
So, I decided I wanted to rebuild my gateways and reconnect them… but how?
Another fast publish! (I really should get back and clean these up…)
Recently upgraded one of our Hyper-V clusters and had to migrate workloads to a new Hyper-V cluster.
The naming conventions of our logical switches etc were different so when migrating a VM using Hyper-V manager we were prompted to choose the new logical switch. Handling this via PowerShell in isolation is simple enough using this script but I wanted to do a whole stack of VM’s at once.
Fast publish post - be nice..
In my Cloud OS demonstration environment recently I had a host in the cluster reporting “Needs Attention” status and refreshing the host cluster failed with “error 2912”.
The Hyper-V Host was in “Needs Attention” status and performing any functions from VMM were failing.
Job summary example below:
_Error (2912) An internal error has occurred trying to contact the server.domain.net server: : .
WinRM: URL: [http://server.