Unable to package database data into package.box

36 views
Skip to first unread message

Puiyee Tong

unread,
Apr 1, 2016, 5:06:45 PM4/1/16
to Vagrant
Is it possible to package the mysql database that I have installed in Vagrant and all the database data into a package.box file?

Alvaro Miranda Aguilera

unread,
Apr 2, 2016, 6:17:57 AM4/2/16
to vagra...@googlegroups.com
hello,

are 2 different commands to generate a file.box

If you do vagrant up and create a new guest, and you want to export this one, vagrant package is what you are after:

$ vagrant package -h

Usage: vagrant package [options] [name]


Options:


        --base NAME                  Name of a VM in virtualbox to package as a base box

        --output NAME                Name of the file to output

        --include FILE...            Additional files to package with the box

        --vagrantfile FILE           Vagrantfile to package with the box

    -h, --help                       Print this help

~ 0


Alvaro.


On Sat, Apr 2, 2016 at 10:06 AM, Puiyee Tong <pyto...@gmail.com> wrote:
Is it possible to package the mysql database that I have installed in Vagrant and all the database data into a package.box file?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c5b7421b-f0e6-4fab-9d5b-e138de2fe856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages