Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Ballooning · Memory Virtualization

Direct answer

Ballooning lets the hypervisor reclaim memory through a driver inside the guest (vmmemctl, virtio-balloon, Hyper-V Dynamic Memory) that inflates and hands unused guest pages back to the host under memory pressure.

When to use this

Use this when ballooning appears on VMs and you need to know whether the host is short of memory.

First 30 seconds

1. Balloon driver reclaims memory from guests.

2. Active ballooning = host pressure.

3. Guest may swap.

4. Set min memory.

5. Fix root cause: add host RAM or move VMs.

Operational verification

host pressure → balloon → guest frees memory

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common problems
  • Balloon driver not installed (VMware Tools, virtio-balloon, Hyper-V integration services).
  • Guests with memory reservations or large pages that cannot balloon.
  • Applications such as Java or databases reacting badly when the balloon takes memory.
  • Ballooning disabled on VMs that should be able to give memory back.
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse this when ballooning appears on VMs and you need to know whether the host is short of memory.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checking ballooning Verify boundary
PlatformWhere
ESXiesxtop memory view MCTLSZ per VM; vCenter "Ballooned memory"
KVM/Proxmoxvirsh dommemstat <vm> (actual vs available), Proxmox "Ballooning" setting
Hyper-VDynamic Memory "Memory Demand" vs "Assigned"

Ballooning without guest paging is harmless; ballooning that pushes the guest into paging hurts performance.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Balloon in a VM = host pressure.
  • Balloon driver needs guest tools.
  • Limits can force ballooning on idle hosts.
Key checks
  • virsh dommemstat <vm> — actual vs available
  • esxtop (MCTLSZ) — balloon size
  • lsmod | grep balloon — guest driver
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Ballooning reclaims memory by asking a driver inside the guest to allocate ("inflate") memory, which the guest takes from its least valuable pages — often cache — and the hypervisor then frees the backing host pages.

esxtop (m): MCTLSZ = balloon size per VM
virsh dommemstat vm1               # actual, rss, balloon stats
qm monitor 120 → info balloon

Small, temporary ballooning is fine. Large or persistent ballooning means the host is overcommitted — guests start paging and performance drops. Never disable the balloon driver as a "fix"; it shifts pressure to host swapping, which is worse.

ReferenceConfiguration & state1 section · depth on demand

Configuration

# Proxmox
qm set 101 --memory 8192 --balloon 4096     # min 4 GB, max 8 GB
# libvirt
<memballoon model='virtio'/>
# Hyper-V
Set-VMMemory vm01 -DynamicMemoryEnabled $true -MinimumBytes 2GB -StartupBytes 4GB -MaximumBytes 8GB

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

Authoritative/upstream documentation reviewed for bounded claims in Memory Virtualization → Ballooning. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Confirmation

Confirm action

Continue?