free counter
Science And Nature

How exactly to Enlarge a Virtual Machines Disk in VirtualBox or VMware

A hard disk platter and arm header.
Tenaht/Shutterstock.com

Once you develop a virtual hard disk drive in VirtualBox or VMware, you specify a maximum disk size. If you would like more space on your own virtual machines hard disk drive later, youll need to enlarge the virtual hard disk drive and partition.

Remember that you might want to back up your virtual hard disk drive file before performing these operations theres always the opportunity something can fail, so its always good to possess backups. However, the procedure worked fine for all of us.

Update: Utilize the Virtual Media Manager in VirtualBox

VirtualBox 6 added a graphical option for enlarging and resizing virtual disks. To gain access to it, click File > Virtual Media Manager in the primary VirtualBox window.

Decide on a virtual hard disk drive in the list and utilize the Size slider in the bottom of the window to improve its size. Click Apply when youre done.

You’ll still need to enlarge the partition on the disk to make use of the additional space. The partition remains exactly the same size whilst the disk size increases. Start to see the instructions below to find out more on enlarging the partition.

Enlarge a Virtual Disk in VirtualBox with the Command Line

To enlarge a virtual disk in VirtualBox, youll have to utilize the VBoxManage command from the Command Prompt window. First, turn off the virtual machine ensure its state is defined to Powered Off, not Saved.

Note: Before continuing, it’s also advisable to delete any snapshotslinked to the virtual machine if you are using the snapshots feature in VirtualBox. This can ensure youre modifying the right virtual disk file and that everything will continue to work properly afterward.

The Virtual Machines currently installed on the example PC.

Second, open a Command Prompt window from your own Start Menu and change the directory to VirtualBoxs program files folder. Run the command:

cd "C:Program FilesOracleVirtualBox"

Command Prompt with

The next command will are powered by the VirtualBox virtual disk located at C:UsersEquinoxVirtualBox VMsWindows 10Windows 10.vdi. It’ll resize the virtual disk to 81920 MB (80 GB).

VBoxManage modifyhd "C:UsersChrisVirtualBox VMsWindows 10Windows 7.vdi" --resize 81920

Note: Use two dashes before resize in the command above.

Replace the file path in the command above with the positioning of the VirtualBox disk you wish to resize and the quantity with the size you wish to enlarge the image to (in MB).

Note: In VirtualBox 6.0+, released in 2019, you may want to utilize the following command instead:

VBoxManage modifymedium disk "C:UsersEquinoxVirtualBox VMsWindows 10Windows 10.vdi" --resize 81920

Command Prompt command resizing the virtual drive.

Remember that this technique doesnt enlarge the partition on the virtual hard disk drive, which means you wont get access to the brand new space yet start to see the Enlarge the Virtual Machines Partition section below to learn more.

Enlarge a Virtual Disk in VMware

To enlarge a virtual machines hard disk drive in VMware, power off the virtual machine, right-click it, and choose Virtual Machine Settings.

Choose the virtual hard disk drive device in the list, click on the Utilities button, and click Expand to expand the hard disk drive.

Enter a more substantial maximum disk size and click on the Expand button. VMware increase how big is your virtual disk, although its partitions will stay exactly the same size see below for info on enlarging the partition.

Enlarge the Virtual Machines Partition

At this point you have a more substantial virtual hard disk drive. However, the os’s partition on your own virtual hard disk drive may be the same size, and that means you wont have the ability to access some of this space yet.

The Disk Management utility will show you the new space that is available on the virtual drive.

Youll now have to extend the guest os’s partition just like you were enlarging a partition on a genuine hard disk drive in a physical computer. You cant enlarge the partition as the guest operating-system is running, in the same way you cant enlarge your C: partition while Windows is running on your pc.

You may use a GParted live CD to resize your virtual machines partition simply boot the GParted ISO image in your virtual machine and youll be studied to the GParted partition editor in a live Linux environment. GParted can enlarge the partition on the virtual hard disk drive.

First, download the GParted live CDs ISO file from here.

Load the ISO file into your virtual machine by entering the virtual machines settings window, selecting your virtual CD drive, and browsing to the ISO file on your pc.

Boot (or restart) your virtual machine after inserting the ISO image and the virtual machine will boot from the ISO image. GParteds live CD will ask you several questions while booting it is possible to press Enter to skip them for the default options.

Once GParted is booted, have a look at the way the virtual drive is partitioned.

GParted will show you how the virtual drive is partitioned.

Warning: Not absolutely all operating systems can lead to drives which are partitioned in this manner, however there exists a good chance youll see something similar. Be sure you focus on the prevailing partitions when youre achieving this carelessly resizing, reformatting, or deleting a partition can lead to an inoperable virtual machine.

The arrangement of the partitions is really important. You can find three partitions on the drive, plus 30 gigabytes of unallocated space.

The initial partition, sda1, may be the boot sector or the EFI System Partition. The next partition, sda2, may be the primary partition. It’s the space assigned to the Windows operating-system this is the partition you want to expand. It really is noted with the red arrow and red box in the picture above.

Tip: In most cases, it is possible to identify most of your partition by the size itll be near to the total size of the initial virtual drive you created.

Be sure to note that there exists a third partition, sda3, directly between your partition you need to resize and the unallocated space we created previously. The positioning of sda3 implies that we can not just expand sda2 in to the unallocated space. The 3rd partition generally is in the manner, and were likely to need to move it first.

Right-click on sda3, then click Resize/Move.

Note: It could not be sda3 for you personally. Youre just searching for whatever partition is between your primary partition and unallocated space.

A fresh window can look that enables you to move the partition.

Not ehow much free space is following sda3.

Observe what the screen says. You can find 30,722 megabytes of space following a msftres partition. If you would like sda3 to be taken care of, we have to move sda3 completely to another side of the available space. Go through the Free Space Preceding box, enter 30722 in to the field, then click Resize/Move. It will appear to be this:

Now sda3 is queued to be moved to the finish of the unallocated space, and we are able to also set sda2 to be resized. Right-click sda2, then click Resize/Move.

Enter the quantity after Maximum Size in to the New Size field, or drag the right-hand side of the slider completely to the proper.

Enter the value of

If youve done it correctly, you need to the worthiness for Maximum Size in the brand new Size box now. Click Resize/Move to finalize the change.

Click on the green check mark button close to the top to use all the changes youve made. Applying the changes may take a couple of minutes, based on just how many move or resize operations you have queued, and how fast your personal computer is. Dont be alarmed when you have to wait some time.

Following the resize operation completes, restart your virtual machine and take away the GParted ISO file. Windows will check the file system in your virtual machine to make sure its working properly dont interrupt this check.

Do not skip any of the repair or chkdsk procedures Windows runs after resizing your partitions.

The virtual machines partition will now use up the complete virtual hard disk drive, so youll get access to the excess space.


Remember that you can find easier methods for getting more storage you can include another virtual hard disk drive to your virtual machine from its settings window. It is possible to access another devices contents on another partition for instance, if youre utilizing a Windows virtual machine, another virtual hard disk drive will undoubtedly be accessible at another drive letter within your virtual machine.

Read More

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker