There is something fishy going on here. With this template:

{
   "builders" : [
      {
         "boot_wait" : "2m",
         "prlctl" : [
            [
               "set",
               "{{.Name}}",
               "--memsize",
               "1024"
            ],
            [
               "set",
               "{{.Name}}",
               "--cpus",
               "2"
            ]
         ],
         "iso_checksum" : "",
         "iso_checksum_type": "none",
         "type" : "parallels-iso",
         "ssh_wait_timeout" : "5m",
         "ssh_username" : "vagrant",
         "ssh_password" : "vagrant",
         "shutdown_command" : "shutdown /s /t 10 /f /d p:4:1 /c \"Packer
Shutdown\"",
         "parallels_tools_flavor" : "win",
         "guest_os_type" : "win-7",
         "iso_url" : "/tmp/NetBSD-7.0.2-amd64.iso"
      }
   ]
}

Everything runs fine.

$ packer build template.json
parallels-iso output will be in this color.

Warnings for build 'parallels-iso':

* A checksum type of 'none' was specified. Since ISO files are so big,
a checksum is highly recommended.

==> parallels-iso: Downloading or copying ISO
    parallels-iso: Downloading or copying:
file:///tmp/NetBSD-7.0.2-amd64.iso
==> parallels-iso: Creating virtual machine...
==> parallels-iso: Applying default settings...
==> parallels-iso: Creating hard drive...
==> parallels-iso: Setting the boot order...
==> parallels-iso: Attaching ISO to the default CD/DVD ROM device...
==> parallels-iso: Executing custom prlctl commands...
    parallels-iso: Executing: prlctl set packer-parallels-iso --memsize 1024
    parallels-iso: Executing: prlctl set packer-parallels-iso --cpus 2
==> parallels-iso: Starting the virtual machine...
^C==> parallels-iso: Waiting 2m0s for boot...
^C==> parallels-iso: Unregistering virtual machine...
==> parallels-iso: Deleting output directory...
Build 'parallels-iso' errored: Build was cancelled.
Cleanly cancelled builds after being interrupted.


Can you save the above template and run:
touch /tmp/NetBSD-7.0.2-amd64.iso
packer version
PACKER_LOG=1 packer build template.json

and attache the output.

On 4 November 2016 at 05:37, dp <[email protected]> wrote:

> Hi,
>
> validate command is executed successfully but build command returns error.
>
> find attached files contains output of commands.
>
>
>
> On Thursday, 3 November 2016 17:02:06 UTC+5:30, Rickard von Essen wrote:
>>
>> Whats your output of: PACKER_LOG=1 packer validate template.json
>>
>> On 3 November 2016 at 11:05, dp <[email protected]> wrote:
>>
>>> Hi
>>>
>>> i am using below JSON file and its giving me error
>>>
>>> Build 'parallels-iso' errored: Couldn't find Parallels Tools for the
>>> 'win' flavor! Please, check the
>>> value of 'parallels_tools_flavor'. Valid flavors are: 'win', 'lin',
>>> 'mac', 'os2' and 'other'
>>>
>>> how to resolve it.
>>>
>>>
>>> JSON File
>>>
>>> {
>>> "builders": [
>>>    {
>>> "type": "parallels-iso",
>>>  "iso_url": "/Users/ldk-qa/Desktop/en_windows_7_enterprise_with_sp1_x64_
>>> dvd_u_677651.iso",
>>>      "iso_checksum_type": "md5",
>>>      "iso_checksum": "6467c3875955df4514395f0afcaaa62a",
>>>      "boot_wait": "2m",
>>>      "ssh_username": "vagrant",
>>>      "ssh_password": "vagrant",
>>>      "ssh_wait_timeout": "5m",
>>>  "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer
>>> Shutdown\"",
>>>      "guest_os_type": "win-7",
>>>      "parallels_tools_flavor": "win",
>>>
>>>      "prlctl": [
>>>        ["set", "{{.Name}}", "--memsize", "1024"],
>>>        ["set", "{{.Name}}", "--cpus", "2"]
>>>       ],
>>>      "floppy_files": [
>>>        "./packer-windows/answer_files/7/Autounattend.xml",
>>>        "./packer-windows/scripts/microsoft-updates.bat",
>>>        "./packer-windows/scripts/win-updates.ps1",
>>>        "./packer-windows/scripts/openssh.ps1"
>>>      ]
>>>    }
>>> ],
>>> "post-processors": [
>>>    {
>>>      "type": "vagrant",
>>>      "keep_input_artifact": false,
>>>      "output": "windows_7{{.Provider}}.box",
>>>      "vagrantfile_template": "vagrantfile-windows_7.template"
>>>    }
>>>  ]
>>> }
>>>
>>>
>>> --
>>> 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/ms
>>> gid/packer-tool/a6fdb81f-e07b-4ed9-9d51-b856c62f0be2%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/a6fdb81f-e07b-4ed9-9d51-b856c62f0be2%40googlegroups.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/e4772d7c-7c2d-476c-8658-a87331c145b6%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/e4772d7c-7c2d-476c-8658-a87331c145b6%40googlegroups.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/CALz9Rt_jELB_%2B2SbR_aRtZy7z64rRGp8Ta7w5kjhLA5fnyutMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to