[Solved] How to resize VMDK file?

This is for discussing general topics about how to use VirtualBox.
Post Reply
gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

[Solved] How to resize VMDK file?

Post 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.
Last edited by gibra on 22. Aug 2017, 17:05, edited 1 time in total.
gibra
VBCorner
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: How to resize VMDK file?

Post 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.
gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

Re: How to resize VMDK file?

Post 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!!! :D
gibra
VBCorner
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: [Solved] How to resize VMDK file?

Post 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.
gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

Re: [Solved] How to resize VMDK file?

Post by gibra »

I don't know CloneVDI.
Where is?
gibra
VBCorner
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: [Solved] How to resize VMDK file?

Post by mpack »

gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

Re: [Solved] How to resize VMDK file?

Post by gibra »

Ok, I found it and try...
Superb!!!
If I knew it before... :lol:

Thank you! :D
gibra
VBCorner
Post Reply