VirtualBox(5.1.16)+Vagrant(1.9.2)で共有フォルダがマウントできない

(2017-03-23追記)

VirtualBoxのバグだったようです。
VirtualBoxのバージョンを5.1.14に落とすか、5.1.18に上げれば解決します。


Windows10環境でVirtualBox5.1.16とVagrant1.9.2で仮想環境構築しようとしたら、 こんな感じのエラーが出てマウントできない。。。

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:

: No such file or directory

対処法がなかなか見つからなくてこれで一日溶けた…(´・ω・`)

対処法

C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.9.2\lib\vagrant\util\platform.rb

206行目にある

"\\\\?\\" + path.gsub("/", "\\")path.gsub("/","\\") に置き換える。

ファイルの場所が場所なので、エディタは要管理者権限

情報源

ここにに対処法乗ってました。 stackoverflow.com