Vagrantで作った仮想環境を保存しておく

$ vagrant box list
Berkshelf-CentOS-6.3-x86_64-minimal (virtualbox)
CentOS-6.4-i386-plenv               (virtualbox)
CentOS-6.4-x86_64-plenv             (virtualbox)
base                                (virtualbox)
base64                              (virtualbox)
centos64_64                         (virtualbox)
$ vagrant package
[default] Attempting graceful shutdown of VM...
[default] Clearing any previously set forwarded ports...
[default] Creating temporary directory for export...
[default] Exporting VM...
[default] Compressing package to: /Users/nobu/sandbox/vm-plenv/package.box
$ vagrant box add new-box package.box
$ mkdir ~/vagrant-new-box && cd ~/vagrant-new-box
$ vagrant init new-box
$ vagrant up
$ vagrant ssh

Comments

comments powered by Disqus