Disabling the balloon driver
search cancel

Disabling the balloon driver

book

Article ID: 341093

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides the steps to disable the balloon driver in a virtual machine.

Environment

VMware ESXi 4.0.x Embedded
VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0
VMware ESXi 4.1.x Embedded
VMware ESXi 4.1.x Installable
VMware ESX Server 3.5.x
VMware ESXi 3.5.x Installable
VMware ESX 4.0.x
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 5.5
VMware ESXi 3.5.x Embedded
VMware ESX 4.1.x

Resolution

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 Client

Note: This is the same process of disabling balloon driver for Linux machines.

To set the maximum balloon size to zero:
  1. Using the vSphere Client, connect to the vCenter Server or the ESXi/ESX host where the virtual machine resides.
  2. Log into the ESXi/ESX host as a user with administrative rights.
  3. Shut down the virtual machine.
  4. Right-click the virtual machine listed on the Inventory panel and click Edit Settings.
  5. Click the Options tab, then under Advanced, click General.
  6. Click Configuration Parameters.
  7. Click Add row and add the parameter sched.mem.maxmemctl in the text box.
  8. Click on the row next to it and add 0 in the text box.
  9. Click OK to save changes.
To re-enable the balloon driver in a virtual machine:
  1. Using the vSphere Client, connect to the vCenter Server or the ESXi/ESX host where the virtual machine resides.
  2. Shut down the virtual machine if it is powered on.
  3. SSH to the ESXi/ESX host. For more information, see Connecting to an ESX host using an SSH client (1019852).
  4. Change directory to the datastore where the virtual machine's configuration file resides.
  5. Back up the virtual machine's configuration file.
  6. Edit the virtual machine's configuration file (virtual_machine_name.vmx) and remove this entry:

    sched.mem.maxmemctl = "0"
     
  7. Save and close the file.
  8. 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 registry

To 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.
  1. Log into the guest OS.
  2. Click Start > Run, type regedit, and press Enter. The Registry Editor window opens.
  3. Navigate to:

    \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VMMEMCTL
     
  4. Change the Start key from 2 to 4.
  5. Save the setting and restart the guest OS.
To re-enable the balloon driver in a virtual machine:
  1. Log into the guest OS.
  2. Click Start > Run, type regedit, and press Enter. The Registry Editor window opens.
  3. Navigate to:

    \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VMMEMCTL
     
  4. Change the Start key from 4 to 2.
  5. Save the setting and restart the guest OS.

Disabling ballooning via VMware Tools uninstallation/reinstallation
  1. Uninstall VMware Tools from the guest OS.
  2. 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: