Hello, Is not an easy task, but it's doable, however, packer.io also from HashiCorp can create base boxes from a json template.
If you want to do it, the steps are basically these: clone vmdk disk as vdi grow vdi disk remove vmdk disk from vm add vdi disk to vm start vm expand partition < risky, but you can start over if goes wrong expand lvm if present expand fs profit here a blog post with the steps https://gist.github.com/christopher-hopper/9755310 Vagrant provides tools to use VBoxManage, but the tricky part is grab the disk path or uuid, so that's why is not automated. Hope this helps. Alvaro. On Sat, May 16, 2015 at 12:58 AM, Vincenzo D'Amore <[email protected]> wrote: > Hi all, > > may be this is an old question, but at least for me, still interesting. Is > there any chance to set the disk size of a VM at creation time? > > Bests, > Vincenzo > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
