質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

0回答

2015閲覧

vagrant sshするとエラーが出る

退会済みユーザー

退会済みユーザー

総合スコア0

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2016/05/29 13:06

何度もお世話になります。
ドットインストール(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でフォルダが作れず困っています。

どうかご教示願います。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問