It should be

Vagrant.configure("2") do |config|
  config.vm.box = "mrlesmithjr/windows10"
  config.ssh.forward_agent = true
  config.vm.provider :virtualbox do |v, _override|
    v.linked_clone = true
    config.vm.synced_folder '..\\..\\data', '/vagrant_data'
  end
  config.vm.network 'private_network', ip: '192.168.33.10'
end



On Friday, June 7, 2019 at 12:19:45 PM UTC-7, NieLeben wrote:
>
> This is my current Vagrantfile:
>
> # -*- mode: ruby -*-
> # vi: set ft=ruby :
>
> Vagrant.configure("2") do |config|
>   config.vm.box = "mrlesmithjr/windows10"
>   config.ssh.forward_agent = true
>   config.vm.provider "virtualbox" do |v, _override|
>     v.linked_clone = true
>     config.vm.synced_folder '..\\..\\data', '/vagrant_data'
>   end
>   unless config.vm.provider = "virtualbox"
>     config.vm.synced_folder '..\\..\\data', '/vagrant_data', type: 'smb', 
> mount_options: ['mfsymlinks']
>   end
>   config.vm.network 'private_network', ip: '192.168.33.10'
> end
>
> But it always throws an error at:
>   unless config.vm.provider = "virtualbox"
>
> After about an hour of googling i don't know what to do.
>

-- 
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/4059249b-c902-400c-ae13-6e39c9d63d27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to