Page 1 of 1
[Solved] How to resize VMDK file?
Posted: 22. Aug 2017, 14:48
by gibra
From help file, about to [--resize x] option:
This currently works only for VDI and VHD formats, and only for the dynamically allocated variants, and can only be used to expand (not shrink) the capacity.
How can resize the size of a VMDK file?
Thank.
Re: How to resize VMDK file?
Posted: 22. Aug 2017, 15:09
by scottgus1
Nothing in Virtualbox can do that, according to the manual. Mpack's CloneVDI can read the vmdk, but will give you a vdi as output. You'll have to get a VMware tool, perhaps, to resize a vmdk.
Re: How to resize VMDK file?
Posted: 22. Aug 2017, 16:59
by gibra
I created the vm using VirtualBox, but probably I chosed the wrong disk format.
So, I converted it to VDI using
VBoxManage clonemedium
next I create a new vm, finally resized using
VBoxManage modifymedium
Thank you!!!

Re: [Solved] How to resize VMDK file?
Posted: 23. Aug 2017, 12:04
by mpack
I wonder why you didn't just use CloneVDI as Scottgus suggested? It would have done the conversion and resize in a single pass. A compaction too if you had wanted. All done in at most half the time your procedure took, without ever seeing a command line.
Re: [Solved] How to resize VMDK file?
Posted: 23. Aug 2017, 14:15
by gibra
I don't know CloneVDI.
Where is?
Re: [Solved] How to resize VMDK file?
Posted: 23. Aug 2017, 14:17
by mpack
Re: [Solved] How to resize VMDK file?
Posted: 23. Aug 2017, 14:32
by gibra
Ok, I found it and try...
Superb!!!
If I knew it before...
Thank you!
