How to Increase Disk Space in VMware

VMware is a cloud based operating system that allows you to run multiple virtual machines from a single physical computer. Thus, VMware acts as the interface between your hardware and your various operating systems. If you are running out of disk space on your virtual machine, you will receive a notification every time you turn on your computer and you may even notice a decrease in your computer's speed and efficiency. To increase the size of your disk space, you can simply adjust the settings of your disk and allocate newly created space to that disk. Before using one of these methods, make sure that all snapshots have been removed and that the virtual machine is powered off.

Expanding the Disk within VMware’s Settings

Make sure some prerequisites are met.

In order to increase the disk size in VMware, you must make sure that your virtual machine is powered off and that it has no snapshots. To determine whether it has snapshots, check “Information” under the “Summary” tab for the virtual machine.

Go to “Settings.”

Do this within VMware.

Select the Hard Disk you wish to expand.

You will find this under the column entitled “Hardware.”

Expand your disk.

On the right-hand side of the window under “Disk Provisioning,” set the new “Provisioned Size” of your disk. Some layouts will instead have a drop down menu entitled “Utilities.” From here select “Expand.” Generally, the disk will be anywhere from 30 to 40GB at this stage, so try resizing it to 45 to 55GB at first.

Click “OK.”

This will set the new maximum size for the virtual disk.

Rescan your disk.

While you have expanded the size of your disk, there are a few more steps you must take within the operating system. To rescan your disk, go to “Disk Management” and select “Rescan Disks.”

Resize the OS drive.

Now that you have expanded and rescanned your disk, you will see the “Unallocated Space” that we have just created. We must now assign this space to your operating system’s drive. To do this, right-click on the unallocated space and select “Expand Volume.” This will prompt a simple wizard that will allow you to determine what to do with this newly created space. Assign it to your virtual disk.

Expanding your Disk in Workstation, Player, ACE Manager, Server, or GSX

Open the command Prompt.

If you are using the VMware Workstation, Player, ACE Manager, Server, or GSX products, then follow this method. You can do this by going to “Start” and enter “cmd” without the quotation marks into the search bar. Select “Run.”

Go to the product’s installation directory.

For Workstation enter: Program FilesVMwareVMware Workstation in Windows or :/usr/sbin for Linux.For Player and ACE Manager use: Program FilesVMwareVMware Player for Windows or /usr/sbin for Linux.For Server use: Program FilesVMwareVMware Server for Windows or /usr/bin for Linux.For GSX use: Program FilesVMwareVMware GSX Server for Windows or /usr/bin for Linux.

Enter the following code:

vmware-vdiskmanager –x 100Gb vm.vmdk and press “Enter.” This will resize your current disk.Replace “vm.vmdk” with the full path to the virtual machine’s virtual disk and 100GB with the disk size you want.

Extend the disk partition.

While you have extended the volume of your disk, you need to notify your operating system of the change. Go to “Computer Management” and select “Disk Management.” Right-click on “Volume” and then select “Extend Volume.”

Tips

  • You will not be able to complete this task if the virtual machine is powered on or if you have not removed all snapshots.
  • It may be that you will want to create a new disk rather than expand your current disk and transfer your data to it.

Warnings

  • Before expanding your disk, you should backup your current data.
  • If you attempt to resize your disk in Lab Manager, you will lose all of your data. If you need more space on your virtual machine, you should instead create a new virtual disk with the desired space and move your data to the new disk.

Leave a Comment