Hi,

Thanks, I have taken this from a Github repo:
https://github.com/boxcutter/windows
so was working with what I was given.
What sort of things did you have to change?
Kind regards
Sean.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Rickard von Essen
Sent: 14 September 2016 09:07
To: [email protected]
Subject: Re: [packer] Issue with v0.10.0

I have corrected your json (alot). As always in development you need to start 
smal with something minimal that works and incrementaly add. And always check 
that the json is at least syntactically correct.

{
  "builders": [
    {
      "headless": "true",
      "guest_os_type": "Windows7_64",
      "hard_drive_interface": "sata",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "shutdown_command": "{{ user `shutdown_command`}}",
      "type": "virtualbox-iso",
      "vboxmanage": [
        [
          "modifyvm",
          "{{.Name}}",
          "--memory",
          "2048"
        ],
        [
          "modifyvm",
          "{{.Name}}",
          "--cpus",
          "1"
        ]
      ],
      "vm_name": "eval-win7x64-enterprise",
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant",
      "communicator": "winrm",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ]
    },
    {
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ],
      "guest_os_type": "win-7",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "parallels_tools_flavor": "win",
      "prlctl": [
        [
          "set",
          "{{.Name}}",
          "--memsize",
          "2048"
        ],
        [
          "set",
          "{{.Name}}",
          "--cpus",
          "1"
        ]
      ],
      "shutdown_command": "{{ user `shutdown_command`}}",
      "type": "parallels-iso",
      "vm_name": "eval-win7x64-enterprise",
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant"
    }
  ],
  "post-processors": [
    {
      "compression_level": 1,
      "keep_input_artifact": false,
      "output": "box/{{.Provider}}/eval-win7x64-enterprise-{{user `cm`}}{{user 
`cm_version`}}-{{user `version`}}.box",
      "type": "vagrant",
      "vagrantfile_template": "tpl/vagrantfile-eval-win7x64-enterprise.tpl"
    }
  ],
  "provisioners": [
    {
      "environment_vars": [
        "CM={{user `cm`}}",
        "CM_VERSION={{user `cm_version`}}",
        "UPDATE={{user `update`}}"
      ],
      "scripts": [
        "script/vagrant.bat",
        "script/cmtool.bat",
        "script/vmtool.bat",
        "script/clean.bat",
        "script/ultradefrag.bat",
        "script/uninstall-7zip.bat",
        "script/sdelete.bat"
      ],
      "type": "windows-shell"
    }
  ],
  "variables": {
    "cm": "chef",
    "cm_version": "",
    "disk_size": "40960",
    "iso_checksum": "15ddabafa72071a06d5213b486a02d5b55cb7070",
    "iso_url": 
"http://care.dlservice.microsoft.com/dl/download/evalx/win7/x64/EN/7600.16385.090713-1255_x64fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENXEVAL_EN_DVD.iso";,
    "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
    "update": "true",
    "version": "0.1.0"
  }
}


On 14 September 2016 at 09:49, Sean Farrow 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

My full template is below.
There are multiple of these, so a pointer to what to change would be 
appreciated.
Kind regars
Sean.
{
  "builders": [
    {
      "communicator": "winrm",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ],
"headless": "true",
      "guest_os_type": "windows7-64",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "shutdown_command": "{{ user `shutdown_command`}}",
      "tools_upload_flavor": "windows",
      "type": "vmware-iso",
      "vm_name": "eval-win7x64-enterprise",
      "vmx_data": {
        "cpuid.coresPerSocket": "1",
        "memsize": "2048",
        "numvcpus": "1"
      },
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant"
    },
    {
      "communicator": "winrm",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/oracle-cert.cer",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ],
"headless": "true",
      "guest_os_type": "Windows7_64",
      "hard_drive_interface": "sata",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "shutdown_command": "{{ user `shutdown_command`}}",
      "type": "virtualbox-iso",
      "vboxmanage": [
        [
          "modifyvm",
          "{{.Name}}",
          "--memory",
          "2048"
        ],
        [
          "modifyvm",
          "{{.Name}}",
          "--cpus",
          "1"
        ]
      ],
      "vm_name": "eval-win7x64-enterprise",
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant"
    },
    {
      "communicator": "winrm",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ],
"headless": "true",
      "guest_os_type": "win-7",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "parallels_tools_flavor": "win",
      "prlctl": [
        [
          "set",
          "{{.Name}}",
          "--memsize",
          "2048"
        ],
        [
          "set",
          "{{.Name}}",
          "--cpus",
          "1"
        ]
      ],
      "shutdown_command": "{{ user `shutdown_command`}}",
      "type": "parallels-iso",
      "vm_name": "eval-win7x64-enterprise",
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant"
    }
  ],
  "post-processors": [
    {
      "compression_level": 1,
      "keep_input_artifact": false,
      "output": "box/{{.Provider}}/eval-win7x64-enterprise-{{user `cm`}}{{user 
`cm_version`}}-{{user `version`}}.box",
      "type": "vagrant",
      "vagrantfile_template": "tpl/vagrantfile-eval-win7x64-enterprise.tpl"
    }
  ],
  "provisioners": [
    {
      "environment_vars": [
        "CM={{user `cm`}}",
        "CM_VERSION={{user `cm_version`}}",
        "UPDATE={{user `update`}}"
      ],
      "scripts": [
        "script/vagrant.bat",
        "script/cmtool.bat",
        "script/vmtool.bat",
        "script/clean.bat",
        "script/ultradefrag.bat",
        "script/uninstall-7zip.bat",
        "script/sdelete.bat"
      ],
      "type": "windows-shell"
    }
  ],
  "variables": {
    "cm": "chef",
    "cm_version": "",
    "disk_size": "40960",
    "iso_checksum": "15ddabafa72071a06d5213b486a02d5b55cb7070",
    "iso_url": 
"http://care.dlservice.microsoft.com/dl/download/evalx/win7/x64/EN/7600.16385.090713-1255_x64fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENXEVAL_EN_DVD.iso";,
    "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
    "update": "true",
    "version": "0.1.0"
  }
}

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Alvaro Miranda Aguilera
Sent: 14 September 2016 08:09
To: [email protected]<mailto:[email protected]>
Subject: Re: [packer] Issue with v0.10.0

can you share a gist of your template as is?

the headless should be inside the builder block, ie inside virtualbox-iso

On Wed, Sep 14, 2016 at 4:31 AM, Sean Farrow 
<[email protected]<mailto:[email protected]>> wrote:
                Hi all,

When trying to build/validate a template with 0.10.0, I get an unknown 
configuration key “headless” error.
My communicator/builder is below for reference.
This used to work with earlier versions, so I wonder what I’m doing 
wrong/what’s changed?
My template is:
    {
      "communicator": "winrm",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "floppy/00-run-all-scripts.cmd",
        "floppy/01-install-wget.cmd",
        "floppy/_download.cmd",
        "floppy/_packer_config.cmd",
        "floppy/disablewinupdate.bat",
        "floppy/fixnetwork.ps1",
        "floppy/install-winrm.cmd",
        "floppy/networkprompt.bat",
        "floppy/passwordchange.bat",
        "floppy/powerconfig.bat",
        "floppy/upgrade-wua.bat",
        "floppy/win7x64-enterprise/Autounattend.xml",
        "floppy/zz-start-sshd.cmd"
      ],
"headless": "true",
      "guest_os_type": "windows7-64",
      "iso_checksum": "{{ user `iso_checksum` }}",
      "iso_checksum_type": "sha1",
      "iso_url": "{{ user `iso_url` }}",
      "shutdown_command": "{{ user `shutdown_command`}}",
      "tools_upload_flavor": "windows",
      "type": "vmware-iso",
      "vm_name": "eval-win7x64-enterprise",
      "vmx_data": {
        "cpuid.coresPerSocket": "1",
        "memsize": "2048",
        "numvcpus": "1"
      },
      "winrm_password": "vagrant",
      "winrm_timeout": "10000s",
      "winrm_username": "vagrant"
    },
I have removed the builders array declaration for brevity.
Any help appreciated.
Kind regards
Sean.

--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/VI1PR0201MB2013E83C6430F36BB8C8987A83F10%40VI1PR0201MB2013.eurprd02.prod.outlook.com<https://groups.google.com/d/msgid/packer-tool/VI1PR0201MB2013E83C6430F36BB8C8987A83F10%40VI1PR0201MB2013.eurprd02.prod.outlook.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro
(+31)103400555<tel:%28%2B31%29103400555>
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ezLRZegGJ%2Bb1QB3Ng-56n%3Dju%2BkXGU3-m_dA4A7yZVC_XQ%40mail.gmail.com<https://groups.google.com/d/msgid/packer-tool/CAHqq0ezLRZegGJ%2Bb1QB3Ng-56n%3Dju%2BkXGU3-m_dA4A7yZVC_XQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/VI1PR0201MB2013F1389601E813DFCB207183F10%40VI1PR0201MB2013.eurprd02.prod.outlook.com<https://groups.google.com/d/msgid/packer-tool/VI1PR0201MB2013F1389601E813DFCB207183F10%40VI1PR0201MB2013.eurprd02.prod.outlook.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt-2%3DE7KZjgbhJw4AQ%3DRG6aga3e%2BqgVS4M93sVeJ1%3D9H6A%40mail.gmail.com<https://groups.google.com/d/msgid/packer-tool/CALz9Rt-2%3DE7KZjgbhJw4AQ%3DRG6aga3e%2BqgVS4M93sVeJ1%3D9H6A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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/VI1PR0201MB20134028ACF69E9EE0D305E983F10%40VI1PR0201MB2013.eurprd02.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to