Increasing The size of a Virtual Disk on VMWare Server



To increase the size of a virtual disk (.vmdk) use the console command vmkfstools and the Gparted LiveCD. Gparted is an open source Partition Magic Alternative. You can download it here:

GParted LiveCD Download

  1. Download the Gparted LiveCD ISO. You will need to save it to a location you can use it to boot the VM.
  2. Shutdown the virtual machine you want to resize
  3. Log into the VMWare Server via Putty, or however you can get to the console.
  4. Use vmkfstools to increase the size of the .vmdk For example if you had a VM named “MyOS” in a folder called “myVMFS” and you wanted to increase it from 20GB to 24GB you would type (it is case sensitive):vmkfstools -X 24g /path/to/vmhome/myVMFS/myOS.vmdk


vmkfstools -X 24576m /path/to/vmhome/myVMFS/myOS.vmdk # Boot the VM to the Gparted ISO

  1. Once the Gparted partition editor loads, click your disk in the partition list
  2. Click the Resize/Move button
  3. Drag the arrow to extend the size of the partition. Be sure to work out the free space before and/or after the partition by sliding the whole partition either left or right.
  4. Next click the Apply button to start the resizing process.
  5. After it completes click the Close button
  6. Reboot the VM without the Gparted ISO to the VM’s OS.
  7. You will have to wait for a chkdsk on the reboot. Then Windows will reboot again.
  8. Check your new disk size with df -h


Related Articles

Installing ESXi Patches for Spectre and Meltdown Vulnerabilities

Read More

Adding a Physical Vol to a Logical Vol – VM

Read More