parallels-iso could not find Parallels Tools for the win flavored

39 views
Skip to first unread message

dp

unread,
Nov 3, 2016, 6:05:23 AM11/3/16
to Packer
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"
   }
 ]
}


Rickard von Essen

unread,
Nov 3, 2016, 7:32:06 AM11/3/16
to packe...@googlegroups.com
Whats your output of: PACKER_LOG=1 packer validate template.json

--
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/a6fdb81f-e07b-4ed9-9d51-b856c62f0be2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dp

unread,
Nov 4, 2016, 12:37:52 AM11/4/16
to Packer
Hi,

validate command is executed successfully but build command returns error.

find attached files contains output of commands.

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
build_command_output.txt
validate_command_output.txt

Rickard von Essen

unread,
Nov 4, 2016, 4:39:36 AM11/4/16
to packe...@googlegroups.com
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.

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/e4772d7c-7c2d-476c-8658-a87331c145b6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages