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:
となります。
https://atlas.hashicorp.com/puphpet/centos65-x64
をブラウザへコピペしましたが表示されます。
同様のことを同一ネットワーク上の別PCで試したところ、
CentOSが立ち上がりました。
さっぱりわからず四苦八苦しております。
何か解決策がございましたらご教示ください。
よろしくお願いいたします。
<-------------------------追記(1月15日)------------------------------>
念のため、virtualcheckerでチェックしてみました。
仮想化には対応していると思います。
-
気になる質問をクリップする
クリップした質問は、後からいつでもマイページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
クリップを取り消します
-
良い質問の評価を上げる
以下のような質問は評価を上げましょう
- 質問内容が明確
- 自分も答えを知りたい
- 質問者以外のユーザにも役立つ
評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。
質問の評価を上げたことを取り消します
-
評価を下げられる数の上限に達しました
評価を下げることができません
- 1日5回まで評価を下げられます
- 1日に1ユーザに対して2回まで評価を下げられます
質問の評価を下げる
teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。
- プログラミングに関係のない質問
- やってほしいことだけを記載した丸投げの質問
- 問題・課題が含まれていない質問
- 意図的に内容が抹消された質問
- 過去に投稿した質問と同じ内容の質問
- 広告と受け取られるような投稿
評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。
質問の評価を下げたことを取り消します
この機能は開放されていません
評価を下げる条件を満たしてません
質問の評価を下げる機能の利用条件
この機能を利用するためには、以下の事項を行う必要があります。
- 質問回答など一定の行動
-
メールアドレスの認証
メールアドレスの認証
-
質問評価に関するヘルプページの閲覧
質問評価に関するヘルプページの閲覧
checkベストアンサー
0
下記手順で、vagrant ssh
まで動作確認しました。
% vagrant box add puphpet/centos65-x64
エラーが出るなら、以下のようにして実行してみる。
% vagrant box add puphpet/centos65-x64 https://atlas.hashicorp.com/puphpet/boxes/centos65-x64
最初に選択肢が出るので、使っている仮想化ソフトを選択する。
1) parallels
2) virtualbox
3) vmware_desktop
ダウンロードの完了を待つ。
Vagrantfileを作成する。
% vagrant init puphpet/centos65-x64
仮想環境を起動する。
% vagrant up --provider virtualbox
`--provider`には先に選択した仮想化ソフトを指定する
% vagrant ssh
----------------------------------------------------------------
CentOS 6.7 built 2015-12-01
----------------------------------------------------------------
[vagrant@localhost ~]$
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
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
を実行してもう一度試してみてください。
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
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
ありがとうございました。
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
15分調べてもわからないことは、teratailで質問しよう!
- ただいまの回答率 88.19%
- 質問をまとめることで、思考を整理して素早く解決
- テンプレート機能で、簡単に質問をまとめられる
2016/01/15 08:27
ご回答ありがとうございます。
念のため"vagrant login”にてログインし
% vagrant box add puphpet/centos65-x64を実行しました。
*************************
c:\Vagrant\CentOS>vagrant box add puphpet/centos65-x64
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:
***********************
とエラーがでましたので、
% vagrant box add puphpet/centos65-x64 https://atlas.hashicorp.com/puphpet/boxes/centos65-x64を試しました。
********************
c:\Vagrant\CentOS>vagrant box add puphpet/centos65-x64 https://atlas.hashicorp.com/puphpet/boxes/centos65-x64
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'puphpet/centos65-x64' (v0) for provider:
box: Downloading: https://atlas.hashicorp.com/puphpet/boxes/centos65-x64
box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
*******************
というメッセージが出てエラーになります。
間違っていたらご指摘ください。
よろしくお願いします。
2016/01/15 09:30
まず、最初に
>Please fix this error and try again.
このメッセージに続きがありませんでしたか。
vagrant box list
を実行した出力を教えてください。
下記URLからご希望に沿ったboxファイルを選んで、
vagrant box add 適当な名前 boxファイルURL
で取得してみてください。
https://atlas.hashicorp.com/boxes/search
http://www.vagrantbox.es/
2016/01/15 09:55
Vagrant add new box error on Windows #6861
https://github.com/mitchellh/vagrant/issues/6861
2016/01/15 10:05
>>Please fix this error and try again.
>このメッセージに続きがありませんでしたか。
このメッセージが最後です。
続きはありませんでした。
vagrant box listを実行したところ、次のようになりました。
c:\Vagrant\CentOS>vagrant box list
There are no installed boxes! Use `vagrant box add` to add some.
http://www.vagrantbox.es/ より適当に「vagrant box add 適当な名前 boxファイルURL」をいくつか試してみました。
-------------------------------------------------------------
c:\Vagrant\CentOS>vagrant box add test1 https://atlas.hashicorp.com/OpenVZ/boxes/Virtuozzo-7b2
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'test1' (v0) for provider:
box: Downloading: https://atlas.hashicorp.com/OpenVZ/boxes/Virtuozzo-7b2
box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
c:\Vagrant\CentOS>vagrant box add test1 http://aka.ms/vagrant-xp-ie8
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'test1' (v0) for provider:
box: Downloading: http://aka.ms/vagrant-xp-ie8
box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
c:\Vagrant\CentOS>vagrant box add test1 https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'test1' (v0) for provider:
box: Downloading: https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box
box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
c:\Vagrant\CentOS>
--------------------------------------------------
となり、どのboxもダウンロードできません。
重ね重ね、ありがとうございます。
ご指摘がございましたらご教示ください。
2016/01/15 10:24
2016/01/15 10:34
すべてを載せられないので、エラー部っぽいところを抜粋しました
ERROR warden: Error occurred: 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:
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: 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:
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: 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:
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: 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:
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x2d40bd8>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO environment: Released process lock: machine-action-667a681c36c10c5f58863148e32c0d21
INFO environment: Running hook: environment_unload
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x47e7fa0>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::BoxAddShortNotFound: 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: >
ERROR vagrant: 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:
ERROR vagrant: C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/box_add.rb:89:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_box.rb:82:in `handle_box'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_box.rb:42:in `block in call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_box.rb:36:in `synchronize'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/handle_box.rb:36:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builtin/call.rb:53:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:224:in `action_raw'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:199:in `block in action'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:561:in `lock'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:in `call'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/machine.rb:185:in `action'
C:/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
INFO interface: error: 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:
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:
INFO interface: Machine: error-exit ["Vagrant::Errors::BoxAddShortNotFound", "The box 'puphpet/centos65-x64' could not be found or\ncould not be accessed in the remote catalog. If this is a private\nbox on HashiCorp's Atlas, please verify you're logged in via\n`vagrant login`. Also, please double-check the name. The expanded\nURL and error message are shown below:\n\nURL: [\"https://atlas.hashicorp.com/puphpet/centos65-x64\"]\nError: "]
c:\Vagrant\CentOS>
https://github.com/mitchellh/vagrant/issues/6861 の件と
似ているような・・・
2016/01/15 10:35
ありがとうございました!
2016/01/15 11:26
ありがとうございました。