使用Packer制作私有镜像 Template 文件通常使用 JSON 或 HashiCorp Configuration Language (HCL) 格式编写,详细内容请参考:https://developer.hashicorp.com/packer/docs/templates 本示例基于ctyunos-22.06.iso镜像,提供的JSON模板示例文件 ctyunos_example.json 如下: { "variables": { "cpu": "2", "ram": "4096", "name": "ctyunos