Specifying available memory when using vagrant builder

27 views
Skip to first unread message

Fusions

unread,
Mar 22, 2019, 9:13:20 AM3/22/19
to Packer
The new vagrant builder is a neat addition to Packer - nice work. Is there a way to configure the available memory of the VM when using this builder though? My VM appears to default to 1GB, which isn't nearly enough for the provisioning work I'm trying to do. Instead I've had to resort to unpacking the .box file and using the virtualbox-ovf builder instead, as I can configure the memory using the vboxmanage option. Any help on how to do something similar with the vagrant builder would be appreciated, thanks!

Megan Marsh

unread,
Mar 25, 2019, 1:49:21 PM3/25/19
to packe...@googlegroups.com
I think you should be able to set this by using the `template` (https://www.packer.io/docs/builders/vagrant.html#template) option to provide a vagrantfile template that sets v.memory. . The default we use is very bare-bones.

Fusions

unread,
Mar 26, 2019, 6:18:09 AM3/26/19
to Packer
Hi Megan. Awesome, I'll check that out. I hadn't even considered I could put the memory limit there. Thanks for your help!
Reply all
Reply to author
Forward
0 new messages