This issue appears on packer build: virtualbox-ovf: Timeout waiting for SSH
-
packer version 1.3.1
-
host platform: circleci machine running circleci/classic:latest
-
guest image: ubuntu server 18 64 packaged as .ova
-
debug log (includes instructions)
packer-debug.txt
<https://github.com/hashicorp/packer/files/2480136/packer-debug.txt>
-
template.json
{
"variables": {
"SSH_PASSWORD": "{{env `UBUNTU_PASSWORD`}}"
},
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "file:///home/circleci/bin/ubuntu-server-18.ova",
"ssh_username": "myuser",
"ssh_password": "{{user `SSH_PASSWORD`}}",
"ssh_timeout": "10m",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}
],
"provisioners": [
{
"type": "shell",
"script": "packer/setup.sh" // a hello world script
}
]
}
--
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/179c35b4-c8da-4544-8fcc-d7c33949900b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/bash -eo pipefail
sh packer/packer-build.sh
build.sh
/home/circleci/project
+ set -e
+ PACKER_LOG=1
+ packer build -debug /home/circleci/project/packer/template.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-ovf output will be in this color.
==> virtualbox-ovf: Pausing after run of step 'StepOutputDir'. Press enter to
continue. ==> virtualbox-ovf: Pausing after run of step 'StepSuppressMessages'.
Press enter to continue. ==> virtualbox-ovf: Pausing after run of step
'StepCreateFloppy'. Press enter to continue. ==> virtualbox-ovf: Pausing after
run of step 'StepHTTPServer'. Press enter to continue. ==> virtualbox-ovf:
Retrieving Guest additions
virtualbox-ovf: Using file in-place:
file:///usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-ovf: Pausing after run of step 'StepDownloadGuestAdditions'.
Press enter to continue. ==> virtualbox-ovf: Retrieving OVF/OVA
virtualbox-ovf: Using file in-place:
file:///home/circleci/bin/ubuntu-server-18-proxy.ova
==> virtualbox-ovf: Pausing after run of step 'StepDownload'. Press enter to
continue. ==> virtualbox-ovf: Importing VM:
/home/circleci/bin/ubuntu-server-18-proxy.ova
==> virtualbox-ovf: Pausing after run of step 'StepImport'. Press enter to
continue. ==> virtualbox-ovf: Pausing after run of step
'StepAttachGuestAdditions'. Press enter to continue. ==> virtualbox-ovf:
Pausing after run of step 'StepConfigureVRDP'. Press enter to continue. ==>
virtualbox-ovf: Pausing after run of step 'StepAttachFloppy'. Press enter to
continue. ==> virtualbox-ovf: Creating forwarded port mapping for communicator
(SSH, WinRM, etc) (host port 3528)
==> virtualbox-ovf: Pausing after run of step 'StepForwardSSH'. Press enter to
continue. ==> virtualbox-ovf: Pausing after run of step 'StepVBoxManage'. Press
enter to continue. ==> virtualbox-ovf: Starting the virtual machine...
==> virtualbox-ovf: Pausing after run of step 'StepRun'. Press enter to
continue. ==> virtualbox-ovf: Waiting 10s for boot...
==> virtualbox-ovf: Typing the boot command...
==> virtualbox-ovf: Pausing after run of step 'boot_command: '. Press enter to
continue. ==> virtualbox-ovf: Pausing after run of step 'StepTypeBootCommand'.
Press enter to continue. ==> virtualbox-ovf: Using ssh communicator to connect:
127.0.0.1
==> virtualbox-ovf: Waiting for SSH to become available...
==> virtualbox-ovf: Timeout waiting for SSH.
==> virtualbox-ovf: Pausing before cleanup of step 'StepTypeBootCommand'. Press
enter to continue. ==> virtualbox-ovf: Pausing before cleanup of step
'StepRun'. Press enter to continue. ==> virtualbox-ovf: Pausing before cleanup
of step 'StepVBoxManage'. Press enter to continue. ==> virtualbox-ovf: Pausing
before cleanup of step 'StepForwardSSH'. Press enter to continue. ==>
virtualbox-ovf: Pausing before cleanup of step 'StepAttachFloppy'. Press enter
to continue. ==> virtualbox-ovf: Pausing before cleanup of step
'StepConfigureVRDP'. Press enter to continue. ==> virtualbox-ovf: Pausing
before cleanup of step 'StepAttachGuestAdditions'. Press enter to continue. ==>
virtualbox-ovf: Pausing before cleanup of step 'StepImport'. Press enter to
continue. ==> virtualbox-ovf: Deregistering and deleting imported VM...
==> virtualbox-ovf: Pausing before cleanup of step 'StepDownload'. Press enter
to continue. ==> virtualbox-ovf: Pausing before cleanup of step
'StepDownloadGuestAdditions'. Press enter to continue. ==> virtualbox-ovf:
Pausing before cleanup of step 'StepHTTPServer'. Press enter to continue. ==>
virtualbox-ovf: Pausing before cleanup of step 'StepCreateFloppy'. Press enter
to continue. ==> virtualbox-ovf: Pausing before cleanup of step
'StepSuppressMessages'. Press enter to continue. ==> virtualbox-ovf: Pausing
before cleanup of step 'StepOutputDir'. Press enter to continue. ==>
virtualbox-ovf: Deleting output directory...
Build 'virtualbox-ovf' errored: Timeout waiting for SSH.
==> Some builds didn't complete successfully and had errors:
--> virtualbox-ovf: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
Exited with code 1