Nonadministrative users in the guest operating system can shrink virtual disks. Shrinking a virtual disk reclaims the disk's unused space. However, if you shrink a virtual disk repeatedly, the disk can become unavailable and cause a denial of service. To prevent this, disable the ability to shrink virtual disks.
Turn off the virtual machine.
- Verify that you have root or administrator privileges on the virtual machine.
- Browse to the virtual machine in the vSphere Client inventory.
- Right-click the virtual machine and click Edit Settings.
- Select VM Options.
- Click Advanced and click Edit Configuration.
- Add or edit the following parameters.
- Click OK.
When you disable this feature, you cannot shrink virtual machine disks when a datastore runs out of space.