Page 1 of 1

(SOLVED) Resize VirtualBox VDI

Posted: 27. Jun 2014, 20:54
by SCTS
I'm running Mac OSX Mavericks 10.9.3 with the latest version of VirtualBox. I created a dynamically allocated HD via the VB wizard. I misunderstood the concept and now have a virtual HD that's nearly full. I've installed Windows 7 Pro and all of the updates. I've now created a new virtual HD that is much larger and attached it to the controller that my original HD is attached to. Is there a simple way to clone my original installation (Win 7 Pro) to my newly created HD? I don't have a lot of windows technical expertise so any simple help would be greatly appreciated. Thanks !!

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:03
by Perryg

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:08
by SCTS
Thank you - I've looked at that and I can't figure out how to do that.

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:30
by SCTS
I put in this command in terminal: iMac27:~ 20imac$ VBoxManage modifyhd "VirtualBox VMs/Windows 7 Pro.vdi" --resize 76800 and I get this response: VBoxManage: error: Could not find file for the medium '/Users/20imac/VirtualBox VMs/Windows 7 Pro.vdi' (VERR_FILE_NOT_FOUND)

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:50
by loukingjr
SCTS wrote:I put in this command in terminal: iMac27:~ 20imac$ VBoxManage modifyhd "VirtualBox VMs/Windows 7 Pro.vdi" --resize 76800 and I get this response: VBoxManage: error: Could not find file for the medium '/Users/20imac/VirtualBox VMs/Windows 7 Pro.vdi' (VERR_FILE_NOT_FOUND)
you have a typo...

Code: Select all

VBoxManage modifyhd "Windows 7 Pro" --resize 76800
should work

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:54
by Perryg
You need to either be in the folder that has the *.vdi or provide the absolute path.

Edit: and you need to provide the exact file name and extension.

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:56
by loukingjr
Perryg wrote:You need to either be in the folder that has the *.vdi or provide the absolute path.
true, I forgot. ;)

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 21:58
by SCTS
Tried that suggestion and got this: iMac27:~ 20imac$ VBoxManage modifyhd "Windows 7 Pro" --resize 76800
VBoxManage: error: Could not find file for the medium '/Users/20imac/Windows 7 Pro' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp

Not sure what I'm doing wrong !!

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:00
by loukingjr
the easy way... first in the terminal type in... VBoxManage modifyhd then drag the .vdi file into the terminal window, then type in the rest... --resize 76800

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:09
by SCTS
okay - i did that and now i've got this: iMac27:~ 20imac$ VBoxManage modifyhd /Users/20imac/VirtualBox\ VMs/Windows\ 7\ Pro/Windows\ 7\ Pro.vdi --resize 76800
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

I'm getting close but I'm not sure what to do with these percentages. My original virtual hd is 25gb and I want to make it 75gb (76800).

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:13
by loukingjr
the percentages are how far along it was resizing :) you now have a 75GB drive but you will have to expand the partition inside your Windows 7 guest.

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:17
by SCTS
Oh my gosh - it worked !!! Thank You so much for your patience and your help. I'm very grateful.

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:18
by loukingjr
no problem, sorry about my earlier faux pas. :)

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 22:43
by SCTS
:D This saved me a TON of time !!

Re: Resize VirtualBox VDI

Posted: 27. Jun 2014, 23:27
by loukingjr
SCTS wrote::D This saved me a TON of time !!
well good. ;) you should mark the first post as solved. Just click on 'edit' and type or paste (Solved) in front of the title line.