Skip to content

Instantly share code, notes, and snippets.

@kurap
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurap/82c7d635681c33cbd2b3 to your computer and use it in GitHub Desktop.
Save kurap/82c7d635681c33cbd2b3 to your computer and use it in GitHub Desktop.
Vagrant command
## vm 起動
vagrant up
## vm 停止
vagrant halt
## vm 休止
vagrant suspend
## vm 削除
vagrant destroy
## vagrantのboxファイルを作成
vagrant package --output mynew.box
## vagrantのboxファイルを登録
vagrant box add mynewbox mynew.box
## 登録したboxを使って新規vmを作成
vagrant init mynew.box
## status (カレントディレクトリ)
vagrant status
## status(全部)
vagrant global-status
id name provider state directory
-------------------------------------------------------------------------
5aca921 default virtualbox poweroff /Users/xxx/vagrant-ubuntu
f02590c default virtualbox poweroff /Users/xxx/vm/hinerism
5b6f1f2 default virtualbox poweroff /Users/xxx/vm/applivadnetwork
f3768fb default virtualbox running /Users/xxx/vm/ubuntu14.xx
## id を指定してイメージを削除
vagrant destroy f3768fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment