You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.
Produces the following vagrant file, which causes vagrant to fail:
Vagrant.configure('2') do |outer_config|
outer_config.vm.define "somemachine" do |config|
config.vm.box = "redhat"
config.vm.synced_folder = ["\",\", \"/vagrant\", disabled: true"]
config.vm.hostname = "somemachine"
end
end
The error message from running the recipe:
Error executing action `converge` on resource 'machine[somemachine]'
RuntimeError
------------
vagrant up somemachine --provider virtualbox failed!
STDOUT:Bringing machine 'somemachine' up with 'virtualbox' provider...
STDERR:There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The following settings shouldn't exist: synced_folder
The text was updated successfully, but these errors were encountered:
Vagrant.configure('2') do |outer_config|
outer_config.vm.define "somemachine" do |config|
config.vm.box = "redhat"
config.vm.synced_folder(",", "/vagrant", disabled: true)
config.vm.hostname = "somemachine"
end
end
A possible fix is to handle the vm.synced_folder setting key in same way as the vm.network setting key
in lib/chef/provisioning/vagrant_driver/driver.rb
in the create_vm_file method
change if key == 'vm.network'
to if key == 'vm.network' || key=='vm.synced_folder'
If I include a vm.synced_folder setting in vagrant_options, then the resulting vagrant file is invalid, which causes vagrant up to fail.
Example:
The following recipe:
Produces the following vagrant file, which causes vagrant to fail:
The error message from running the recipe:
The text was updated successfully, but these errors were encountered: