Expand VMware Hard Disk via Command Line in Windows
Share this:

About increasing VMware hard disk size

One day, when you use up all the space on virtual disk, you may find ways to solve the problem. There are always two solutions for you: one is to add a second disk on your virtual machine, the other is to expand the disk. To some extent, it is easy to add another virtual hard drive. However, many people prefer to resize VMware disk in order to avoid reinstalling the system or changing the data location.

The VMware supports a command line tool "vdiskmanager.exe". Only with it, the VMware disk can be expanded yet not its virtual partition. Absolutely, resizing VMware partition is also a big problem for you. In order to expand the volume, you must use the third party partition software to achieve the goal.

Preparations for expanding VMware disk in Windows

  • Make sure your virtual machine is powered off completely and delete the snapshots on your virtual machine.

  • Find out the location of "VMware-vdiskmanager.exe". Generally speaking, it locates in the VMware installation directory, like "C:/Program Files/VMware/VMware Server/vmware vdiskmanager.exe".

  • Locate your entire path to Windows virtual machine disk (vmdk), like "D:/Virtual Machines/Sever 2003Ent-x64/Windows Sever 2003 Enterprise x64 Edition.vmdk".

Note: Please ensure all the preparations above have done. Meanwhile, please backup important files on VMware workstation ahead of time just in case data lost under inappropriate operations. 

Expand VMware disk via Command Line in Windows

Here are the steps for you to adjust the size of virtual disk:

Step 1: Click "Start" menu and select "Run". Type in "cmd" and choose "Enter" to start the "Command Prompt".

Step 2: In the pop up window, type the command of "C:/Program Files/VMware/VMware Server/vmware-vdiskmanager.exe" -x 31GB "D:/Virtual Machines/Server2003Ent-x64/Windows Server 2003 Enterprise x64 Edition.vmdk".

Resize Virtual Disk


Tip: This command tool can only resize VMware hard disk not virtual partition. After finishing the operations above, the third party magic tool - AOMEI Partition Assistant Server Edition, can help you increase VMware boot disk size with a few clicks.

Expand VMware disk partition with AOMEI Partition Assistant

It has a simple and easy-to-operate interface, and even a computer newbie can handle it well. Before you do the procedures below, please download AOMEI Partition Assistant Server Edition. Here are the steps for you.

Step 1: Open it and right click the drive you want to change and select "Resize".

Step 2: In the pop-up window, drag the sliderbar leftwards or rightwards to change the size.

Step 3: Please click "Apply" on the toolbar to commit the task. You will see a window. Please choose "Proceed" and it will remind you to restart the system.

Tip: Apart from resizing VMware disk partition, AOMEI Partition Assistant provides many other features, like create/delete/format/copy partition, extend NTFS system partition without reboot, and partition hard disk on Gateway laptop and so on. All of these operations will be completed without damaging data. Therefore, why not free download it to experience it now?

Is this information helpful?        

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!