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

1
2
3
4
5
6
7
$ 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)
1
2
3
4
5
6
$ 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
1
$ vagrant box add new-box package.box
1
2
3
4
$ mkdir ~/vagrant-new-box && cd ~/vagrant-new-box
$ vagrant init new-box
$ vagrant up
$ vagrant ssh
comments powered by Disqus
Built with Hugo
テーマ StackJimmy によって設計されています。