VAGRANT PACKAGE
Commande : vagrant package
Usage: vagrant package [options] [name|id] Options: --base NAME Name of a VM in VirtualBox to package as a base box (VirtualBox Only) --output NAME Name of the file to output --include FILE,FILE.. Comma separated additional files to package with the box --vagrantfile FILE Vagrantfile to package with the box -h, --help Print this help
Générer une image taguée à partir de la VM courante
vagrant package [options] --output boxname.box
ex :
$ vagrant package --output custom-lamp.box
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Exporting VM...
==> default: Compressing package to: D:/vagrant/projects/demo/custom-lamp.box
Générer une image taguée à partir d’une VM VirtualBox
vagrant package [options] --base VBdisplayname --output boxname.box
ex :
$ vagrant package --base centos7-minimal --output Centos7-server.box
==> centos7-minimal: Attempting graceful shutdown of VM...
==> centos7-minimal: Clearing any previously set forwarded ports...
==> centos7-minimal: Exporting VM...
==> centos7-minimal: Compressing package to: D:/vagrant/projects/vagrant-box/Centos7-server.box