Skip to content

Instantly share code, notes, and snippets.

@tiijima
Created December 6, 2015 15:38
Show Gist options
  • Save tiijima/b580e18a0d503d4143bd to your computer and use it in GitHub Desktop.
Save tiijima/b580e18a0d503d4143bd to your computer and use it in GitHub Desktop.
ubuntu14.04 vagrant upした後になんかエラーでて/vagrantディレクトリがmauntができない場合の対処法

ubuntu14.04 vagrant upした後になんかエラーでて/vagrantディレクトリがmauntができない場合の対処法

エラー内容

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

対処法

参考

sudo /etc/init.d/vboxadd setup

/etc/init.d/vboxaddがないのでどうしょもなかった

参考2

sudo apt-get update
sudo apt-get install virtualbox-guest-x11

上記実行後にvagrantから再起動してディレクトリ共有できた。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment