简体   繁体   English

如何从现有的Windows iso映像创建一个Windows vagrant box

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

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

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

Vagrant works with box not OS ISO Vagrant使用box而不是OS ISO

You can read more on box at https://docs.vagrantup.com/v2/boxes.html but basically Boxes are the package format for Vagrant environments. 您可以在https://docs.vagrantup.com/v2/boxes.html上阅读更多信息,但基本上Boxes是Vagrant环境的包格式。 A box can be used by anyone on any platform that Vagrant supports to bring up an identical working environment. Vagrant支持的任何平台上的任何人都可以使用一个盒子来创建相同的工作环境。

The easiest to start with is to download an existing box ( .box file) both https://app.vagrantup.com/boxes/search and http://www.vagrantbox.es are good resources to find a box that should match your need. 最简单的方法是下载现有的盒子( .box文件) https://app.vagrantup.com/boxes/searchhttp://www.vagrantbox.es都是很好的资源,可以找到一个应该匹配的盒子你的需要。

If really you want to start with the ISO and build your own box ( this is more advanced topic , I would only recommend for specific usage), you would need to look at the packer tool ( https://www.packer.io ) and getting existing templates for your target OS (like https://github.com/joefitzgerald/packer-windows for windows box) 如果您真的想从ISO开始并构建自己的盒子( 这是更高级的主题 ,我只建议特定用途),您需要查看packer工具( https://www.packer.io )获取目标操作系统的现有模板(如https://github.com/joefitzgerald/packer-windows for windows box)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM