Packer.io:标记或标记 VMWare 实例(app/inventory 管理)

Packer.io: Tag or Label VMWare instances (app/inventory management)

使用 Packer.io,有没有办法 'tag' 或 'label',类似于 AWS,但使用 VMWare 构建器或 vsphere post-处理器并拥有tag/label 出现在 vSphere 中?

即在构建 vmware 图像时用 'appType=Database' 标记图像,并在加载到 vsphere 后是否在 vsphere 中可见?

谢谢! -D

Packer 不支持 vSphere API,仅在 ESXi 上本地构建,我相信标签是 vSphere 的一项功能,除非它是 vmx 文件的一部分,但我找不到标签的任何引用 here.

您可以通过向 VM 添加标签来验证它是否保存在 vmx 文件中,然后打开 vmx 文件并检查它是否包含您的标签。