artlife3 / dazed-confused-vagrant-vm

MIT License
3 stars 0 forks source link

Support for nfs share folder #1

Open artlife3 opened 7 years ago

artlife3 commented 7 years ago

Step1 : Changed to use vagrant's share folder

artlife3 commented 7 years ago
@@ -34,12 +34,14 @@ Vagrant.configure("2") do |config|

   config.vm.synced_folder "share", "/var/www/",
      :create => true,
-     owner: "vagrant",
-     group: "vagrant",
-     mount_options: ['dmode=777','fmode=666'],
-     :nfs => false
+#     owner: "vagrant",
+#     group: "vagrant",
+#     mount_options: ['dmode=777','fmode=666'],
+      mount_options: ['nolock,vers=3,tcp,noatime'],
+     :nfs => true
artlife3 commented 7 years ago

Permission errorの問題があります。

これはchmodで解決する方法が簡単です。 sudo chmod -R 777 *

artlife3 commented 6 years ago
Vagrant.configure('2') do |config|
    config.winnfsd.uid = 1
    config.winnfsd.gid = 1
end