Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Strange Update-ClusterVirtualMachineConfiguration error

$
0
0

Hi, 

When using some of the Hyper-V Powershell cluster commands, i sometimes see an error thrown along the lines of: 

Add-VMHardDiskDrive : A parameter is invalid. The Update-ClusterVirtualMachineConfiguration command could not be completed.

This is always when running a command that manipulates the VM config, something like 'Add-VMHardDiskDrive', for instance. 

If i dig deeper into the error it is telling me that:

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to
Stop: You do not have administrative privileges on the cluster. Contact your network administrator to request access
    Access is denied

None of this is true at all and i totally have the correct credentials, and can call Update-ClusterVirtualMachineConfiguration using the VM GUID from the same shell without error. 

Is this a bug?

This is obviously a clustered Hyper-V scenario. If i look at a VM through the cluster manager it's details see current, regardless of the error. I don't actually understand the rules on running Update-ClusterVirtualMachineConfiguration and would be grateful if someone can  explain them to me. For instance if i sit a do a bunch of raw WMI calls to change the ammount of RAM in a VM, then look at in the cluster manager, the RAM is correct. But perhaps the GUI or stop\start process of a VM is doing this? 

Cheers.


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>