You need to use the VM console to troubleshoot your network. Run with
-on-error=ask and you will get infinite time to it.

On Thu, Aug 15, 2019, 16:29 Nelson Ramirez <nelson.rami...@block.one> wrote:

> I keep running into a timeout error on a builder with two shell
> provisioners on parallels pvm.
>
> The first provisioner takes some time to complete and it seems that the
> next provisioner tries to start before the fist one is done, resulting in
> this timeout
>
>
>
> Build 'parallels-pvm' errored: Error uploading script: dial tcp 10.211.
> 55.5:22: i/o timeout
>
>
> I've tried updating the timeouts but that seems to have no effect.. Any
> ideas on how to deal with that timeout?
> I will move the second provisioner into its own builder if i can't make
> the timeout settings work.
> Thanks.
>
> Here's what the builder looks like.
>
> {
>   "variables": {
>     "path":
> "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/Users/macosx-builder/.fastlane/bin"
> ,
>     "home": "{{env `HOME`}}"
>     },
>
>   "builders": [
>
>   {
>     "type": "parallels-pvm",
>     "parallels_tools_flavor": "mac",
>     "source_path": "{{user
> `home`}}/Desktop/builds/file-build/file-image.pvm",
>     "ssh_username": "macosx-builder",
>     "ssh_password": "Deploy!",
>     "ssh_agent_auth":"true",
>     "ssh_wait_timeout": "30m",
>     "ssh_read_write_timeout":"30m",
>     "ssh_keep_alive_interval":"10s",
>     "ssh_timeout": "30m",
>     "output_directory":"{{user `home`}}/Desktop/builds/tools-build",
>     "vm_name":"tools-image"
>   }
>   ],
>   "provisioners": [
>
>
>     {
>       "type": "shell",
>       "execute_command": "bash -c '{{ .Vars }} {{ .Path }}'",
>       "scripts": ["./files/scripts/non-sudo-setup.sh"],
>       "expect_disconnect": true,
>       "timeout": "30m",
>       "skip_clean" : true,
>       "environment_vars": [
>         "PATH={{ user `path` }}"
>   ]
>     },
>     {
>       "type": "shell",
>       "execute_command": "echo 'Deploy!' | sudo -S bash -c '{{ .Vars }}
> {{ .Path }}'",
>       "pause_before": "60s",
>       "timeout": "30m",
>       "scripts": ["./files/scripts/macosx-setup.sh"],
>       "skip_clean" : false,
>       "environment_vars": [
>         "PATH={{ user `path` }}"
>   ]
>     }
>   ]
> }
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/4fdad0b5-ef86-40a4-9b4b-0ba7fd0c8cc5%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/4fdad0b5-ef86-40a4-9b4b-0ba7fd0c8cc5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_FLeLyJbk8YiNUjH4oqt_LXLgSo3H6kCWE%2BNzmS%3D-RLQ%40mail.gmail.com.

Reply via email to