Distribution

How to create box from a running project

# Only support virtualbox
$ 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

Creating a New Vagrant Box

Add .box into vagrant

vagrant box add my-box name-of-the-box.box
vagrant init my-box
vagrant up

Last updated

Was this helpful?