DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk5 min

How to Configure Memory Ballooning and Swap in Proxmox

Proxmox ballooning adjusts VM memory within a configured range; node swap, guest swap, and LXC swap are separate settings. Learn how to choose and configure the right layer.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To configure Proxmox memory ballooning safely, first decide whether you mean a QEMU/KVM virtual machine, the Proxmox node, or an LXC container: each handles memory and swap differently. For a VM, ballooning lets Proxmox adjust its allocated RAM between a configured minimum and maximum as host capacity changes; swap is separate and must be configured on the node or inside the guest operating system. Ballooning can help share available RAM, but it does not create memory or remove the need to protect host headroom.

What ballooning and swap do in Proxmox

VM ballooning is a guest-assisted mechanism. A balloon driver in the guest reserves or releases guest memory pages in response to Proxmox’s allocation needs. With a lower minimum and higher maximum, Proxmox can provide more RAM when capacity is available and ask the VM to give some back when the host needs it. The Proxmox VE 6.4 Administration Guide describes guest processes swapping when memory is reclaimed and the OOM killer as a last resort; ballooning is therefore a way to redistribute memory, not a guarantee against memory pressure. Proxmox VE Administration Guide, release 6.4

As an Amazon Associate I earn from qualifying purchases.

Swap is slower backing storage used when a system cannot keep all active memory in RAM. It is configured separately at the layer that needs it: on the Proxmox node, inside the VM’s operating system, or as a container limit that can draw on host swap. A VM’s balloon setting does not configure its guest swap or the node’s swap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the right memory setting for a VM

Fixed memory

Use fixed memory when a workload needs a predictable RAM allocation or cannot tolerate memory changing dynamically. In the 6.4 guide, setting the VM’s memory and minimum memory to the same amount means Proxmox allocates the specified amount to that VM. The guide also notes that the balloon device can still report detailed guest memory usage even when the VM has fixed memory.

Ballooned memory range

Use a range when the VM can operate reliably at a lower minimum but may benefit from extra RAM when the host has spare capacity. Choose the minimum based on what the workload can safely sustain, and the maximum based on what it can use when capacity is available. Proxmox’s guide explains these roles but does not establish a universal minimum-to-maximum ratio; size the range for the workload rather than applying a generic formula.

Check that the guest supports and runs a balloon driver. The 6.4 guide says Linux distributions released after 2010 include the kernel driver, but that historical generalization is not a substitute for checking the specific distribution and kernel. The same guide says Windows guests need the balloon driver installed manually. Verify the current VirtIO package and installation procedure for your Windows version before changing VM memory policy.

Configure VM ballooning without guessing at release-specific fields

Proxmox’s documented VM behavior depends on settings whose exact GUI labels and full current configuration syntax can vary by release. The detailed source available here is the Proxmox VE 6.4 Administration Guide, so use documentation matching your installed version to confirm the field names and steps before applying changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open the VM’s hardware or memory configuration in the interface for your installed Proxmox VE release. Identify the VM’s memory amount and the minimum-memory or ballooning control, if provided.
  2. Choose fixed memory or a range. For fixed memory, set the minimum equal to the configured memory amount as described in the 6.4 guide. For dynamic allocation, set a lower minimum and higher maximum appropriate for the workload.
  3. Confirm guest-driver support. Check that the balloon driver is available and functioning in the guest before relying on dynamic memory adjustment or guest memory reporting.
  4. Apply and monitor the change. Watch host and guest memory use under the workload the VM is expected to run; revise the range if the workload cannot sustain the minimum or does not benefit from the additional allocation.

For a node-wide automatic-allocation target, a current Administration Guide search result identifies a default of 80% host memory use and gives pvenode config set --ballooning-target <percent> as the setting form. It shows pvenode config set --ballooning-target 90 as an example of setting 90%. This is a node-level target, not a per-VM cap or guaranteed RAM allocation. Confirm that the target and command behavior apply to your installed release before using it.

Disable ballooning only when you need to

If you want fixed VM memory, you do not necessarily need to remove the balloon device: Proxmox documents that the device can still provide guest memory-usage information with fixed allocation. The 6.4 Administration Guide says to disable the device for debugging by unchecking the Ballooning Device option in the GUI or setting balloon: 0 in the VM configuration. Confirm the exact interface label for your Proxmox VE release. Disabling the device is different from choosing fixed memory while retaining its reporting capability.

Configure swap at the correct layer

Proxmox node swap

Node swap is part of the Proxmox host’s Linux configuration. Its setup depends on the node’s operating system, filesystem, and deployment. The sources cited here do not provide a current, distribution-specific swapfile procedure, so do not apply a generic command without verifying it for the host. Node swap may provide a slower fallback under pressure, but it should not be treated as a substitute for adequate physical RAM or sensible VM allocation.

Swap inside a VM

Guest swap is configured in the guest operating system, not through the Proxmox node’s swap setting. Its configuration depends on the guest OS and workload. Decide whether guest swap is appropriate for that system, then follow the operating-system documentation for the relevant release; there is no universal swap size established by the Proxmox sources cited here.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

LXC container memory and swap

An LXC container is not a QEMU/KVM VM, so VM ballooning instructions do not apply. In the Proxmox VE 9 beta pct(1) manual, the container’s swap value is a cgroup limit for host swap allowance; container swap uses host swap space. Treat this setting separately from both VM ballooning and swap configured inside a VM. Proxmox VE 9 beta pct(1) manual

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan for host memory pressure

Ballooning can return memory from guests to the host, but several VMs may need RAM at the same time. Keep host capacity and aggregate guest demand in view, and do not assume a node target or balloon minimum guarantees that every workload will remain responsive. The 6.4 Administration Guide offers 1 GB left available to the host as a general rule of thumb when allocating VM RAM; it is not a modern workload-sizing guarantee. Leave headroom appropriate to the actual host services and guest load. Proxmox VE Administration Guide, release 6.4

  • Do not confuse the node’s 80% automatic-allocation target with an individual VM’s memory cap.
  • Do not treat a container’s swap parameter as a VM swap setting.
  • Do not assume ballooning prevents the host from swapping or invoking OOM handling under severe pressure.
  • Do not disable the balloon device just because you want fixed VM memory; it may still provide guest memory reporting.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.