Упаковщик vsphere-iso 502 прокси ошибка при ожидании IP - PullRequest
0 голосов
/ 02 февраля 2019

Я нахожусь в среде частного облака vSphere / vCenter 6.5 с использованием Packer версии 1.3.3.

Сценарий упаковщика vsphere-iso переходит в фазу Ожидание IP при создании образа Ubuntu 18.04, но через несколько минут завершается ошибкой со следующей ошибкой.

Build 'vsphere-iso' errored: 502 Proxy Error

Есть идеи, что может быть причиной этого?К сожалению, я не вижу никакой дополнительной информации о журналах, которая могла бы дать мне место для поиска.

Ниже приведена распечатка журналов.https://gist.github.com/spstratis/b286519455d79a68c2ae7d863a83bfa9

А вот мой скрипт упаковщика со скрытыми конфиденциальными значениями.

{
  "builders": [
    {
      "type": "vsphere-iso",

      "vcenter_server": "{{user `vsphere_domain`}}",
      "username": "{{user `vsphere_user`}}",
      "password": "{{user `vsphere_pass`}}",
      "insecure_connection": "false",

      "vm_name": "newyu_ubuntu1804",
      "cluster":"Cluster1",
      "host":"{{user `vsphere_host`}}",
      "guest_os_type": "ubuntu64Guest",

      "datastore": "pcc-005044",
      "network": "VM Network",      
      "convert_to_template": "true",
      "folder":"Newyu",

      "ssh_username": "dev",
      "ssh_password": "dev",

      "CPUs": 1,
      "RAM": 1024,
      "RAM_reserve_all": true,

      "disk_size": 32768,
      "disk_thin_provisioned": false,

      "network_card": "vmxnet3",

      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_checksum_type": "{{user `iso_checksum_type`}}",
      "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
      "http_directory": "http",
      "boot_command": [
        "<esc><wait>",
        "<esc><wait>",
        "<enter><wait>",
        "/install/vmlinuz<wait>",
        " auto<wait>",
        " console-setup/ask_detect=false<wait>",
        " console-setup/layoutcode=us<wait>",
        " console-setup/modelcode=pc105<wait>",
        " debconf/frontend=noninteractive<wait>",
        " debian-installer=en_US.UTF-8<wait>",
        " fb=false<wait>",
        " initrd=/install/initrd.gz<wait>",
        " kbd-chooser/method=us<wait>",
        " keyboard-configuration/layout=USA<wait>",
        " keyboard-configuration/variant=USA<wait>",
        " locale=en_US.UTF-8<wait>",
        " netcfg/get_domain=vm<wait>",
        " netcfg/get_hostname=ubuntubase<wait>",
        " grub-installer/bootdev=/dev/sda<wait>",
        " noapic<wait>",
        " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
        " -- <wait>",
        "<enter><wait>"
      ]
    }
  ],
  "variables": {
    "cpus": "1",
    "disk_size": "65536",
    "headless": "true",
    "iso_checksum": "a5b0ea5918f850124f3d72ef4b85bda82f0fcd02ec721be19c1a6952791c8ee8",
    "iso_checksum_type": "sha256",
    "iso_name": "ubuntu-18.04.1-server-amd64.iso",
    "memory": "1024",
    "mirror": "http://cdimage.ubuntu.com",
    "mirror_directory": "ubuntu/releases/18.04.1/release",
    "name": "ubuntu-18.04",
    "preseed_path": "preseed.cfg",
    "template": "ubuntu-18.04-amd64",

    "vsphere_ip": "x.x.x.x",
    "vsphere_host": "x.x.x.x",
    "vsphere_domain": "pcc-x-x-x-x.ovh.com",
    "vsphere_user": "admin",
    "vsphere_pass": "<password>",
    "vsphere_datacenter": "datacenter-41",
    "vsphere_cluster": "domain-c46",
    "vsphere_datastore": "pcc-005044",
    "vsphere_network": "VM Network"
  }
}
...