Increase VDI HD space

Discussions related to using VirtualBox on Mac OS X hosts.
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Increase VDI HD space

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increase VDI HD space

Post 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.
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post by blimpman »

Perryg, sorry i'm new to this.

Is this done through terminal?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increase VDI HD space

Post 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.
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post 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$
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post 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$
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increase VDI HD space

Post by Perryg »

You are forgetting the quotes " " since there are spaces it will throw a syntax error if they are not there.
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post 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:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increase VDI HD space

Post by Perryg »

what size did you hope to get with 30300?
1=1.024
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Increase VDI HD space

Post by Perryg »

that would be 30720
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Increase VDI HD space

Post 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.
blimpman
Posts: 19
Joined: 19. Jun 2012, 23:59

Re: Increase VDI HD space

Post by blimpman »

Will do in the future mpack, sorry I think I was a little excited in getting Virtualbox running :wink:
schleprock
Posts: 12
Joined: 22. Apr 2012, 06:47

Re: Increase VDI HD space

Post 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.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Increase VDI HD space

Post by mpack »

In the terminal (command line).
Post Reply