[SOLVED] VirtualBox 4.0.x: unable to resize VDI

Discussions related to using VirtualBox on Linux hosts.

[SOLVED] VirtualBox 4.0.x: unable to resize VDI

Postby tru » 23. Feb 2011, 17:30

Code: Select all   Expand viewCollapse view
[tru@sillage2 c5.32]$ uname -a
Linux sillage2.xxx 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[tru@sillage2 c5.32]$ rpm -qf `which VirtualBox`
VirtualBox-4.0-4.0.2_69518_rhel5-1.x86_64

[tru@sillage2 c5.32]$ VBoxManage showhdinfo  c5.32.vdi
UUID:                 62a6c462-0214-46cc-a8af-fec9d63eab8e
Accessible:           yes
Logical size:         8589934592 MBytes
Current size on disk: 935 MBytes
Type:                 normal (base)
Storage format:       VDI
Format variant:       dynamic default
In use by VMs:        c5.32 (UUID: a8ab101a-5dce-4608-bb05-267f4d7a5079)
Location:             /home/vmware/VirtualBox/Machines/c5.32/c5.32.vdi


[tru@sillage2 c5.32]$ VBoxManage modifyhd c5.32.vdi --resize 10
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!

[tru@sillage2 c5.32]$ VBoxManage modifyhd 62a6c462-0214-46cc-a8af-fec9d63eab8e --resize 10
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!

although http://www.virtualbox.org/manual/ch08.h ... -modifyvdi reads:

# The --resize option allows you to expand the capacity of an existing image;
this increases the logical size of a virtual disk without affecting the
physical size much.[33] This currently works only for the VDI and VHD formats,
and only for the dynamically expanding variants. For example, if you originally
created a 10G disk which is now full, you can use the --resize command to add
more space to the virtual disk without having to create a new image and copy
all data from within a virtual machine.
please, no private direct email about virtualbox, forum post only so that everyone can profit
tru
 
Posts: 11
Joined: 24. May 2010, 23:13
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: linux/*BSD/win*

Re: VirtualBox 4.0.4 x86_64 CentOS-5 host: unable to resize VDI

Postby klaus » 24. Feb 2011, 18:04

The --resize parameter takes the new size (not the additional space) in MBytes, so you effectively tried to shrink the disk. Which isn't implemented.
klaus
Oracle Corporation
 
Posts: 234
Joined: 10. May 2007, 14:57


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 17 guests