Hello all!
First post here :)
I'm trying to bare-metal provision Hyper-V hosts in VMM, mostly using this as a template:
https://utbrudd.bouvet.no/2014/09/30/virtual-machine-manager-bare-metal-host-deployment-woes/
Problem is, some machines fail with the error:
VMM could not run the specified query select * from Msvm_VirtualEthernetSwitch where Name = "3AF862FC-8F08-4F94-B27D-5869696927E9" on the server NewHVHost01.example.com Failed with error HRESULT 0x803381fa The WS-Management service cannot process the operation. The operation is being attempted on a client session that is unusable. This may be related to a recent restart of the WS-Management service. Please create a new client session and retry the operation if re-executing the operation does not have undesired behavior.
This occurs almost when they are finishing (around 96%) the New-SCVMHost job. I've tried with the same physical box, and the same script multiple times, and the result is not always the same. There are sometimes where the machine loses completely connectivity and it's not even pingable. There were some occasions where the server got the "Logical Switch" for Management, the machine was pingable, but it didn't create the whole network stack as specified in the config.
Also, there were other machines that completed the deployment (with warnings because I have the SMBIOS GUID issue) but the installation finished and the machine was perfect, with all the networks for iSCSI, Heartbeat, Management, VMs, etc.
I've tried already this: https://deploymentbunny.com/2014/11/05/nice-to-know-improve-bare-metal-deployment-success-rate-in-system-center-virtual-machine-manager/
any help on this matter would be greatly appreciated.
Dani