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

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

新規登録して質問してみよう
ただいま回答率
85.49%
Vagrant

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

Q&A

3回答

8148閲覧

vagrant init を実行するとエラーになる

wakawaka

総合スコア12

Vagrant

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

0グッド

1クリップ

投稿2016/12/01 03:39

###現象
ドットインストールのローカル環境構築を参考に、
「VirtualBox-5.1.10」「vagrant_1.9.0」をインストールしました。
http://dotinstall.com/lessons/basic_localdev_win_v2/38605
vagrantのフォルダを作成し、以下のコマンドでVagrantfileを作成しようと
したところ、以下のメッセージが表示され解決策がわからず困っています。
※何度か再インストールと再起動は試してみました。
ご教授お願い致します。

環境 Windows8.1

###コマンド実行結果

PS C:\MyVagrant\myCentOS> vagrant -v Vagrant 1.9.0 PS C:\MyVagrant\myCentOS> vagrant init bento/centos-6.8 Vagrant failed to initialize at a very early stage: The plugins failed to load properly. The error message given is shown below. cannot load such file -- vagrant-vbguest

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

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

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

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

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

imutakaoru

2016/12/02 02:03

コマンドプロンプトから、vagrant plugin listを実行した結果を教えてください。
guest

回答3

0

いまvagrant1.9.0をダウンロード、インストールしてみたところ、ちょっとメッセージは違うものの、同じようにプラグインでエラーになりました。

E:\Vagrant\bento-CentOS6.8>vagrant -v Vagrant 1.9.0 E:\Vagrant\bento-CentOS6.8>vagrant init bento/centos6.8 Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may be due to manual modifications made within the Vagrant home directory. Vagrant can attempt to automatically correct this issue by running: vagrant plugin repair If Vagrant was recently updated, this error may be due to incompatible versions of dependencies. To fix this problem please remove and re-install all plugins. Vagrant can attempt to do this automatically by running: vagrant plugin expunge --reinstall Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-vbguest (> 0)' E:\Vagrant\bento-CentOS6.8>

で、私の環境では、vagrant plugin expunge --reinstallを試したところ、

E:\Vagrant\bento-CentOS6.8>vagrant plugin expunge --reinstall This command permanently deletes all currently installed user plugins. It should only be used when a repair command is unable to properly fix the system. Continue? [Y/N]:y All user installed plugins have been removed from this Vagrant environment! Vagrant will now attempt to reinstall user plugins that were removed. Installing the 'vagrant-proxyconf' plugin. This can take a few minutes... Fetching: micromachine-2.0.0.gem (100%) Fetching: vagrant-proxyconf-1.5.2.gem (100%) Fetching: vagrant-vbguest-0.13.0.gem (100%) Installed the plugin 'vagrant-proxyconf (1.5.2)'! Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.13.0)'! E:\Vagrant\bento-CentOS6.8>vagrant plugin list vagrant-proxyconf (1.5.2) vagrant-share (1.1.6, system) vagrant-vbguest (0.13.0) E:\Vagrant\bento-CentOS6.8>

となり、プラグインを無事にアップデートでき、vagrant init bento/centos-6.8も成功しました。

投稿2016/12/02 07:34

imutakaoru

総合スコア356

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

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

0

Vagrantは最新バージョンは何かと不具合がでて慣れてないと解決出来ない場合もあるのでバージョン落とすのをおすすめします
多少古くても出来る事は変わらないし情報も多いので。。

とりあえずvagrantとvirtualboxのバージョンをドットインストールのと合わせることをおすすめします

古いバージョンは以下からインストールできます

vagrant
winだと.msiを選べばいいと思います
https://releases.hashicorp.com/vagrant/

virtualbox
https://www.virtualbox.org/wiki/Download_Old_Builds

投稿2016/12/03 02:30

uho

総合スコア13

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

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

0

管理者権限のコマンドプロンプトでもできませんか?

投稿2016/12/01 04:24

himakuma

総合スコア952

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

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

wakawaka

2016/12/01 04:58

ありがとうございます。 管理者権限でコマンドプロンプトで試してみたのですが、 やはり同じメッセージが返ってきます。
himakuma

2016/12/01 05:12

「vagrant box list」で、centos-6.8がありますか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

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

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

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

ただいまの回答率
85.49%

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

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

質問する

関連した質問