我在使用帕克1.3.3版本在vSphere / 6.5的vCenter私有云环境。
在vSphere异打包机脚本越来越向等待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"
}
}