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

Vagrantを使ってCentOS6.5の仮想マシンを2台立てる

More than 3 years have passed since last update.

環境

  • Mac OS X Yosemite 10.10.2

手順

  • boxファイルをダウンロードしVagrantファイルを作成
$ vagrant add box CentOS65 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box
$ vagrant init CentOS65
  • Vagrantfileを下記のように編集
Vagrant.configure(2) do |config|
  config.ssh.insert_key = false
  config.vm.box = "CentOS65"

  config.vm.define "web" do |node|
    node.vm.network "private_network", ip: "192.168.10.10"
    node.vm.hostname = "host1"
  end

  config.vm.define "db" do |node|
    node.vm.network "private_network", ip: "192.168.10.20"
    node.vm.hostname = "host2"
  end
end
  • 仮想マシンの立ち上げ
$ vagrant up [host1/host2]
# 仮想マシン名を指定することで、そのマシンだけ起動できます。
# 指定しなければ全てが起動されます。
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
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