SOLVED Error: Resize Guest Windows 7 VM

Discussions related to using VirtualBox on Mac OS X hosts.
LindsayEvz
Posts: 15
Joined: 21. Apr 2013, 00:14
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Error: Resize Guest Windows 7 VM

Post by LindsayEvz »

Holy cow. 6 hours later this finally worked:

Last login: Tue Sep 3 15:21:15 on ttys000
unknown705681b97031:~ lindsaygrant$ VBoxManage modifyhd VirtualBox\ VMs/WindowsVM/WindowsVM.vdi --resize 35860
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
unknown705681b97031:~ lindsaygrant$

For future users:

Bold is the code you use, but you need to make it specific to your computer/destination/path:

Type "VBoxManage modifyhd", drag the guest .vdi from finder but delete User/<*name*>, then type "resize <*size in mb*>" and push enter. No quotes and spaces or not doesn't matter. Just copy/paste or drag/drop, let it to it's thing and voila.

Now, that just tells the virtual machine that you have 10 gb more available. Next, boot up your virtual machine (I have windows 7, so this is how it works in windows 7), then open disk manager. Right click on your main hdd space and select "extend volume" It will walk you thru the wizard. My wizard automatically selected the extra 10gb space, so just hit next or ok and voila. Done.
rela
Posts: 1
Joined: 5. Mar 2016, 16:29

Re: Error: Resize Guest Windows 7 VM

Post by rela »

Perryg wrote:With Windows 7 you don't need Gparted. Just use the disk manager in Windows to extend the primary partition.
thanks, this was super easy after modifyhd.
Kay1066
Posts: 4
Joined: 24. May 2016, 22:37

Re: SOLVED Error: Resize Guest Windows 7 VM

Post by Kay1066 »

Thank you @ LindsayEvz :wink: Great Stuff
zander101
Posts: 1
Joined: 8. Oct 2016, 18:08

Re: SOLVED Error: Resize Guest Windows 7 VM

Post by zander101 »

Just an update I'm using Virtual Box 5.1.6 and I used this
VBoxManage modifyhd --resize 100000 "C:\Path\to\virtual\machine\windowsvirtualmachine.vdi"
Guest win 7 and host win7
Then went in and changed size in disk management
Alex-devin
Posts: 1
Joined: 13. Aug 2019, 16:27

Re: SOLVED Error: Resize Guest Windows 7 VM

Post by Alex-devin »

i know this is an old thread but i thought i would update it in case anyone was having issues like I was - what I ended up having to do was similar to what Lindsay did but I had to include a longer path.

Typed in VBoxManage modifyhd, and dragged the guess .vdi from the finder, but DID NOT delete any of the path. It ended up looking like this:

TGC-MAC-84155:~ a206629554$ VBoxManage modifyhd /Users/a206629554/VirtualBox\ VMs/Windows\ 10/Windows\ 10.vdi --resize 100000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
TGC-MAC-84155:~ a206629554$

Then I opened the virtual machine, which was a windows guest, and extended the disk through disk management.
sheikh123
Posts: 1
Joined: 14. Dec 2022, 17:23

Re: SOLVED Error: Resize Guest Windows 7 VM

Post by sheikh123 »

Just the check the below command format and you are good to go
VBoxManage modifyhd --resize 70000 /Users/invincible1437/VirtualBox\ VMs/Windows\ 10/Windows\ 10.vdi
Locked