Centos 7 kickstart文件因Unkown命令失败:

问题描述

我想使用带有kickstarter文件的Packer创建虚拟机映像。它每次都会失败,并在第一行Unkown command: to处出现install。你知道为什么吗?

即使我认为问题并非来自template.json,我也会发布模板:

{
  "builders": [
    {
      "cpus": 2,"RAM": 4096,"RAM_reserve_all": true,"datastore": "xxx-lds1","disk_controller_type": "pvscsi","folder": "CG","guest_os_type": "centos7_64Guest","insecure_connection": "true","boot_command": [
    "<tab><wait>"," ks=https://.../ks.cfg<enter>"
 ],"boot_wait": "5s","iso_paths": [
        "[xxx-lds1] iso/CentOS-7-x86_64-Minimal-2003.iso"
      ],"network_adapters": [
        {
          "network": "xxx-VM Network","network_card": "xxx"
        }
      ],"password": "{{user `vcenter_password`}}","ssh_password": "xxx","ssh_username": "xxx","storage": [
        {
          "disk_size": 32768,"disk_thin_provisioned": true
        }
      ],"type": "vsphere-iso","username": "{{user `vcenter_username`}}","vcenter_server": "{{user `vcenter_host`}}","vm_name": "centos7-template","host": "CG/xxx","resource_pool": "Test","datacenter": "XX"
    }
  ],"provisioners": [
    {
      "inline": [
        "ls /"
      ],"type": "shell"
    }
  ]
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)