Error: ExtraConfig options exists in source (use --allowExtraConfig option to allow this)

590 views
Skip to first unread message

Steven Langlois

unread,
Feb 8, 2018, 2:09:31 PM2/8/18
to Packer
Getting this error when I add "format": "ova" to builders.

ln issue https://github.com/hashicorp/packer/issues/5771, the thread asks for a simple repro case. I am running into 100% of the time when I add "format".

Without format option, the build is successful.

packer.out is attached, debug output.

Here is repro case:

test.json:

{
  "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"
  }
}


zr6.0.aws.cfg is:

# 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
packer.out

Alvaro Miranda Aguilera

unread,
Feb 8, 2018, 6:34:24 PM2/8/18
to packe...@googlegroups.com
hello

can you open a new issue, reference the other one , include all this and add the version of ovftool you are using.

ovftool is failing and suggesting to add 
--allowExtraConfig

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/bfe3f0b4-24bf-4d8b-bb78-1a4145a41909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Steven Langlois

unread,
Feb 12, 2018, 11:05:48 AM2/12/18
to Packer
Reply all
Reply to author
Forward
0 new messages