Page 1 of 2

Increase VDI HD space

Posted: 20. Jun 2012, 00:03
by blimpman
New to Vurtualbox and first time installer.

I did the silly thing and only allocated 10GB to install Windows 7 64-Bit. I've also installed all updates, and am now left with 25MB HD space.

Is there any way to increase the VDI?

Re: Increase VDI HD space

Posted: 20. Jun 2012, 00:46
by Perryg
http://www.virtualbox.org/manual/ch08.h ... -modifyvdi
Then increase the primary partition to use the rest of the drive. (disk manager), or use Gparted.

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:03
by blimpman
Perryg, sorry i'm new to this.

Is this done through terminal?

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:14
by Perryg
Yes it is. Example:

Code: Select all

VBoxManage modifyhd "<absolute path including name and extension>" --resize 20480
will increase the size to 20GB

Note: this will not work if you have snapshots.

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:24
by blimpman
Hmm.. Must be doing something wrong.

I've opened Terminal which show the following:

Last login: Wed Jun 20 09:04:14 on ttys000
MacBook-Pro:~ blimpman$

I then past the following:

VBoxManage modifyhd "</Users/blimpman/VirtualBox VMs/VM Window 7/VM Window 7.vdi>" --resize 20480

But get this error message:

Last login: Wed Jun 20 09:04:14 on ttys000
MacBook-Pro:~ blimpman$ VBoxManage modifyhd "</Users/blimpman/VirtualBox VMs/VM Window 7/VM Window 7.vdi>" --resize 20480

VBoxManage: error: Could not find file for the medium '/Users/blimpman/</Users/blimpman/VirtualBox VMs/VM Window 7/VM Window 7.vdi>' (VERR_FILE_NOT_FOUND)

VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports

Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp

MacBook-Pro:~ blimpman$

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:28
by blimpman
I just typed the following, and got this?



Last login: Wed Jun 20 09:20:23 on ttys000
MacBook-Pro:~ blimpman$ VBoxManage modifyhd /Users/blimpman/VirtualBox VMs/VM Window 7/VM Window 7.vdi --resize 20480
Oracle VM VirtualBox Command Line Management Interface Version 4.1.16
(C) 2005-2012 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifyhd <uuid>|<filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]


Syntax error: Invalid parameter 'VMs/VM'
MacBook-Pro:~ blimpman$

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:31
by Perryg
You are forgetting the quotes " " since there are spaces it will throw a syntax error if they are not there.

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:40
by blimpman
ahhh haaa.... got it :D

VBoxManage modifyhd "/Users/blimpman/VirtualBox VMs/VM Window 7/VM Window 7.vdi" --resize 30300

Help munch appreciated :wink:

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:47
by Perryg
what size did you hope to get with 30300?
1=1.024

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:53
by blimpman
oh... umm I was trying to increase it to 30GB

This is what is shows now:

IDE Controller
IDE Secondary Master (CD/DVD):
VBoxGuestAdditions.iso (49.75 MB)
SATA Controller
SATA Port 0:
VM Window 7.vdi (Normal, 29.59 GB)

BTW Perryg, I should probably start a new post for this, to have windows display the same screen resolution, I need to install additions?

Re: Increase VDI HD space

Posted: 20. Jun 2012, 01:57
by Perryg
that would be 30720

Re: Increase VDI HD space

Posted: 20. Jun 2012, 11:51
by mpack
blimpman wrote:BTW Perryg, I should probably start a new post for this...
Your instincts are correct. Start a new topic please, with a title that matches your question. After checking user manual and previous answers of course.

Re: Increase VDI HD space

Posted: 20. Jun 2012, 13:01
by blimpman
Will do in the future mpack, sorry I think I was a little excited in getting Virtualbox running :wink:

Re: Increase VDI HD space

Posted: 5. Jul 2012, 08:22
by schleprock
Perryg wrote:Yes it is. Example:

Code: Select all

VBoxManage modifyhd "<absolute path including name and extension>" --resize 20480
will increase the size to 20GB

Note: this will not work if you have snapshots.
Where do you input the command. I need to increase my vdi and cannot figure out how.

Re: Increase VDI HD space

Posted: 5. Jul 2012, 12:43
by mpack
In the terminal (command line).