7/19/2023 0 Comments Vagrant box ubuntuResize it using VBoxManage modifyhd box.vdi -resize 15360 which increases the capacity to 15GB. VBoxManage clonehd in.vmdk out.vdi -format VDI and then re-attached it (using the GUI is easier). To be able to resize the HDD, you'll have to convert it to VDI first, e.g. To increase the capacity of disk for Vagrant Base Box 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. The -resize x option (where x is the desired new total space in megabytes) allows you to change the capacity of an existing image this adjusts the logical size of a virtual disk without affecting the physical size much. However, vagrant base boxes are basically exported OVF/OVA using VMDK format. Reason why: VBoxManage modifyhd only works with native VDI image. Personally I think it'll be easier to attach an extra virtual HDD and mount it to a proper mount point, for example /opt and move your stuff over using rsync to work around this issue, after all, puppet vagrant boxes are for testing purposes.
0 Comments
Leave a Reply. |