1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vagrant のインストール

Posted at

実行環境

Mac OSX 10.10
VirtualBoxをインストール済み

vagrant のインストール

https://www.vagrantup.com
からvagrant本体をダウンロードする

vagrant の作成

http://www.vagrantbox.es
から作成したい環境のURLを取得する

vagrant box add [name] [url]
mkdir vagrant
cd vagrant
vagrant init [name]

vagrantfileの編集

Vagrant.configure(2) do |config|
  config.vm.box = "[name]"
  config.vm.network "private_network", ip: "XXX.XXX.XXX.XXX"
end

vagrant の起動・状態確認・終了・破棄

vagrant up
vagrant status
vagrant halt
vagrant destroy

vagrant プラグインのインストール

vagrant plugin install vagrant-vbox-snapshot
vagrant snapshot take [snapshot-name]
vagrant snapshot go [snapshot-name]
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?