Have you ever encountered disk space problems on your wonderful VMs (for Virtual Machines or "virtual machines") when you tried to install an ultra important program? Here are some simple steps that will help you troubleshoot your VMs disk space issues on the VMware workspace. This article assumes that the reader is familiar with virtualization and has practical experience with VMware products such as the Workstation.
Step 1. Make sure the following prerequisites are validated
Step 2. The virtual machine is powered off
Step 3. The virtual disk is not partitioned (on Windows clients) or mounted (on Linux clients)
You cannot expand a virtual disk if it is partitioned or mounted.
Step 4. The virtual machine has no snapshots (save points)
Step 5. The virtual machine is not a linked clone or the parent of a linked clone
Step 6. Determine if the virtual machine has snapshots
If this is a linked clone or if it is the parent of a linked clone, check the virtual machine information at the top of the Summary tab.
Step 7. Select VM> Settings
Step 8. In the Hardware tab, select Hard Disk to expand the virtual hard disk
Step 9. Select Utilities> Expand
Step 10. Set the new maximum size for the virtual disk
Step 11. Select Expand
Step 12. Click OK after the disk expansion process is complete
Step 13. Download the Gparted iso (iso is a disk image format)
Gparted is a free disk management tool. You can use any tool at your disposal.
Step 14. Mount the iso on the VM that was just enlarged and power on the VM
Make sure the VM is booting from the Gparted iso.
Gparted provides a nice graphical interface for doing disk partition operations. The added space will appear as unpartitioned space. Adjust the existing volume to take up additional space. Apply the changes and restart
Step 15. After restarting, the disk will appear to be of the newly set size
- Different method to increase the disk space of any VM
- Follow the default steps in the converter. Select the VM and specify a new size for the disk. It works as well as creating a clone of the existing VM with different configurations.
- Once the above command is executed, you need to repeat the same steps with Gparted to use the additional space.
- Another method is to increase the disk space of any VM by using VMware Converter. The VMware Converter is a free download and is used to convert physical machines to virtual machines (P2V) and also from any type of virtual machine to another type (MS VPC VM to a VMW VM workstation).
- From the command prompt on the client:
- C: \ Program files \ VMware \ VMware Workstation> vmware-vdiskmanager.exe -x
- for example: vmware-vdiskmanager.exe -x 36GB "C: \ mavm \ myDisk.vmdk"
- In command line
You can also increase the size of the disk using the following command line. But the same prerequisites apply
Increasing the disk space of a VM having snapshots and clone disks can be dangerous and result in corruption of VMs. So it is better to do a delete all snapshots operation to combine all the changes before trying to change the disk size. It is often advisable to make a full backup of the VM before making any changes.