~/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/virtualbox/Vagrantfile
you can edit this file add what you need, aadjust the path to your box, and to test you can do a vagrant reload.
Vagrant by default merge 3 Vagrantfiles.
The local one in the project, the one in the box as I did show, and one global for every box, in ~/.vagrant.d/Vagrantfile if present.
If you want this Vagrantfile to read other files you can use
# Load include vagrant file if it exists after the auto-generated
# so it can override any of the settings
include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
load include_vagrantfile if File.exist?(include_vagrantfile)
this will load a file like:
~/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/include/_Vagrantfile
Thanks
Alvaro.
https://superuser.com/questions/1196330/how-do-i-package-a-vagrant-box-with-custom-vagrant-file-public-network-ram-setI can't seem to package a box with 'public_network'. It always reverts to NAT. The memory settings stuck. Why not network settings?
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/48b2457d-2ad3-4c9d-b602-083286008ba1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you include a Vagrantfile in the box, your network will be the 2nd and so on.
You can include options on the box in a Vagrantfile, ie:
~/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/virtualbox/Vagrantfile
you can edit this file add what you need, aadjust the path to your box, and to test you can do a vagrant reload.
And I did that but it didn't work. I edited the C:\Users\Chloe\.vagrant.d\boxes\nycmesh-qmp-openwrt\0\virtualbox\Vagrantfile file and added the line
config.vm.network "public_network"
Warnings:* Unknown network type 'public_network' will be ignored.