我如何从现有的 windows iso 图像创建一个 windows vagrant box

How can i create a windows vagrant box from existing windows iso image

我有 windows 的 iso 映像 7. 如何使用此 iso 映像创建 windows vagrant box。

I tried "vagrant box add name fileLocation of iso". But box wasn't created. 

Vagrant 使用盒子而不是 OS ISO

您可以在 https://docs.vagrantup.com/v2/boxes.html 阅读更多关于 box 的内容,但基本上 Boxes 是 Vagrant 环境的包格式。 Vagrant 支持的任何平台上的任何人都可以使用一个盒子来构建相同的工作环境。

最简单的开始是下载现有的盒子(.box 文件)这两个 https://app.vagrantup.com/boxes/search and http://www.vagrantbox.es 都是很好的资源,可以找到满足您需要的盒子。

如果你真的想从 ISO 开始并构建你自己的盒子(这是更高级的话题,我只推荐特定用途),你需要看看在 packer 工具(https://www.packer.io) and getting existing templates for your target OS (like https://github.com/joefitzgerald/packer-windows 用于 windows 框)