使用 vagrant 和 Chef 在 Ubuntu 中設定 Windows 虛擬機

使用 vagrant 和 Chef 在 Ubuntu 中設定 Windows 虛擬機

我正在運行 Ubuntu,我想透過 Vagrant 和 Chef 在 Virtualbox 中設定虛擬機器。我認為我缺少的是 Windows Server 2008 R2 x64 試用版的 .box。

有誰知道我在哪裡可以找到 .box?如果沒有,我將如何為 Windows Server 2008 建置 Vagrant .box?

答案1

我最近必須使用 Chef 配置為 Windows Server 2008 R2 建置 Vagrant .box。我在部落格上講述了我的經歷這裡。正如 Henk 所提到的,您首先需要使用威威模板。我建議使用 windows-2008R2-serverstandard-amd64-winrm 模板。

答案2

在 Windows 上分發 .box 是非法的。但是可以在網站上找到公共/免費盒子Vagrantbox.es

您可以嘗試建立自己的盒子威威。 veewee 的作者在這段影片中展示了他如何建造一個 Windows7 盒子:veewee 做 windows7,所以 Windows Server 2k8可能也有可能,因為 veewee 中提供了可用的範本:

# veewee templates
... snip ...
vagrant basebox define '<boxname>' 'windows-2008R1-serverstandard-amd64'
vagrant basebox define '<boxname>' 'windows-2008R2-amd64'
vagrant basebox define '<boxname>' 'windows-2008R2-serverstandard-amd64'

當然,您還需要 W2k8 DVD 或 ISO 映像。

答案3

在這個 git 儲存庫中你會發現很多 vagrant 配置和文件。也有一些 Windows 機器。我還沒有測試這些——但我被告知它們正在工作(並且 Linux 配置肯定正在工作)。如果你嘗試這些,如果你能提供一些回饋那就太好了。我將來可能也需要它們;)

相關內容