Created
February 18, 2014 02:28
-
-
Save konyu/9063536 to your computer and use it in GitHub Desktop.
Vagrantでexportした環境(box)を取り込む方法 ref: http://qiita.com/kon_yu/items/ac7fb2c5af1cc0844225
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
> vagrant package | |
Exporting VM... (結構時間がかかる) |
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
# box に追加 | |
> vagrant box add BOX_NAME ./package.box | |
# boxが追加されたことを確認 | |
> vagrant box list | |
BOX_NAME (virtualbox) |
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
> mkdir VM_HOME | |
> cd VM_HOME | |
> vagrant init VM_NAME |
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
> mkdir VM_HOME | |
> cd VM_HOME | |
> cp ORIGINAL_PATH/Vagrantfile ./ | |
> vi Vagrantfile |
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
> vagrant up | |
> vagrant ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment