- # If using VirtualBox
- config.vm.provider :virtualbox do |vb|
-
- # Set server memory
- vb.customize ["modifyvm", :id, "--memory", server_memory]
-
- # Set the timesync threshold to 10 seconds, instead of the default 20 minutes.
- # If the clock gets more than 15 minutes out of sync (due to your laptop going
- # to sleep for instance, then some 3rd party services will reject requests.
- vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
-
- # Prevent VMs running on Ubuntu to lose internet connection
- vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
- vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
-
+ # Share a folder between host and guest
+ # config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "www-data", group: "vagrant"
+ config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", owner: "www-data", group: "www-data"
+
+ # Provider-specific configuration so you can fine-tune various
+ # backing providers for Vagrant. These expose provider-specific options.
+ config.vm.provider "virtualbox" do |vb|
+ # # Display the VirtualBox GUI when booting the machine
+ # vb.gui = true
+ #
+ # # Customize the amount of memory on the VM:
+ vb.memory = server_memory