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.

Steps

Expanding the Disk within VMware's Settings

  1. 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.
  2. Go to "Settings." Do this within VMware.
  3. Select the Hard Disk you wish to expand. You will find this under the column entitled "Hardware."
  4. 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.[1]
  5. Click "OK." This will set the new maximum size for the virtual disk.
  6. 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."
  7. 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

  1. 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."
  2. Go to the product's installation directory.[2]
    1. For Workstation enter: \Program Files\VMware\VMware Workstation in Windows or :/usr/sbin for Linux.
    2. For Player and ACE Manager use: \Program Files\VMware\VMware Player for Windows or /usr/sbin for Linux.
    3. For Server use: \Program Files\VMware\VMware Server for Windows or /usr/bin for Linux.
    4. For GSX use: \Program Files\VMware\VMware GSX Server for Windows or /usr/bin for Linux.
  3. Enter the following code: vmware-vdiskmanager –x 100Gb vm.vmdk and press “Enter.” This will resize your current disk.[3]
    1. Replace "vm.vmdk" with the full path to the virtual machine’s virtual disk and 100GB with the disk size you want.
  4. 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."[4]

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.

Related Articles

  1. https://www.wikihow.com/Enlarge-Your-VMWare-Partition

Sources and Citations