Help us understand the problem. What is going on with this article?

VagrantでCentOS7をインストール

More than 3 years have passed since last update.

環境

Mac OSX 10.11

VagrantとVirtualBoxをインストール

どこかでインストールした

現在の環境

$ VBoxManage -v
5.0.20r106931
$ vagrant -v
Vagrant 1.7.4

Vagrantを使うためのディレクトリを作成 & 移動

$ mkdir vagrant_centos7
$ cd vagrant_centos7

CentOS7のboxを追加

Vagrantbox.es (http://www.vagrantbox.es/) からお目当てのCentOS7を探して、URLをコピー。そのURLを使って、boxを追加。

# vagrant box add [vagrantのbox名] [boxのURL]
# ↓はどこのディレクトリで実行してもOK
$ vagrant box add centos7.1 https://github.com/CommanderK5/packer-centos-template/releases/download/0.7.1/vagrant-centos-7.1.box
# ↓は仮想サーバーを起動させたいディレクトリで実行
$ vagrant init

追加したboxを利用して仮想サーバーを起動

# これから、↓は仮想サーバーを起動させたいディレクトリで実行
# vagrant init [↑で指定したvagrantのbox名]
$ vagrant init CentOS7.1 # 初期化する(Vagrantfileを生成する)
$ vagrant up # 起動する
$ vagrant ssh # 接続する
[vagrant@localhost ~]$ # 仮想サーバーに入った
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした