I used vagrant package to create the following:
*$ tar xfv *.box*
*x ./box-disk1.vmdk*
*x ./box.ovf*
*x ./include/*
*x ./include/_Vagrantfile*
*x ./Vagrantfile*
The ./Vagrantfile correctly loads the included Vagrantfile:
c*at Vagrantfile *
*Vagrant::Config.run do |config|*
* # This Vagrantfile is auto-generated by `vagrant package` to contain*
* # the MAC address of the box. Custom configuration should be placed in*
* # the actual `Vagrantfile` in this box.*
* config.vm.base_mac = "080027111C84"*
*end*
*# 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)*
How do I install this box so that it runs ./Vagrantfile and then finds the
embedded Vagrant file. I've tried:
vagrant init .mybox.box
vagrant up
And:
cd to box location
vagrant init boxname
vagrant box add --name boxname mybox.box
vagrant up
And:
vagrant box add --name boxname mybox.box
vagrant init boxname
vagrant up
The embedded Vagrantfile is never ran. I think of these all, the first
should work as it doesn't create a default Vagrant init file.
vagrant version 1.8.1
Thanks!
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/84fe5ffc-61c8-43fb-9523-3849d658f002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.