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.