vCloud

 View Only
  • 1.  vCD and PowerCLI - get/set VM Mem reservation?

    Posted Apr 15, 2020 01:00 PM

    Hi,

    I've been trying to find out where I can read (and hopefully, set) the VM Mem reservation properties for a VM.

    It's possible to set via the GUI, but I've yet to find any good PowerCLI magic to do this with.

    Any suggestions?

    /Andreas



  • 2.  RE: vCD and PowerCLI - get/set VM Mem reservation?

    Posted Jan 07, 2025 12:58 PM

    I have been using this in a VM build script with $MEM being the gigabytes of RAM assigned to the VM.  I use this line to reserve the RAM

    Get-VM $VMName | Get-VMResourceConfiguration |  Set-VMResourceConfiguration -MemReservationGB $MEM -Confirm:$false

    It does not check the box in the GUI but it does reserve the RAM.




  • 3.  RE: vCD and PowerCLI - get/set VM Mem reservation?

    Posted Jan 09, 2025 04:38 AM

    Nothing you can do with PowerCLI, but you can use an API call to do it. 

    The call in question is this one https://vdc-download.vmware.com/vmwb-repository/dcr-public/db6ed1d8-9da5-4816-b32d-a76dca3ca526/fe12afd3-9b58-4877-a389-fb80f346c860/doc/doc/operations/POST-ReconfigureVm.html