{ "builders": [{ "type": "vmware-iso", "guest_os_type": "centos-64", "iso_url": "iso/CentOS-7-x86_64-Minimal-1511.iso", "iso_checksum": "{{user `iso_checksum`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}", "output_directory": "output-centos-7.2-x86_64-{{build_type}}", "vm_name": "packer-centos-7.2-x86_64", "disk_size": "{{user `disk_size`}}", "headless": "{{user `headless`}}", "http_directory": "http", "boot_wait": "5s", "boot_command": [ "<esc>", "<wait>", "linux inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/anaconda-ks.cfg biosdevname=0 net.ifnames=0", "<enter>" ], "ssh_timeout": "{{user `ssh_timeout`}}", "ssh_username": "vagrant", "ssh_password": "vagrant", "tools_upload_flavor": "linux", "shutdown_command": "sudo systemctl poweroff", "remote_type": "esx5", "remote_host": "vmstudio-host", "remote_username": "root", "remote_password": "Aeroscout123", "format": "ova", "vmx_data": { "cpuid.coresPerSocket": "1", "memsize": "{{user `memory`}}", "numvcpus": "{{user `cpus`}}", "ethernet0.networkName": "VM Network", "ethernet0.present": "TRUE" } } ], "provisioners": [{ "type": "shell", "scripts": [ "scripts/centos-7.2/repo.sh", "scripts/centos/virtualbox.sh", "scripts/centos/vmware.sh", "scripts/common/vagrant.sh", "scripts/common/sshd.sh", "scripts/centos-7.2/locale.sh", "scripts/centos-7.2/cleanup.sh", "scripts/common/minimize.sh" ] } ], "variables": { "compression_level": "6", "cpus": "2", "disk_size": "40000", "headless": "false", "iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284", "iso_checksum_type": "sha256", "memory": "4096", "ssh_timeout": "60m" }}
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/7a4a6199-bc2c-422c-9363-9bdd24cb619f%40googlegroups.com.--
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/7a4a6199-bc2c-422c-9363-9bdd24cb619f%40googlegroups.com.--
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.
installlang en_US.UTF-8keyboard ustimezone --utc Etc/UTCrootpw --plaintext vagrantuser --name=vagrant --groups=vagrant --password=vagrant --plaintextauth --useshadow --enablemd5selinux --disabledfirewall --disabledservices --enabled=NetworkManager,sshdeula --agreedignoredisk --only-use=sdareboot
bootloader --location=mbrzerombrclearpart --all --initlabelautopart --type=plain
network --onboot yes --device eth0 --mtu=1500 --bootproto dhcp
%packages --nobase --ignoremissing@core --nodefaults-*-firmware-iprutils-plymouth-avahi%end
%post --erroronfail#yum -y update
cat <<EOF > /etc/sudoers.d/vagrantDefaults:vagrant !requirettyvagrant ALL=(ALL) NOPASSWD: ALLEOFchmod 440 /etc/sudoers.d/vagrant
%endTo unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/7a4a6199-bc2c-422c-9363-9bdd24cb619f%40googlegroups.com.
--Alvaro
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/3c99923b-0850-4fb3-970c-1e524f5f3df1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3c99923b-0850-4fb3-970c-1e524f5f3df1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
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/9d30e834-5fc4-4b09-a88e-d124b7a00400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Also run with the --on-error=ask option for Packer build.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ez5jhkXZEge4Ht3K7HGehUUvySq5er1CpWVH9EehGX_4w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9d30e834-5fc4-4b09-a88e-d124b7a00400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
if rpm -q --whatprovides kernel | grep -Fqv "$(uname -r)"; thenrpm -q --whatprovides kernel | grep -Fv "$(uname -r)" | xargs sudo yum -y autoremovefisudo yum --enablerepo=epel clean allsudo yum history newsudo truncate -c -s 0 /var/log/yum.log
2016/11/27 20:07:48 packer.exe: 2016/11/27 20:07:48 starting remote command: sudo systemctl poweroff2016/11/27 20:07:49 packer.exe: 2016/11/27 20:07:49 Remote command exited without exit status or exit signal.2016/11/27 20:07:49 ui: ==> vmware-iso: Step "StepShutdown" failed==> vmware-iso: Step "StepShutdown" failed2016/11/27 20:07:49 ui: ask: ==> vmware-iso: [c]