Skip to content

Commit

Permalink
adding several nfs mount params for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ilukac committed Jul 27, 2017
1 parent 58101b2 commit e9e8a93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Vagrantfile-nfs
Expand Up @@ -41,9 +41,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# argument is a set of non-required options.
if OS.windows?
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish", type: "nfs"
elsif OS.mac?
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish",
mount_options: ["noatime,intr,nordirplus,nolock,async,noacl,fsc,tcp"],
type: "nfs"
else
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish",
mount_options: ["noatime,intr,rdirplus"],
mount_options: ["noatime,intr,rdirplus,tcp"],
type: "nfs"
end

Expand All @@ -59,6 +63,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end

if OS.windows?
Expand Down

0 comments on commit e9e8a93

Please sign in to comment.