I suspect this is simply a misunderstanding of the vagrant commands.

Once you have your edited Vagrantfile (with the synced_folder disabled) you should use ‘vagrant up’ NOT ‘vagrant init’.

‘vagrant init’ creates a new Vagrantfile and sets the vm/box to the value you provide on the command line (this will overwrite the one you previously created).

‘vagrant up’ on the other hand will start the VM specified by the Vagrantfile.


On 7 Jul 2017, at 16:44, Krist van Besien wrote:

Hello all,

I created my own box, and the box, and the Vagrantfile included in the box
has the following content:

Vagrant.configure("2") do |config|
        config.vm.provider :libvirt do |libvirt|
          libvirt.disk_bus = 'virtio'
        end
        config.vm.synced_folder  ".", "/vagrant", disabled: true
end


However this setting is ignored. After doing a "vagrant init <mybox>" I need to edit the Vagrantfile manually to again disable the synced folder.

Why is that?






--
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/317ab26a-7323-4b15-98a7-69d97a6d11bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
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/68126A9F-8956-4D96-9638-CB05F372CCD8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to