parallels-iso Timeout waiting for SSH error comes

278 views
Skip to first unread message

dp

unread,
Nov 3, 2016, 7:07:14 AM11/3/16
to Packer
Hi getting error when executing below JSON file

error; "Paralles-iso Timeout waiting for SSH" 

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",
 "parallels_tools_mode": "disable",

     "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"
   }
 ]
}



debug log: 



Debug mode enabled. Builds will not be parallelized.
parallels-iso output will be in this color.

==> parallels-iso: Pausing after run of step 'StepPrepareParallelsTools'. Press enter to continue. 
==> parallels-iso: Downloading or copying ISO
    parallels-iso: Downloading or copying: file:///Users/ldk-qa/Desktop/en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso
==> parallels-iso: Pausing after run of step 'StepDownload'. Press enter to continue. 
==> parallels-iso: Pausing after run of step 'StepOutputDir'. Press enter to continue. 
==> parallels-iso: Creating floppy disk...
    parallels-iso: Copying files flatly from floppy_files
    parallels-iso: Copying file: ./packer-windows/answer_files/7/Autounattend.xml
    parallels-iso: Copying file: ./packer-windows/scripts/microsoft-updates.bat
    parallels-iso: Copying file: ./packer-windows/scripts/win-updates.ps1
    parallels-iso: Copying file: ./packer-windows/scripts/openssh.ps1
    parallels-iso: Done copying files from floppy_files
    parallels-iso: Collecting paths from floppy_dirs
    parallels-iso: Resulting paths from floppy_dirs : []
    parallels-iso: Done copying paths from floppy_dirs
==> parallels-iso: Pausing after run of step 'StepCreateFloppy'. Press enter to continue. 
==> parallels-iso: Pausing after run of step 'StepHTTPServer'. Press enter to continue. 
==> parallels-iso: Creating virtual machine...
==> parallels-iso: Applying default settings...
==> parallels-iso: Pausing after run of step 'stepCreateVM'. Press enter to continue. 
==> parallels-iso: Creating hard drive...
==> parallels-iso: Pausing after run of step 'stepCreateDisk'. Press enter to continue. 
==> parallels-iso: Setting the boot order...
==> parallels-iso: Pausing after run of step 'stepSetBootOrder'. Press enter to continue. 
==> parallels-iso: Attaching ISO to the default CD/DVD ROM device...
==> parallels-iso: Pausing after run of step 'stepAttachISO'. Press enter to continue. 
==> parallels-iso: Pausing after run of step 'StepAttachParallelsTools'. Press enter to continue. 
==> parallels-iso: Deleting any current floppy disk...
==> parallels-iso: Attaching floppy disk...
==> parallels-iso: Pausing after run of step 'StepAttachFloppy'. Press enter to continue. 
==> 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: Pausing after run of step 'StepPrlctl'. Press enter to continue. 
==> parallels-iso: Starting the virtual machine...
==> parallels-iso: Waiting 2m0s for boot...
==> parallels-iso: Pausing after run of step 'StepRun'. Press enter to continue. 
==> parallels-iso: Host IP for the Parallels machine: 192.168.3.15
==> parallels-iso: Typing the boot command...
==> parallels-iso: Pausing after run of step 'StepTypeBootCommand'. Press enter to continue. 
==> parallels-iso: Waiting for SSH to become available...
==> parallels-iso: Timeout waiting for SSH.
==> parallels-iso: Pausing before cleanup of step 'StepTypeBootCommand'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepRun'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepPrlctl'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepAttachFloppy'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepAttachParallelsTools'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'stepAttachISO'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'stepSetBootOrder'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'stepCreateDisk'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'stepCreateVM'. Press enter to continue. 
==> parallels-iso: Unregistering virtual machine...
==> parallels-iso: Pausing before cleanup of step 'StepHTTPServer'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepCreateFloppy'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepOutputDir'. Press enter to continue. 
==> parallels-iso: Deleting output directory...
==> parallels-iso: Pausing before cleanup of step 'StepDownload'. Press enter to continue. 
==> parallels-iso: Pausing before cleanup of step 'StepPrepareParallelsTools'. Press enter to continue. 
Build 'parallels-iso' errored: Timeout waiting for SSH.

==> Some builds didn't complete successfully and had errors:
--> parallels-iso: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.
LDK-QAs-MacBook-Pro:Packer_pro ldk-qa$ 


Rickard von Essen

unread,
Nov 3, 2016, 8:26:23 AM11/3/16
to packe...@googlegroups.com
Run with -on-error=ask, wait for ssh to timeout. Bring up the UI login open up a console and trouble shoot. Verify that network is ok, OpenSSH is running, that u/p vagrant/vagrant is correct. Test if you manually can ssh into the VM.

--
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/ee27832b-b0b0-4e65-a1c2-6e602265af6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dp

unread,
Nov 7, 2016, 2:02:25 AM11/7/16
to Packer
Hi,

as SSH is not configured on VM machine so it's not connecting through SSH.

i think this is because of openssh.ps1 is not executing on VM machinne(version windows 7)

please assist how to proceed.
 do i need to update JSON file.

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

dp

unread,
Nov 9, 2016, 4:45:56 AM11/9/16
to Packer
Hi Rickard,

have you get chance to look into the behaivor that why ssh does not install on machine.

Rickard von Essen

unread,
Nov 9, 2016, 6:06:31 AM11/9/16
to packe...@googlegroups.com
No. Do your Autounattend.xml actually run openssh.ps1 ? I'm very busy with other things and you haven't provided your scripts so it's impossible for anyone to say why this doesn't work for you.

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/46b3b128-2f94-4ed3-9bcc-4bf596946812%40googlegroups.com.

dp

unread,
Nov 14, 2016, 10:15:02 PM11/14/16
to Packer
openssl script was commented in autounattend.xml, after uncommenting line openssl installed succesfully.

thanks for your assistance. 

Regards
Dhiraj
Reply all
Reply to author
Forward
0 new messages