Last active
August 29, 2015 14:08
-
-
Save kurap/82c7d635681c33cbd2b3 to your computer and use it in GitHub Desktop.
Vagrant command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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