Is it possible for Vagrant to use an OS .ISO install image directly/or create a Vagrant box from an ISO on the fly?

前端 未结 1 727
余生分开走
余生分开走 2021-01-31 19:44

Is it possible to automate the creation of a Vagrant .box file for an OS install, from the original ISO?

To me, this is a significant gap in the end-to-end automation of

相关标签:
1条回答
  • 2021-01-31 19:47

    I think VeeWee provides a great mechanism for preparing a Vagrant box from an ISO:

    https://github.com/jedi4ever/veewee

    It already provides a lot of out-of-the-box templates for most distributions, which you can customize if required (although this is often not needed). Alternatively you can create your own definitions.

    Alternatively you can use Packer:

    https://packer.io/

    Which is produced by the same company that makes Vagrant, so it has fairly good integration. Packer itself doesn't provided sample templates I believe, but you can use the ones Puppet Labs uses for its own testing purposes if you like:

    https://github.com/puppetlabs/puppetlabs-packer

    This can be used as a solid base for your own templates and modified to taste, or you can raise a PR on the project to contribute back if desired.

    0 讨论(0)
提交回复
热议问题