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

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

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

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

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

Q&A

解決済

2回答

2714閲覧

Vagrantのプラグインをインストールできない

saemi

総合スコア13

MacOS(OSX)

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

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

0グッド

0クリップ

投稿2017/07/11 11:58

###Vagrantのプラグインをインストールできない
vagrantをコマンドで起動(vagrant up)すると

MacBook-Pro:vagrant-lamp *****$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following errors and try again: Vagrant: * Unknown configuration section 'omnibus'.

というエラーが表示され、omnibusプラグインをインストールすると

MacBook-Pro:vagrant-lamp *****$ vagrant plugin install vagrant-omnibus Installing the 'vagrant-omnibus' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: conflicting dependencies winrm-fs (= 1.0.1) and winrm-fs (= 0.2.3) Activated winrm-fs-0.2.3 which does not match conflicting dependency (= 1.0.1) Conflicting dependency chains: winrm-fs (= 0.2.3), 0.2.3 activated versus: winrm-fs (= 1.0.1) Gems matching winrm-fs (= 1.0.1): winrm-fs-1.0.1

というエラーが表示されます。

winrm-fsのバージョンの関係性のような気がするのですが
どのように対処したらいいのかわかりません。

そもそもmacなのにWindows関連のものがエラーになるのは合っているのでしょうか。
知識不足で申し訳在りませんがどなたかご教授いただけますでしょうか。

###補足情報
ホストOS: macOS Sierra 10.12.5
vagrant: Vagrant 1.9.7
VBoxManage: 5.1.22r115126

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

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

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

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

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

guest

回答2

0

自己解決

http://qiita.com/ebisennet/items/60a15a225fabc150445d

こちらの記事の通り, Vagrant 1.8.1 × VirtualBox 5.0.16 だと起動できているようなので
参考にさせていただきました。

Vagrantをダウングレード(1.9.6 → 1.8.1)
https://releases.hashicorp.com/vagrant/1.8.1/

VirtualBoxをダウングレード(5.1.22 → 5.0.16)
https://www.virtualbox.org/wiki/Download_Old_Builds_5_0_pre18

boxの一覧を表示
vagrant box list

Vagrant初期化
vagrant init centos72

Vagrantfileを削除するように言われたので削除
rm Vagrantfile

再度Vagrant初期化
vagrant init [box_name]

必要なプラグインをインストール
vagrant plugin install vagrant-omnibus

Vagrant起動
vagrant up

Vagrant起動失敗(boxがpoweroff ではなくsavedだったから?下記エラー内容)

There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["startvm", "bde2b331-260c-403a-a839-d7adeb4b73ac", "--type", "headless"] Stderr: VBoxManage: error: Failed to load unit 'cpum' (VERR_INVALID_FLAGS) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

仮想マシンのステータスを表示
vagrant status
savedになってました

仮想マシンを終了(シャットダウン)
vagrant halt
saved → poweroffになったことを確認

Vagrant起動
vagrant up

仮想マシンにログインできることを確認
vagrant ssh

上記の通り, 無事にプラグインのインストールとVagrantの起動に成功しました。
ダウングレードしたことにより成功したことを踏まえると
Vagrant 1.9.7 × VirtualBox 5.1.22 の相性が悪かったのかなあと…。(原因は謎のまま)

投稿2017/07/13 01:34

saemi

総合スコア13

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

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

0

X-codeインストールもしくはアップグレードすると解決すること多いです。

X-code立ち上げて同意するボタンを押さないといけない場合もあります。

参考までに
http://qiita.com/ANTON072/items/46020399d68eddb158a4

投稿2017/07/11 23:11

yoshis22

総合スコア107

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

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

saemi

2017/07/12 01:49

回答ありがとうございます。 X-codeを8.3.3にアップグレードし, X-codeを起動→同意 しましたが解決しませんでした。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問