I can't seem to get the syntax right on two PowerShell commands. I have to be missing somethings simple, as I've tried everything I can think of.
On the Remove-VMMigrationNetwork, I constantly get the following error returned.
Remove-VMMigrationNetwork : Failed to modify service settings. Cluster migration network tags cannot be modified. Please ensure you are not trying to add or remove a cluster migration network for '192.168.16.31/32' : One or more arguments are invalid (0x80070057). A parameter that is not valid was passed to the operation. At line:1 char:1+ Remove-VMMigrationNetwork 192.168.16.*+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Remove-VMMigrationNetwork] , VirtualizationOperationFailedException+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.RemoveVMMigrationNetworkCommand
I have tried entering the IP address to remove in the exact same format shown in the help file, plus about anything else I can think of. I either get a message similar to above, or I get an error that says I have a syntax error.
On the Set-VM command, I am trying to use the -MemoryStartupBytes parameter. I get the following error:
set-vm : 'RemoveMe' failed to modify device 'Memory'. (Virtual machine ID F91F22AD-B220-46CE-9F3F-944146D5804F) Invalid startup memory amount assigned for 'RemoveMe'. The minimum amount of memory you can assign to a virtual machine is '8' MB. (Virtual machine ID F91F22AD-B220-46CE-9F3F-944146D5804F) A parameter that is not valid was passed to the operation. At line:1 char:7+ $vm | set-vm -MemoryStartupBytes 8192+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Set-VM], VirtualizationOpe rationFailedException+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.SetVM
As you can see, I am using an integer value that is greater that the 8 the error message highlights. I am able to set a variety of other parameters on the VM; I just can't get this one to work.
Any direction is greatly appreciated.
tim