Hi, We are seeing some odd behavior during VMhost maintenance mode.
First would be a feature/functional change to the evacuation of images...
Move all powered off images first to reduce startup failure for Invalid host errors
Migrate Running machines after all powered off images have been moved
Is there a method to determine if a host is going into Maintenance mode...to avoid the start-vm failure?
Images on a host when it is going into maintenace mode cannot be started with Start-vm $vmname, but the UI does the correct thing by migrating the VM to another host and registering it on the new host and starting the image.
Start-VM : 1/17/2013 12:56:08 PM Start-VM The operation for the entity VirtualMachine-vm-18730 failed with the following message: "The operation is not allowed in the current state of the host."
At line:1 char:32
+ get-vm bvt-php-server |start-vm <<<<
+ CategoryInfo : NotSpecified: (:) [Start-VM], InvalidHostState
+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM