17
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant 仮想マシンの状態をboxとして保存する

Last updated at Posted at 2015-08-18

※ 仮想マシンが起動状態で

vagrant package

でカレントディレクトリにpackage.boxという名の現在のマシンイメージが保存される(僕の環境だと2.5分くらいかかった)

↑でできたファイルを

vagrant box add hoge package.box

でボックスに追加することができる
※ 追加と同時に仮想マシンはシャットダウンされる。

追加されているか確認

vagrant box list

hoge が追加されていればOK

17
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?