packaging synced folder with vagrant base box

2020-07-22 09:33发布

问题:

when packaging a vagrant box, the package.box file does not contain a synced folder /src that has a bunch of repos I downloaded to it during provisioning. What would be the best way to include the synced folder so I can distribute the vm?

回答1:

I guess you are using shared folders between your host and your virtual machine. Vagrant package will never package your shared folders because they are not part of the virtual machine, they belongs to your host.

The best way to package these files, is to store them in another folder in the virtual machine like in your /home or /opt for example.



标签: vagrant