<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtualMachineConfiguration/memoryBalloonDevices",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtualMachineConfiguration(py)memoryBalloonDevices"
  },
  "title" : "memoryBalloonDevices"
}
-->

# memoryBalloonDevices

An array that you configure with a memory balloon device, used to update the memory in the VM.

```
var memoryBalloonDevices: [VZMemoryBalloonDeviceConfiguration] { get set }
```

## Discussion

Use this property to request a memory balloon device from the VM. The VM initially reserves the amount of memory in the [`memorySize`](/documentation/Virtualization/VZVirtualMachineConfiguration/memorySize) property for the guest operating system. A balloon memory device asks the guest system to return memory pages that it isn’t using to the VM. You might use the device to reclaim memory when the amount of free memory on the host system runs low.

The default value of this property is an empty array, which doesn’t result in the creation of a balloon memory device. To create a balloon memory device, add a single [`VZVirtioTraditionalMemoryBalloonDeviceConfiguration`](/documentation/Virtualization/VZVirtioTraditionalMemoryBalloonDeviceConfiguration) object to the array. In response, the VM creates a [`VZVirtioTraditionalMemoryBalloonDevice`](/documentation/Virtualization/VZVirtioTraditionalMemoryBalloonDevice) object and adds it to its [`memoryBalloonDevices`](/documentation/Virtualization/VZVirtualMachine/memoryBalloonDevices) property. Use that object to change the amount of memory reserved for the guest system.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)