Getting this error when I add "format": "ova" to builders.
Without format option, the build is successful.
packer.out is attached, debug output.
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"keep_registered": "true",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "centos-64",
"http_directory": "http",
"iso_url": "/tmp/CentOS-7-x86_64-Minimal-1708.iso",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"output_directory": "{{user `output_dir`}}",
"format": "ova",
"shutdown_command": "/sbin/halt -h -p",
"ssh_password": "xxxxxxxx",
"ssh_port": 22,
"ssh_username": "root",
"remote_host": "emtesx",
"remote_username": "root",
"remote_password": "xxxxxxxxx.",
"remote_type": "esx5",
"remote_datastore": "Datastore2",
"vnc_port_min": "5900",
"vnc_port_max": "5911",
"vnc_bind_address": "0.0.0.0",
"vnc_disable_password": "true",
"ssh_wait_timeout": "10000s",
"type": "vmware-iso",
"headless": "true",
"vm_name": "{{ user `template` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}",
"floppy0.present": "false",
"ethernet0.present": "true",
"ethernet0.startConnected": "true",
"ethernet0.connectionType": "custom",
"ethernet0.virtualDev": "e1000",
"ethernet0.networkName": "VM Network"
}
}
],
"variables": {
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "32768",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "bba314624956961a2ea31dd460cd860a77911c1e0a56e4820a12b9c5dad363f5",
"iso_checksum_type": "sha256",
"iso_name": "Centos-7.4-Minimal",
"ks_path": "centos-7.4/zr6.0.aws.cfg",
"memory": "1024",
"no_proxy": "{{env `no_proxy`}}",
"template": "ZoneRanger",
"output_dir": "ZoneRanger"
}
}
# This is the ZoneRanger 6.0 kickstart configuration file
# Logs for this script can be found in /var/log/anaconda
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5 --passalgo=sha512
# Use text mode install
text
# Firewall configuration
firewall --disabled
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Root password
rootpw --iscrypted
xxxxxxxxxxx
# SELinux configuration
selinux --disabled
# Install OS instead of upgrade
install
# Set kickstart ip
network --device=ens32 --bootproto=dhcp
cdrom
# System timezone
timezone America/New_York --isUtc --
# System bootloader configuration
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part /boot --fstype ext4 --size=512 --asprimary
part pv.2 --size=0 --grow
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=2048 --grow --maxsize=4096
skipx
reboot
# Centos packages to install
%packages --nobase
@core
%end