How to resize a VM on a Windows Host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
VM2VM
Posts: 19
Joined: 7. Sep 2014, 01:26

How to resize a VM on a Windows Host

Post by VM2VM »

Since I'm not able to post or respond to the "How to resize a Virtual Drive by @Perryg and @mpack, I'll just post this, for everyones convenienece.

So let's say you have Windows guest VM running on Windows host. You need to resize it, but don't have a clue and already have a bunch of snapshots.
This is how you do it.

Code: Select all

1. Close your VM
2. Make a clone of the VM (This will ask you to consolidate all snapshots and clone only latest current state.) 
3. Now open an admin CMD shell and change the size with: (modify to your system)

VBoxManage.exe modifyhd "F:\allVMs\VirtualBox\W7sp1\W7sp1.vdi" --resize 40960

4. Close and restart VB
5. Open cloned VM
6. Right click on the "My Computer" dektop icon (or equivalent)
7. Select "Manage"
8. Select "Disk Management" under the "Storage" navigation column.
9. On the disk layout select and right-click on the root disk, usually "C:".
10. Choose ""Extend Volume" and all defaults.
11. Restart your cloned VM.
12. Delete or keep you original VM as you wish.
No need for any other 3rd party partition utilities!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to resize a VM on a Windows Host

Post by mpack »

Despite the title, your host doesn't seem relevant to your instructions? It does however assume a Windows guest, which we can't do when offering a general howto.
Post Reply