Skip to content

Instantly share code, notes, and snippets.

@lkwdwrd
Created September 7, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkwdwrd/dd789a5abd2bbe2704f2 to your computer and use it in GitHub Desktop.
Save lkwdwrd/dd789a5abd2bbe2704f2 to your computer and use it in GitHub Desktop.
Hyper-VVV Customfile
# Use a compatible base box
config.vm.provider :hyperv do |v, override|
override.vm.box = "ericmann/trusty64"
v.memory = 1024
v.cpus = 1
end
# Change all the folder to use SMB instead of Virtual Box shares
config.vm.synced_folders.each do |id, options|
# Make sure we use SMB for file mounts on Windows
if ! options[:type] && Vagrant::Util::Platform.windows?
options[:type] = "smb"
end
end
# Set the data folder to have the correct permissions if we're in windows.
if Vagrant::Util::Platform.windows?
config.vm.synced_folder "www/", "/srv/www/", :owner => "www-data", :mount_options => ["file_mode=0775","dir_mode=0775","nobrl","forceuid","forcegid","sfu"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment