Problems Resizing VDI

Discussions related to using VirtualBox on Mac OS X hosts.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problems Resizing VDI

Post by loukingjr »

saeran wrote:I'm trying to resize a VDI. I am doing so via the instructions here (can't post links, I'm a new member)
Would appreciate some help.
Cheers
The easy way... Drag the .vdi file to a terminal window, type VBoxManage modifyhd at the front of the path and --resize <the new size> at the end of the path and hit return.

You don't have to worry about spaces, no spaces, adding quotes etc.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
saeran
Posts: 4
Joined: 14. Jul 2013, 06:29

Re: Problems Resizing VDI

Post by saeran »

loukingjr wrote:I think the problem is he has a space in the name of one of the folders. Macs don't mind that. VirtualBox seems to.

edit: well I never had to resize a .vdi but on a Mac, the easiest way seems to be to drag the .vdi to the terminal, type VBoxManage modifyhd in the front of the path and --resize <the new size> at the end of the path and hit return.
That worked!! Thanks so much! :)
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problems Resizing VDI

Post by loukingjr »

welcome :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
LindsayEvz
Posts: 15
Joined: 21. Apr 2013, 00:14
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Problems Resizing VDI

Post by LindsayEvz »

loukingjr wrote:
saeran wrote:I'm trying to resize a VDI. I am doing so via the instructions here (can't post links, I'm a new member)
Would appreciate some help.
Cheers
The easy way... Drag the .vdi file to a terminal window, type VBoxManage modifyhd at the front of the path and --resize <the new size> at the end of the path and hit return.

You don't have to worry about spaces, no spaces, adding quotes etc.
I tried this:

Last login: Tue Sep 3 15:20:15 on ttys000
unknown705681b97031:~ lindsaygrant$ VBoxManage modifyhd /Users/lindsaygrant/VirtualBox\ VMs/WindowsVM/WindowsVM.vdi --resize 35860
VBoxManage: error: Failed to lock media when compacting '/Users/lindsaygrant/VirtualBox VMs/WindowsVM/WindowsVM.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, progress.asOutParam())" at line 539 of file VBoxManageDisk.cpp
Segmentation fault: 11
unknown705681b97031:~ lindsaygrant$

the bold being what your solution said to do, and I still got an error. Help? Need to grow my guest hdd space from 25gb to 35gb
LindsayEvz
Posts: 15
Joined: 21. Apr 2013, 00:14
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7

Re: Problems Resizing VDI

Post by LindsayEvz »

ciamurra wrote:I'm trying to do the same thing. I used Terminal, and the command that finally worked is this
VBoxManage modifyhd Documents/VirtualBox/HardDisks/WindowsXP.vdi --resize 20480
Use that exact syntax and substitute the absolute path including the name and extension. Do not begin with User/<name> in the path.
So does this mean it worked if I get these results?

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$

If so, THANK YOU! Been working on this stupid terminal syntax for 6 hours now! SMH!
Post Reply