AWS / PHP / Python ちょいメモ

amazon web service , PHP, Python を使ったときのメモ。日本語でググってもわからなかった事を中心に。

VirtualBox の 共有フォルダ に シンボリックリンク利用はさける

今回は、これだけ。

Windowsホスト上のシンボリックリンクを、VirtualBoxの共有フォルダー として設定しないでおこう。」

vagrant 1.9.2 + VairutalBox 5.1.18 on Win10Pro(x64) の環境で遭遇。


指定してしまった時のエラー

==> host1: Mounting shared folders...
host1: /vagrant => C:/work/_ansible_sym
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument


Win上でシンボリックリンク(正確には、今回はジャンクション)を使った理由は、まとめてGitで管理を始めたので作業フォルダと分けようと思ったから。Invalid argument だと対応に時間がかかるので、Symbolic Link does not support とかがいいかも。

参考

vagrant オフィシャル

Symbolic Links
Support for symbolic links across synced folder implementations and host/guest combinations is not consistent