LoginSignup
7
7

More than 5 years have passed since last update.

Vagrantを起動するまで

Last updated at Posted at 2015-05-11

1.VirtualBoxの準備

(1)VirtualBoxのダウンロード

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

(2)上記サイトからダウンロードしたらインストール

2.Vagrantの準備と起動

(1)Vagrantのダウンロード

https://www.vagrantup.com/downloads.html

(2)上記サイトからダウンロードしたらインストール

(3)BOXの追加

1.下記サイトより「CentOS 6.5 x86_64」(ProviderがVirtualBoxのもの)のURLをコピーする

■BOX配布サイト
http://www.vagrantbox.es/

2.コマンドを実行してBOXを追加する

vagrant box add [BoxName] [URL]
※[BoxName]は任意の名称、[URL]はコピーしたURL

(4)BOXの確認

以下のコマンドを実行して正常にBOXが追加されているか確認
vagrant box list
正常に追加が完了していれば追加したBOX名が表示される

(5)Vagrantfileの作成

任意のディレクトリを作成
例:/vagrant/CentOS6
作成したディレクトリに移動して、以下のコマンドを実行
vagrant init [BoxName]
※[BoxName]は先ほど追加したBOX名

(6)Vagrantの起動

上記ディレクトリにいる状態で以下のコマンドを実行
vagrant up

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7