Vagrantを使って、CentOSをインストールしようとしてるのですが、
うまくいきません。
解決策をご教示いただけないでしょうか。
<環境>
Windows10 pro 64bit
VirtualBox バージョン 5.0.12
Vagrant バージョン 1.8.1
c:\Vagrant\CentOS>vagrant init puphpet/centos65-x64
これでVagrantfileが作成できました。
続いて、upしようとしたところ
c:\Vagrant\CentOS>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'puphpet/centos65-x64' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 The box 'puphpet/centos65-x64' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via `vagrant login`. Also, please double-check the name. The expanded URL and error message are shown below: URL: ["https://atlas.hashicorp.com/puphpet/centos65-x64"] Error:
となります。
をブラウザへコピペしましたが表示されます。
同様のことを同一ネットワーク上の別PCで試したところ、
CentOSが立ち上がりました。
さっぱりわからず四苦八苦しております。
何か解決策がございましたらご教示ください。
よろしくお願いいたします。
<-------------------------追記(1月15日)------------------------------>
念のため、virtualcheckerでチェックしてみました。
仮想化には対応していると思います。
気になる質問をクリップする
クリップした質問は、後からいつでもMYページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
回答3件
0
バージョンダウンして見たところ、動きました。
c:\Vagrant\CentOS>vagrant -v Vagrant 1.7.4 c:\Vagrant\CentOS>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'puphpet/centos65-x64' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'puphpet/centos65-x64' default: URL: https://atlas.hashicorp.com/puphpet/centos65-x64 ==> default: Adding box 'puphpet/centos65-x64' (v20151130) for provider: virtualbox default: Downloading: https://vagrantcloud.com/puphpet/boxes/centos65-x64/versions/20151130/providers/virtualbox.box default: Progress: 100% (Rate: 600k/s, Estimated time remaining: --:--:--) ==> default: Successfully added box 'puphpet/centos65-x64' (v20151130) for 'virtualbox'! ==> default: Importing base box 'puphpet/centos65-x64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'puphpet/centos65-x64' is up to date... ==> default: Setting the name of the VM: CentOS_default_1452824666451_57970 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => C:/Vagrant/CentOS c:\Vagrant\CentOS>vagrant ssh `ssh` executable not found in any directories in the %PATH% variable. Is an SSH client installed? Try installing Cygwin, MinGW or Git, all of which contain an SSH client. Or use your favorite SSH client with the following authentication information shown below: Host: 127.0.0.1 Port: 2222 Username: vagrant Private key: c:/Vagrant/CentOS/.vagrant/machines/default/virtualbox/private_key
ありがとうございました。
投稿2016/01/15 02:29
総合スコア11
0
ベストアンサー
下記手順で、vagrant ssh
まで動作確認しました。
lang
1% vagrant box add puphpet/centos65-x64 2 3エラーが出るなら、以下のようにして実行してみる。 4 5% vagrant box add puphpet/centos65-x64 https://atlas.hashicorp.com/puphpet/boxes/centos65-x64 6 7最初に選択肢が出るので、使っている仮想化ソフトを選択する。 81) parallels 92) virtualbox 103) vmware_desktop 11 12ダウンロードの完了を待つ。 13 14Vagrantfileを作成する。 15% vagrant init puphpet/centos65-x64 16 17仮想環境を起動する。 18% vagrant up --provider virtualbox 19`--provider`には先に選択した仮想化ソフトを指定する 20 21% vagrant ssh 22---------------------------------------------------------------- 23 CentOS 6.7 built 2015-12-01 24---------------------------------------------------------------- 25[vagrant@localhost ~]$
投稿2016/01/14 13:44
総合スコア1698
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/01/15 00:30
2016/01/15 00:55
2016/01/15 01:05
2016/01/15 01:24
2016/01/15 01:34
2016/01/15 01:35
2016/01/15 02:26
0
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
vagrant login
. Also, please double-check the name. The expanded
URL and error message are shown below:
エラーにも出ていますが、vagrantcloudはログインが必要となってます。
なので、
Create an account
からアカウントを作成し、
vagrant login `` を実行してもう一度試してみてください。 [ドキュメント](https://docs.vagrantup.com/v2/cli/login.html)
投稿2016/01/14 08:12
総合スコア232
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/01/14 08:58
あなたの回答
tips
太字
斜体
打ち消し線
見出し
引用テキストの挿入
コードの挿入
リンクの挿入
リストの挿入
番号リストの挿入
表の挿入
水平線の挿入
プレビュー
質問の解決につながる回答をしましょう。 サンプルコードなど、より具体的な説明があると質問者の理解の助けになります。 また、読む側のことを考えた、分かりやすい文章を心がけましょう。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。