Created
September 7, 2015 20:39
-
-
Save lkwdwrd/dd789a5abd2bbe2704f2 to your computer and use it in GitHub Desktop.
Hyper-VVV Customfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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