何度もお世話になります。
ドットインストール(http://dotinstall.com/lessons/basic_localdev_mac)を参考にローカル開発環境の構築をしているのですが、
vagrant up
すると下記のようなエラーが出ます。
少し長いですがよろしくお願いします。
lang
1Failed to mount folders in Linux guest. This is usually because 2the "vboxsf" file system is not available. Please verify that 3the guest additions are properly installed in the guest and 4can work properly. The command attempted was: 5 6mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant 7mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant 8 9The error output from the last command was: 10 11/sbin/mount.vboxsf: mounting failed with the error: No such device
調べたところ、似たような症状の方の記事(こちらです)がありましたので参考にしつつ、
sudo yum install -y kernel-devel kernel-headers dkms gcc gcc-c++
を実行すると、
lang
1読み込んだプラグイン:fastestmirror 2インストール処理の設定をしています 3Loading mirror speeds from cached hostfile 4 * base: www.ftp.ne.jp 5 * extras: www.ftp.ne.jp 6 * updates: www.ftp.ne.jp 7パッケージ kernel-devel-2.6.32-642.el6.x86_64 はインストール済みか最新バージョンです 8パッケージ kernel-headers-2.6.32-642.el6.x86_64 はインストール済みか最新バージョンです 9パッケージ dkms は利用できません。 10パッケージ gcc-4.4.7-17.el6.x86_64 はインストール済みか最新バージョンです 11パッケージ gcc-c++-4.4.7-17.el6.x86_64 はインストール済みか最新バージョンです 12何もしません
となりました(カーネル?をインスロールするコマンドは以前に実行しました)。
それからsudo /etc/init.d/vboxadd setup
すると
lang
1Removing existing VirtualBox non-DKMS kernel modules [ OK ] 2Building the VirtualBox Guest Additions kernel modules 3The headers for the current running kernel were not found. If the following 4module compilation fails then this could be the reason. 5The missing package can be probably installed with 6yum install kernel-devel-2.6.32-431.el6.x86_64 7 8Building the main Guest Additions module [失敗] 9(Look at /var/log/vboxadd-install.log to find out what went wrong) 10Doing non-kernel setup of the Guest Additions [ OK ]
となってしまうので、sudo yum install -y http://bay.uchicago.edu/centos-vault/6.5/updates/x86_64/Packages/kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm
を実行したところ
lang
1読み込んだプラグイン:fastestmirror 2インストール処理の設定をしています 3kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm | 8.8 MB 01:00 4/var/tmp/yum-root-MvuQPG/kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm を調べています: kernel-devel-2.6.32-431.3.1.el6.x86_64 5/var/tmp/yum-root-MvuQPG/kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm をインストール済みとして設定しています 6Loading mirror speeds from cached hostfile 7 * base: www.ftp.ne.jp 8 * extras: www.ftp.ne.jp 9 * updates: www.ftp.ne.jp 10パッケージ kernel-devel-2.6.32-431.3.1.el6.x86_64 はインストール済みか最新バージョンです 11/var/tmp/yum-root-MvuQPG/kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm: インストールされたパッケージを更新しません。 12エラー: 何もしません
となります。
上記の記事だとその後sudo /etc/init.d/vboxadd setup
すると失敗しないみたいなのですが、私の場合
lang
1$ sudo /etc/init.d/vboxadd setup 2Removing existing VirtualBox non-DKMS kernel modules [ OK ] 3Building the VirtualBox Guest Additions kernel modules 4The headers for the current running kernel were not found. If the following 5module compilation fails then this could be the reason. 6The missing package can be probably installed with 7yum install kernel-devel-2.6.32-431.el6.x86_64 8 9Building the main Guest Additions module [失敗] 10(Look at /var/log/vboxadd-install.log to find out what went wrong) 11Doing non-kernel setup of the Guest Additions [ OK ]
と、また同じことになってしまいます。
一応vagrantは起動できているようなのですが、cyberduckでフォルダが作れず困っています。
どうかご教示願います。
あなたの回答
tips
プレビュー