Warning: Disabling the balloon driver in a virtual machine results in performance issues with the ESXi/ESX host. For more information, see the
vSphere Resource Management Guide.
Disabling ballooning via the vSphere ClientNote: This is the same process of disabling balloon driver for Linux machines.
To set the maximum balloon size to zero:
- Using the vSphere Client, connect to the vCenter Server or the ESXi/ESX host where the virtual machine resides.
- Log into the ESXi/ESX host as a user with administrative rights.
- Shut down the virtual machine.
- Right-click the virtual machine listed on the Inventory panel and click Edit Settings.
- Click the Options tab, then under Advanced, click General.
- Click Configuration Parameters.
- Click Add row and add the parameter
sched.mem.maxmemctl
in the text box. - Click on the row next to it and add
0
in the text box. - Click OK to save changes.
To re-enable the balloon driver in a virtual machine:
- Using the vSphere Client, connect to the vCenter Server or the ESXi/ESX host where the virtual machine resides.
- Shut down the virtual machine if it is powered on.
- SSH to the ESXi/ESX host. For more information, see Connecting to an ESX host using an SSH client (1019852).
- Change directory to the datastore where the virtual machine's configuration file resides.
- Back up the virtual machine's configuration file.
- Edit the virtual machine's configuration file (
virtual_machine_name.vmx
) and remove this entry:
sched.mem.maxmemctl = "0"
- Save and close the file.
- Power on the virtual machine.
Note: You cannot remove the entry via the
Configuration Parameters UI once it has been added. You must edit the configuration file (
.vmx
) for the virtual machine to remove the entry.
Disabling ballooning via the Windows registryTo disable ballooning on the virtual machine:
Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article
136393.
- Log into the guest OS.
- Click Start > Run, type
regedit
, and press Enter. The Registry Editor window opens. - Navigate to:
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VMMEMCTL
- Change the Start key from
2
to 4
. - Save the setting and restart the guest OS.
To re-enable the balloon driver in a virtual machine:
- Log into the guest OS.
- Click Start > Run, type
regedit
, and press Enter. The Registry Editor window opens. - Navigate to:
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VMMEMCTL
- Change the Start key from 4 to 2.
- Save the setting and restart the guest OS.
Disabling ballooning via VMware Tools uninstallation/reinstallation
- Uninstall VMware Tools from the guest OS.
- Reinstall VMware Tools using the Custom Settings option, and deselect the Memory Control Drivers.
Additional Information
For additional information, see
Troubleshooting ESX/ESXi virtual machine performance issues (2001003).
Note: The links in this article were correct as of October 1, 2013. If you find a link is broken, provide feedback and a VMware employee will update the link.For translated versions of this article, see: