LoginSignup
14
15

More than 5 years have passed since last update.

vagrantで共有フォルダを作成しない設定

Posted at

Winows上のvagrantでFreeBSDのboxを利用するとき、どうしても共有フォルダをマウントすることができず、「mount_virtualbox_shared_folder」のところで必ずエラーが出てしまうようです。

エラーを放置するのも気持ち悪いので、共有フォルダのマウントを無効化してしまいます。

Vagrantfile に以下の設定を追加すると、共有フォルダのマウントが無効化されます。

config.vm.synced_folder ".", "/vagrant", disabled: true

「disabled: true」っていうのがミソ。

 

公式ドキュメントの該当ページ

14
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
15