Survey: Extend / Expand VMware virtual disk
Before you begin, create a backup copy of the virtual disk so that you can restore it in case of failures. Extending a virtual disk can be a complex operations for several reasons, e.g.,:
- The virtual disk that is full happens to contain the boot/primary partition for Windows
- There are snapshots
- There is insufficient disk space available on the physical drive to permit growth
- It is a multi step process and involves use of different tools and commands in a specific sequence. Creative individuals have devised workarounds to extend the primary partition for Windows by using Linux boot disks and disk partitioning tools such as GParted, and you have to get this right.
A blog post that expands on each of the above is here.
You’ll find several posts regarding this topic on Google. Essentially, they are all variations of the following posts
VMware Workstation or Fusion
How To Extend Virtual Machine Hard Disk (VMware) by Kalpesh Prajapati and Extend Boot Volume on Windows Server 2000/2003 by Dominic Rivera provide an illustrated tutorial that demonstrates the extension of Windows 2003 guest. You will notice that there are several steps and from reviewing the comments posted for the former, you’ll realize that these steps have not worked for its readers uniformly.
- Extend the non-system/data drive using WIndows tools. This approach preserves snapshots
- Extend the system drive using vmware-vdiskmanager tools. However, this approach causes loss of snapshots
Adding a new disk to a VMware virtual machine in Linux by Matt Topper provides an illustrated step-by-step how-to gude
- Using vmkfstools and GParted to extend a disk
- Using VMware Converter to shrink or extend a disk
- Using vmkfstools and another Windows virtual machine to extend a disk
- Using vmkfstools and System Rescue CD to extend a disk
- Using Knoppix Live CD with QtPartEd to shrink a disk
- Using Ghost or another 3rd party imaging product to shrink a disk