(SOLVED) Resize VirtualBox VDI

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

(SOLVED) Resize VirtualBox VDI

Post 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 !!
Last edited by SCTS on 27. Jun 2014, 23:48, edited 2 times in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Resize VirtualBox VDI

Post by Perryg »

SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post by SCTS »

Thank you - I've looked at that and I can't figure out how to do that.
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post 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)
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: Resize VirtualBox VDI

Post 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
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Resize VirtualBox VDI

Post 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.
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: Resize VirtualBox VDI

Post by loukingjr »

Perryg wrote:You need to either be in the folder that has the *.vdi or provide the absolute path.
true, I forgot. ;)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post 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 !!
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: Resize VirtualBox VDI

Post 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
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post 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).
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: Resize VirtualBox VDI

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post by SCTS »

Oh my gosh - it worked !!! Thank You so much for your patience and your help. I'm very grateful.
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: Resize VirtualBox VDI

Post by loukingjr »

no problem, sorry about my earlier faux pas. :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
SCTS
Posts: 9
Joined: 21. Mar 2013, 05:45

Re: Resize VirtualBox VDI

Post by SCTS »

:D This saved me a TON of time !!
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: Resize VirtualBox VDI

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply