如何使Packer生成的OVA文件与vCenter一起使用?

发布于 2025-01-28 09:20:28 字数 780 浏览 3 评论 0 原文

我使用Packer构建了一个OVA文件。我正在使用 virtualbox-iso 构建器,

source "virtualbox-iso" "test" {
.
.
.
}

但是当我尝试在 vcenter 中导入OVA时,它给了我以下错误:

使用选定模板检测到的问题。详细信息:-1 value_illegal: [VirtualBox-2.2]之间没有支持的硬件版本;支持: [VMX-04,VMX-07,VMX-08,VMX-09,VMX-10,VMX-10,VMX-11,VMX-12,VMX-12,VMX-13, VMX-14,VMX-15,VMX-16,VMX-17,VMX-18,VMX-19]。

看起来这是一个常见的问题。我发现了一些与此有关的文档。他们中的大多数都在谈论使用外部工具像OVFTool一样修复此操作,然后在OVA软件包中编辑OVF XML文件。

是否有任何包装器配置可以解决此问题?

I built an ova file using packer. I am using virtualbox-iso builder

source "virtualbox-iso" "test" {
.
.
.
}

But when I try to import the ova in vcenter, it gives me the following error:

Issues detected with selected template. Details: - -1 VALUE_ILLEGAL:
No supported hardware versions among [virtualbox-2.2]; supported:
[vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13,
vmx-14, vmx-15, vmx-16, vmx-17, vmx-18, vmx-19].

looks like this is a common problem. I found a few docs related to this. Most of them are talking about using external tools to fix this like OVFTOOL and then to edit the OVF XML file in the OVA package.

https://tutorials.technology/tutorials/How-to-create-a-vmware-OVA-from-a-virtualbox-ova.html

Is there any packer configuration that fixes this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鸢与 2025-02-04 09:20:29

我也遇到了这个。没有包装器配置可以解决此问题。

您可以尝试导入VMware Workstation Pro - 它会抱怨,但会让您导入。您可能需要在之后修复网络。

然后,您应该能够将VM移至ESXI。

I ran into this too. There is no packer configuration that will fix this.

You can try importing into VMWare Workstation Pro -- it'll complain but will let you import. You may need to fix the networking after.

Then you should be able to move the VM to ESXi.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文