LoginSignup
3
2

More than 5 years have passed since last update.

MacにVagrantを入れる

Posted at

===================

参考

手順

Vagrantのインストール

Vagrant 公式サイト

上記公式サイトから、 vagrant_x.x.x.dmg をダウンロードし インストール

VirtualBoxのインストール

VirtualBox 公式サイト

VirtualBox-x.x.x-xxxxx-OSX.dmg をダウンロードし インストール

Boxの追加

$ vagrant box add centos64 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box

仮想マシンを作る

$ mkdir -p ~/Vagrant/CentOS64
$ cd ~/Vagrant/CentOS64
$ vagrant init centos64
$ vagrant up

仮想マシンの起動・状態確認・停止

$ vagrant up
$ vagrant status
$ vagrant suspend

仮想マシンへの接続

$ vagrant ssh

ネットワークの設定

$ vi Vagrantfile
# config.vm.network :private_network, ip: "192.168.33.10"
 ↑ ここのコメントアウトを削除

リロード

$ vagrant reload

3
2
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
3
2