resize VM disk size

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: resize VM disk size

Post by loukingjr »

A free bit of info. While you are in the Finder, if you hold down the 'Option' key while clicking on the Go menu, Library will be an option which will open the folder for you.

I saved you $50 :D
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: resize VM disk size

Post by mpack »

Actually, 4.1.x should be recent enough for this.

Before everyone gets irritated, please answer the obvious question: where did you get that path you used? Are you blindly following some blog, or have you actually looked for your VDI on your host and found it in that folder.

You can settle this doubt quite easily: show a screenshot of that folder containing that VDI.

And not to blow my own trumpet, but if you find the command line difficult to grasp, then perhaps you will have better luck understanding CloneVDI. You'll need Wine to run this on an OS X host. Someone else can no doubt tell you what Wine package is best.
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 VM disk size

Post by loukingjr »

I for one am not irritated. :)

As I mentioned however the OP's path cannot possibly be correct pre-VB 4.0 or post-VB 4.0. Not unless someone purposely created or moved it there which doesn't seem likely.

for OSX, pre-4.0's default location was $HOME/Library/VirtualBox. post 4.0's location is /Users/username (not in the "invisible" Library folder)
Hope that helps.

The vbox.log should have the path if Tony would attach it to a message.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
tony@akcs
Posts: 8
Joined: 23. Jan 2015, 00:27

Re: resize VM disk size

Post by tony@akcs »

loukingjr wrote:A free bit of info. While you are in the Finder, if you hold down the 'Option' key while clicking on the Go menu, Library will be an option which will open the folder for you.

I saved you $50 :D

Unfortunately, my keyboard does not have the "Option" key... I'm remoting into the Mac using a Windows box.

Using command line is my preference. Unfortunately, because I cannot browse to the folder location in finder, I cannot drag the path into terminal. I can browse to the location in terminal, and verify the file exists. I'm just not sure the spaces in the file name are being correctly represented in the overall command.

I will post log info and screen shots when I can log back into it.

Thank you for your 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 VM disk size

Post by loukingjr »

Tony, it would have been nice if you had mentioned you weren't on a Mac.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ba2kell
Posts: 2
Joined: 25. Jan 2015, 03:28

Re: resize VM disk size

Post by ba2kell »

To get the actual full path/filename of the disk image, OP could just use

Code: Select all

VBoxManage list hdds
thus eliminating the need for all the conniptions that have been suggested.

On mine, I see the following:
Location: /Users/ba2kell/VirtualBox VMs/Virtual Windows 7/Virtual Windows 7.vdi
With that info, I would use

Code: Select all

VBoxManage modifyhd "/Users/ba2kell/VirtualBox VMs/Virtual Windows 7/Virtual Windows 7.vdi" --resize 51200
I just tried it, and it worked exactly as expected. (I'm using VBox version 4.3.20)
tony@akcs
Posts: 8
Joined: 23. Jan 2015, 00:27

Re: resize VM disk size

Post by tony@akcs »

THANK YOU! when I did list hdds, I copied and pasted the path into the command. This worked I believe because it was copied and pasted. After that - resized volume in windows, and bammo..

Thank you for all the help, I appreciated it greatly.
ba2kell
Posts: 2
Joined: 25. Jan 2015, 03:28

Re: resize VM disk size

Post by ba2kell »

Glad it worked for you! And thanks for letting us know -- messages of thanks are encouraging and appreciated. :wink:
Post Reply