毎回久々にvagrantを用いた環境構築を行うとvboxs
絡みのエラーが頻繁に起こります。毎回毎回原因を調べ理解しないままコマンドを叩いて進めているのですがいまいちまとまった理解ができておりません。
次々から次へと新たなエラーが産まれてしまい、終わりが見えないため、今後のためにも順序立てて置こうと思います。
bash
1#--エラー内容 2$vagrant up 3 4Vagrant was unable to mount VirtualBox shared folders. This is usually 5because the filesystem "vboxsf" is not available. This filesystem is 6made available via the VirtualBox Guest Additions and kernel module. 7Please verify that these guest additions are properly installed in the 8guest. This is not a bug in Vagrant and is usually caused by a faulty 9Vagrant box. For context, the command attempted was: 10 11mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant 12 13The error output from the command was: 14 15/sbin/mount.vboxsf: mounting failed with the error: No such device
試したこと1
vagrantでmountエラーの解決方法
上記サイトを参考にsudo /etc/init.d/vboxadd setup
を入力してみるも、vboxadd
が存在しませんでした。
OSのボックスイメージによってはデフォルトでvboxadd
までがインストールされているらしいのですが、自分のものには存在するようでした。
ちなみにゲストOSはbento/centos-7.3 (virtualbox, 2.3.8)
を使用しています。
bentoはchet絡みで有名で、これを使っておけば安心と聞いたことがあり、使用しているのですが、vboxadd
はデフォルト装備ではないのですね。。
→ssh後にsudo /etc/init.d/vboxadd setup
のコマンドを叩くようなのですが、vboxaddが存在しない。
試したこと2
Mac(Yosemite)でVagrant環境を構築する
基本的に上記サイトの通りに進めてみました。
0. isoファイルのダウンロード
0. マウント
0. sudo sh ./VBoxLinuxAdditions.run
の実行
bash
1#--エラー内容 2[vagrant@localhost mnt] sudo sh VBoxLinuxAdditions.run 3 4Verifying archive integrity... All good. 5Uncompressing VirtualBox 5.1.28 Guest Additions for Linux........... 6VirtualBox Guest Additions installer 7Removing installed version 5.1.28 of VirtualBox Guest Additions... 8Copying additional installer modules ... 9Installing additional modules ... 10vboxadd.sh: Starting the VirtualBox Guest Additions. 11Failed to set up service vboxadd, please check the log file 12/var/log/VBoxGuestAdditions.log for details. 13 14#--ログを見ろとあるのでログの結果 15[vagrant@localhost mnt]$ cat /var/log/VBoxGuestAdditions.log 16 17vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong. 18vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong. 19vboxadd.sh: failed: modprobe vboxguest failed. 20
今現在ログのエラー結果の解読を行っているところです。
随時試したことを更新していきたいと思います。
何かこのサイトわかりやすかったなど情報教えていただけると助かります。
アドバイスの方もよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/01 21:11
2017/10/01 22:27
2017/10/22 01:16