Share via


Error when modifying VM Memory - "Invalid minimum memory amount"

Question

Friday, August 8, 2014 1:11 PM

Good day,

I am trying to modify a virtual machine's static memory setting using VMM 2012 R2 with UR 2.  The VM is running on a Hyper-V 2012 R2 host cluster.  Whether I use the VMM GUI or attempt to issue the command via VMM Command Shell, I get the same result:

PS C:\Windows\system32> $VM= Get-SCVirtualMachine -name "SomeVM"
PS C:\Windows\system32> set-scvirtualmachine -VM $VM -MemoryMB 4096
set-scvirtualmachine : VMM cannot complete the host operation on the hyperv.domain.com server because of the error: 'SomeVM' failed to modify device 'Memory'. (Virtual machine ID22AD6F9F-E5B6-4B8D-9AB6-6A48A9521297)Invalid minimum memory amount assigned for 'SomeVM'. The minimum amount of memory you can assign to a virtual machine is '32' MB. (Virtual machine ID22AD6F9F-E5B6-4B8D-9AB6-6A48A9521297) (Error ID: 12700, Detailed Error:Unknown error (0x8005))

Resolve the host issue and then try the operation again.

To restart the job, run the following command:
PS> Restart-Job -Job (Get-VMMServer localhost | Get-Job | where { $_.ID -eq"{8301e122-b69e-4ac0-82d7-82c473d99e3a}"})
At line:1 char:1
+ set-scvirtualmachine -VM $VM -MemoryMB 4096
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
+ CategoryInfo          : ReadError: (:) [Set-SCVirtualMachine], CarmineEx   ception    
+ FullyQualifiedErrorId : 12700,Microsoft.SystemCenter.VirtualMachineManag   er.Cmdlets.SetVMCmdlet

The error indicates that I am attempting to set the VM memory to something less than 32 MB, but as shown above I am actually trying to set it to 4096 MB.  I also get this error when I attempt to modify the value using Hyper-V Manager (or in this case the Failover Cluster Manager).  Note that I am not attempting to configure dynamic memory on this VM.

One more note about this VM - it was migrated from a Hyper-V 2012 host cluster performed by exporting the VM from the old host, and importing it to the new one.

Not sure if anyone else has experienced this error or if there is a work around.

All replies (2)

Friday, August 8, 2014 4:37 PM âś…Answered | 1 vote

Really what the error is not telling you, is that you need to set the value for minimum memory in addition to the value you are setting.

if dynamic memory is on, you need to set them all:  http://technet.microsoft.com/en-us/library/hh801341.aspx

-MemoryMB<Int32>

Specifies, in megabytes (MB), the amount of random access memory (RAM) on the host that is allocated to a virtual machine. The default value is 512 MB. For a virtual machine on which dynamic memory is enabled (on a host running Windows Server 2008 R2 SP1 or later), use MemoryMB to specify the startup memory value.

I have run into this issue what I had VMs that I migrated to Hyper-V 2012 R2, because the minimum was actually lower.  Or it was empty if the VM had fixed memory.  And now it can no longer be an empty setting.

Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.


Friday, August 8, 2014 6:43 PM | 1 vote

This was it.  I toggled the VM between Dynamic Memory and applied, then came back and changed it to Static with the new amount specified.  Could have accomplished the same through PS.  Thanks for your assistance.