hello, the files look good, as you are on windows, try to run dos2unix on
them to ensure the end of line is correct for unix/linux

did you try to run bento/centos7 as is ?

is usually good practice to run code as is before doing changes to test
they work

thanks
alvaro

On Mon, Aug 15, 2016 at 8:11 PM, Balu Kompalli <[email protected]>
wrote:

> Is there any error in this file, because while installing, it gives the
> below warning/RuntimeError.  Please find the Attachment.
>
>
>
>> This is my  *Centos7.json* file.
>>
>
> {
>   "variables": {
>     "ssh_name": "packer",
>     "ssh_pass": "packer"
>   },
>   "builders": [
>
>       {
>       "type": "vmware-iso",
>       "boot_command": [
>         "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort
> }}/ks.cfg<enter><wait>"
>       ],
>       "boot_wait": "10s",
>       "disk_size": 40520,
>       "guest_os_type": "centos-64",
>       "http_directory": "http",
>       "iso_url": "http://mirrors.liquidweb.com/
> CentOS/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
>     "iso_checksum_type": "sha256",
>     "iso_checksum" : "f90e4d28fa377669b2db16cbcb451f
> cb9a89d2460e3645993e30e137ac37d284",
>
>      "ssh_username": "{{user `ssh_name`}}",
>      "ssh_password" : "{{user `ssh_pass`}}",
>       "ssh_port": 22,
>       "ssh_wait_timeout": "10000s",
>       "shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh;
> echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
>       "tools_upload_flavor": "linux",
>       "vmx_data": {
>         "memsize": "512",
>         "numvcpus": "1",
>         "cpuid.coresPerSocket": "1"
>       }
>     }
>   ],
>    "provisioners": [
>   {
> "type": "shell",
>       "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
>       "override":
>  {
> "vmware-iso":
> {
> "scripts": [
> "scripts/packages.sh"
> ]
> }
> }
> }
> ],
>  "post-processors": [
>     {
>       "type": "vagrant",
>       "override":
>  {
>              "vmware":
> {
>           "output": "centos-7-1-x64-vmware.box"
>          }
>       }
>     }
>   ]
>  }
> ----------------
>
> *ks.cfg*
>
>
>
>
>
>
>
> *installcdromlang en_US.UTF-8keyboard usnetwork --onboot yes --device eth0
> --bootproto dhcp --noipv6rootpw --plaintext vagrantfirewall --enabled
> --service=sshauthconfig --enableshadow --passalgo=sha256selinux
> --disabledtimezone Asia/Tokyobootloader --location=mbr --driveorder=sda
> --append="crashkernel=auto rhgb quiet"textskipxzerombrclearpart --all
> --initlabelautopartauth  --useshadow  --enablemd5firstboot
> --disabledreboot%packages
> --ignoremissing@corebzip2kernel-develkernel-headers-ipw2100-firmware-ipw2200-firmware-ivtv-firmware%end%post/usr/bin/yum
> -y install sudo/usr/sbin/groupadd -g 501 vagrant/usr/sbin/useradd vagrant
> -u 501 -g vagrant -G wheelecho "vagrant"|passwd --stdin vagrantecho
> "vagrant        ALL=(ALL)       NOPASSWD: ALL" >>
> /etc/sudoers.d/vagrantecho "Defaults:vagrant !requiretty"
> >> /etc/sudoers.d/vagrantchmod 0440 /etc/sudoers.d/vagrant%end*
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/92803e30-76be-4a96-8ce6-2d7a5c9d5e3f%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/92803e30-76be-4a96-8ce6-2d7a5c9d5e3f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro
(+31)103400555

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0eyfJsycC6w-Z%2BbNyPCsqcUdjbXsQOtztS-tMeiizx%2BnNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to