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

macにvagrantでcentoOS環境構築

More than 5 years have passed since last update.

virtualBox install

バイナリDLしてインストール

vagrant install

http://www.vagrantup.com/downloads.html
上記からバイナリDLしてインストール

  • gem があるけど使えない

CentOS6を作成する

boxにcentos63という名前をつける
※init時に名称指定しないと「base」というboxがdefaultになるらしい

vagrant box add centos63 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box

仮想環境を保存するディレクトリで以下コマンド

cd ~/virtual_work/centos63

vagrant init centos63

ネットワーク設定

vim Vagrantfile

# config.vm.network :private_network, ip: "192.168.33.10"

上記のコメントを解除する。

 config.vm.network :private_network, ip: "192.168.33.10"

仮想環境起動!

vagrant up

ssh でログインしてみる

vagrant ssh

ssh 設定

vagrant ssh-config --host centos63 >> ~/.ssh/config

ssh centos63

ssh root@192.168.33.10

上記で設定したipでログインもできた。
ちなみにrootの初期パスワードは「vagrant」

vagrant コマンドまとめ

vagrant up
vagrant halt
vagrant destroy

とりあえず仮想環境構築まで完了

knife-soloを導入 に続く
http://qiita.com/astrsk_hori/items/35b76c32961319f5d69b

Why do not you register as a user and use Qiita more conveniently?
  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
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