Reputation: 1155
I'm not seeing changes made to /etc/sudoers persisted from one virtualbox to another.
In base Vagrantfile I package a "base.box" which has changes made to /etc/sudoers So when I vagrant ssh, I see the changes fine.
In another Vagrantfile I build off the "base.box" via
config.vm.box = "base"
config.vm.box_url = "../base.box"
This builds fine, but when I vagrant ssh. The changes made to /etc/sudoers are lost from the base.
I have uploaded both Vagrant Files... base/Vagrantfile and second/Vagrantfile
https://gist.github.com/joshuacalloway/5192401a1eeb287fc4aa
Upvotes: 1
Views: 199
Reputation: 3041
The changes you make on one vagrant box will not persist to the next, the changes do not get saved to base.box rather an instance of it.
If you want to make your own base.box that will persist changes take a look at https://docs.vagrantup.com/v2/virtualbox/boxes.html
Upvotes: 0