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

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

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

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

VirtualBox

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

Vagrant

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

Q&A

解決済

3回答

8079閲覧

vagrantを使ってCentOSをインストールしたいのですが・・・

quloneko

総合スコア11

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

VirtualBox

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

Vagrant

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

0グッド

1クリップ

投稿2016/01/14 07:30

編集2016/01/14 23:45

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でチェックしてみました。
仮想化には対応していると思います。

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

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

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

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

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

guest

回答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

quloneko

総合スコア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

izkn

総合スコア1698

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

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

quloneko

2016/01/14 23:27

izkn様 ご回答ありがとうございます。 念のため"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. ******************* というメッセージが出てエラーになります。 間違っていたらご指摘ください。 よろしくお願いします。
izkn

2016/01/15 00: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/
quloneko

2016/01/15 01:05

izkn様 >>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もダウンロードできません。 重ね重ね、ありがとうございます。 ご指摘がございましたらご教示ください。
izkn

2016/01/15 01:24

確認ありがとうございます。バグに当たったのかなあ。今積極的に動くとしたら、古いバージョンで動くものを探すことくらいですね。
quloneko

2016/01/15 01:34

debugしてみました。 すべてを載せられないので、エラー部っぽいところを抜粋しました 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 の件と 似ているような・・・
quloneko

2016/01/15 01:35

古いバージョンを試してみます。 ありがとうございました!
quloneko

2016/01/15 02:26

バージョンを落として見たところ、うまく動いたようです。 ありがとうございました。
guest

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

dohq

総合スコア232

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

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

quloneko

2016/01/14 08:58

dohq様 アカウントを作成し、再度試してみました。 c:\Vagrant\CentOS>vagrant login In a moment we will ask for your username and password to HashiCorp's Atlas. After authenticating, we will store an access token locally on disk. Your login details will be transmitted over a secure connection, and are never stored on disk locally. If you do not have an Atlas account, sign up at https://atlas.hashicorp.com. Atlas Username: XXXXXX@XXXX.XX.XX Password (will be hidden): You are now logged in. 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: となり、うまくいきませんでした。 間違っていたらご指摘ください。 よろしくお願いします。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問