I can not extend image using vboxmanage

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Will70
Posts: 9
Joined: 17. May 2014, 01:46

I can not extend image using vboxmanage

Post by Will70 »

Hi,
I did before extend the image size using vboxmanage as descried here but now when I tried again I get percent numbers until 100% in like 1 sec, the command return immediately then when I log into windows then open computer management console then disk management I dont see any space to allocate !!

I suspect that might because image type is multi-attach then I set it to normal and tried the command again but got the exact same result.

What is wrong ?
Will70
Posts: 9
Joined: 17. May 2014, 01:46

Re: I can not extend image using vboxmanage

Post by Will70 »

Tried again now by typing the vdi image name without full path like c:\folder1\folder2\myimage.vdi but I got this error
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!
What does this mean ? any solution ?
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: I can not extend image using vboxmanage

Post by mpack »

The most common reason is that you haven't read the docs, and are trying to set a new size less than the old size.
Will70
Posts: 9
Joined: 17. May 2014, 01:46

Re: I can not extend image using vboxmanage

Post by Will70 »

I read here in the forum "Board index General Howtos and Tutorials Generic Advice" the topic titled "How to resize a Virtual Drive" , is it enough ? I just can not post the address because of forum rules.

I did this before but now when I tried size 37000 to have almost like 37 GB as I read it is in MB but I get the error above then I tried now 370000 I get the percentage numbers without any effect !! so when I use 37000 is it 37 GB or not ? and why I dont see anything happen when I use 370000 ?

Current image size is 27 GB.
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: I can not extend image using vboxmanage

Post by loukingjr »

I don't know if this is what is going wrong for you but the only time I ever had the resize function go to 100% in one sec was when I accidentally typed the wrong path. I assume a typo of any kind might do the same thing. well not of any kind.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: I can not extend image using vboxmanage

Post by loukingjr »

try this...

open the Command Prompt, type in the first part of the command

Code: Select all

VBoxManage modifyhd
then drag the .vdi file you are trying to resize into the command prompt window. put quotes around the file path, then type in the rest of the command.

Code: Select all

 --resize 37000
return.
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: I can not extend image using vboxmanage

Post by mpack »

Perhaps you might find it easier to use CloneVDI.
Will70
Posts: 9
Joined: 17. May 2014, 01:46

Re: I can not extend image using vboxmanage

Post by Will70 »

Thanks loukingjr I already did that, same problem.

mpack,
I also tried this and got the message that I am doing smaller size error, this with the 37000 or 40000. Thank GOD I took backup before doing this but for information only is there anything I can do for this image to fix its size ?
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: I can not extend image using vboxmanage

Post by loukingjr »

Will70 wrote:Thanks loukingjr I already did that, same problem.

mpack,
I also tried this and got the message that I am doing smaller size error, this with the 37000 or 40000. Thank GOD I took backup before doing this but for information only is there anything I can do for this image to fix its size ?
what does it say the size of the vdi is in VirtualBox?
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: I can not extend image using vboxmanage

Post by mpack »

If CloneVDI is telling you that the disk is already larger than your selection, then the disk is already larger than your selection.

If you select "Show Header" in CloneVDI then it will tell you the current disk size.

You said that you had read the tutorial. I take it then that you understand that resizing a VM that uses snapshots is difficult and that, after the disk is successfully enlarged, you need to run GParted (or other partition manager) inside the guest to make the extra space available to the guest OS.
Will70
Posts: 9
Joined: 17. May 2014, 01:46

Re: I can not extend image using vboxmanage

Post by Will70 »

I did not notice that this image has snapshot, I cloned the backup image and now resize work normally. The image I was trying to resize has very large size and when I log into windows I dont see this space to allocate with any partition tool, not sure what happen however for information only is there any way to fix this image and reset its size to smaller number ?
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: I can not extend image using vboxmanage

Post by loukingjr »

There is no way to shrink a .vdi file.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Will70
Posts: 9
Joined: 17. May 2014, 01:46

Re: I can not extend image using vboxmanage

Post by Will70 »

loukingjr wrote:There is no way to shrink a .vdi file.
Thanks.
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: I can not extend image using vboxmanage

Post by loukingjr »

Will70 wrote: Thanks.
You're welcome. You'll just have to use the backup.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply