How to increase disk space in VMware

Table of contents:

How to increase disk space in VMware
How to increase disk space in VMware
Anonim

VMware is a cloud-based operating system that allows you to run multiple virtual machines on a single physical computer. Thus, VMware works as an interface between your hardware and your different operating systems. If your virtual machine is running out of disk space, you will receive a notification every time you turn on the computer and you may even notice a decrease in the speed and efficiency of your computer. To increase available hard disk space, you can simply adjust the disk settings and allocate recently freed space to it. Before using any of these methods, be sure to delete all snapshots and shut down the virtual machine.

Steps

Method 1 of 2: Expand the disk through VMware settings

Increase Disk Space in VMware Step 1
Increase Disk Space in VMware Step 1

Step 1. Make sure you meet the prerequisites

In order to increase the disk size in VMware, the virtual machine must be powered off and not have any snapshots. To determine if there are snapshots, review the "Information" section under the "Summary" tab on the virtual machine.

Increase Disk Space in VMware Step 2
Increase Disk Space in VMware Step 2

Step 2. Go to the "Settings" screen

You must access from VMware.

Increase Disk Space in VMware Step 3
Increase Disk Space in VMware Step 3

Step 3. Select the hard drive you want to expand

You will find it under the "Hardware" column.

Increase Disk Space in VMware Step 4
Increase Disk Space in VMware Step 4

Step 4. Expand your disk

On the right side of the window, under "Disk Provisioning", set the new "Provisioned Size" for the disk. Instead, some versions have a drop-down menu that says "Utilities." There select "Expand". Generally the disk has between 30 and 40 GB of preset space. Now it would be nice to try expanding it to 45 or 55 GB.

Increase Disk Space in VMware Step 5
Increase Disk Space in VMware Step 5

Step 5. Click "OK"

The new maximum size you set for your virtual disk will now be applied.

Increase Disk Space in VMware Step 6
Increase Disk Space in VMware Step 6

Step 6. Scan your disk again

While you've just expanded the size of the disk, there are a few more steps you need to take within the operating system. To scan your disk again, go to "Disk Management" and select "Rescan Disks".

Increase Disk Space in VMware Step 7
Increase Disk Space in VMware Step 7

Step 7. Adjust the drive size of your operating system

Now that you have expanded and scanned your disk again, you will see an "Unallocated Space" that was just created. You must allocate this space to your operating system drive. To do so, right-click on the unallocated space and choose "Extend Volume." A small wizard will open to help you determine what to do with the newly created space. Assign it to your virtual disk.

Method 2 of 2: Expand the disk in Workstation, Player, ACE Manager, Server, or GSX

Increase Disk Space in VMware Step 8
Increase Disk Space in VMware Step 8

Step 1. Open the command interpreter

If you are using the VMware Workstation, Player, ACE Manager, Server, or GSX products, follow this method. You can open the shell by pressing the "Start" button and typing "cmd" without the quotes in the search bar. Select "Run".

Increase Disk Space in VMware Step 9
Increase Disk Space in VMware Step 9

Step 2. Go to the product installation folder

  1. For Workstation use the path:

    \ Program Files \ VMware \ VMware Workstation

    on Windows or

    : / usr / sbin

    on Linux.
  2. For Player and ACE Manager use the path:

    \ Program Files \ VMware \ VMware Player

    on Windows or

    / usr / sbin

    on Linux.
  3. For Server use the path:

    \ Program Files \ VMware \ VMware Server

    on Windows or

    / usr / bin

    on Linux.
  4. For GSX use the path:

    \ Program Files \ VMware \ VMware GSX Server

    on Windows or

    / usr / bin

    on Linux.

    Increase Disk Space in VMware Step 10
    Increase Disk Space in VMware Step 10

    Step 3. Write the following code:

    vmware-vdiskmanager –x 100Gb vm.vmdk and press ↵ Enter. With this command you will change the size of the current disk.

    Replace vm.vmdk with the full path of your virtual machine's disk and 100GB with whatever disk size you want

    Increase Disk Space in VMware Step 11
    Increase Disk Space in VMware Step 11

    Step 4. Extend the disk partition

    Although you have just extended the volume of your disk, it is now necessary to notify the operating system about this change. Go to "Computer Management" and select "Disk Management". Right-click on "Volume" and select "Extend Volume."

    Advice

    • You will not be able to complete this task if the virtual machine is powered on or if you did not delete all snapshots.
    • Instead of expanding your current disk, you may want to create a new disk and transfer the data to it.

    Warnings

    • Before expanding your disk, it would be good if you create a backup of your current data.
    • If you try to resize the disk in Lab Manager, you will lose all data. If you need more space in your virtual machine, in that case it is better to create a new virtual disk with the space you want and move all your data to that new disk.

Popular by topic