Ticket #3560 (closed enhancement: fixed)
Additional newsize parameter for VBoxManage clonehd
|Reported by:||TerryE||Owned by:|
Another issue which comes up repeatedly on the forum: how to extend the size of a VDI, once created.
The new 2.1 clonehd algo now in essence does a create of the new hd and then a dd of the content of the old image to new. Adding an optional size parameter to the clonehd command, to allow the user to override the size of the output disk image would go a long way to simplifying this for basic users. This would involve perhaps a dozen extra lines to VBoxManage.cpp and a few to VBoxManageDisk.cpp.
With this change, the instructions to the users become a lot more straight forward:
Clone your virtual image to a larger VDI using the VBoxManage clonehd command specifying the new size, then use a third party partition resizing tool such as GParted (typically booting from a LiveCD) to resize your partitions. Note that you will need to have enough space on your underlying file system to contain both the old and new disk images.