One day I was working on our fabric and thought it would be nice to be able see which Logical Switch each VM was connected to. So I started to extend my good old datastores script and before I knew it, it had morphed out of control to include Logical Switch, Logical Networks, VM Networks and NIC count.
In most enterprise environments this probably wouldn’t really add much value, but in the world of multi-tenancy with many shared or customer dedicated clusters an networks, having this kind of information easily available has it’s advantages.
From time to time I have the requirement to deploy/update a basic app or run a script on my Hyper-V hosts.
This is relatively simple using remote PS session or if you have SCCM managing your fleet. But sometimes you need to just push something out fast and luckily SCVMM can assist.
My use case is to run an update for the Microsoft Site Recovery Services Agent on my hosts. I would do this periodically.
Error: “VMM cannot use [Logical Switch] to create a virtual switch a there are no uplink port profile sets present on this logical switch”
Environment: SCVMM 1801.
Symptom, right click on a Hyper-V host and after a couple of seconds the below error. After clicking OK, VMM crashes.
The fix that worked for me.
First check the host group of the problematic hosts.
In this deployment, they live in host group “Tenant HCI”
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.
Had a quirky one recently where by a client was rebuilding a NVGRE gateway (as per this post) failed with the below warning.
Warning (26926)
Unable to set up Remote Access server to support multi-tenancy mode. (Remote Access server and the host are not configured for multi-tenancy.
Fix the issue in Remote Access server and retry the operation.).
Recommended Action
Fix the issue in Remote Access server and retry the operation.
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 (this is becoming a common phrase) so be kind…
When refreshing host cluster in VMM, for some reason we started to see the below error in VMM:
Error (25122) The specified address ((AllocatedIPAddressData#e449) { id = 6ea8ddba-b8a7-43f6-856e-0a4d35076681, LastUpdatedTimestamp = 3/24/2015 5:55:17 AM }) is already allocated by the pool (IPPool-LNet-Mgmt). This address should be assigned to only a single entity. Recommended Action Resolve to which entity this address is allocated.