Memory of WHOLE-VM has the limit of 64G. How to solve it?

Set-VM MemoryMB has 64G hat.

Set-VM: Impossible to validate the argument on the parameter "MemoryMB. The 102400 argumentis above the maximum margin allowed 65532. Provide an argument that is less 65532 and then try the command again. On line: 1 char: 38
+ get - vm ILIO - AUTO-* | Set-VM - MemoryMB < < < < 102400
+ CategoryInfo: InvalidData: (:)) [game - VM], ParameterBindingValid)
ationException
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom
ation.ViCore.Cmdlets.Commands.SetVM

Is there anyway that I can put the memory of the virtual machine more than 64G via PowerCLI?

It's on vSphere PowerCLI 5 and 5

Yes, it's a question that we know and will be fixed in a future version, meanwhile, you can use this function to set the memory:

Function Change-Memory {
      Param (
            $VM,
            $MemoryMB
      )
      Process {
            $VMs = Get-VM $VM
            Foreach ($Machine in $VMs) {
                  $VMId = $Machine.Id

                  $VMSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
                  $VMSpec.memoryMB = $MemoryMB
                  $RawVM = Get-View -Id $VMId
                  $RawVM.ReconfigVM_Task($VMSpec)
            }
      }
}

Change-Memory -MemoryMB (152GB /1MB) -VM TestVM

Tags: VMware

Similar Questions

Maybe you are looking for