virtualbox-iso: Timeout waiting for SSH

1,102 views
Skip to first unread message

Ritwik Pandav

unread,
Jun 20, 2017, 5:50:31 AM6/20/17
to Packer
Hi,

I'm running packer version 1.0.0 and am getting the following output:

virtualbox-iso output will be in this color.

==> virtualbox-iso: Cannot find "Default Guest Additions ISO" in vboxmanage output (or it is empty)
==> virtualbox-iso: Downloading or copying Guest additions checksums
    virtualbox-iso: Downloading or copying: http://download.virtualbox.org/virtualbox/5.0.40/SHA256SUMS
==> virtualbox-iso: Downloading or copying Guest additions
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: file:///root/twix/devops_packer/ubuntu-16.04.1-desktop-amd64.iso
==> virtualbox-iso: Starting HTTP server on port 8192
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4365)
==> virtualbox-iso: Executing custom VBoxManage commands...
    virtualbox-iso: Executing: modifyvm ubuntu-16.04.1-desktop-amd64 --memory 1024
    virtualbox-iso: Executing: modifyvm ubuntu-16.04.1-desktop-amd64 --cpus 1
==> virtualbox-iso: Starting the virtual machine...
    virtualbox-iso: The VM will be run headless, without a GUI. If you want to
    virtualbox-iso: view the screen of the VM, connect via VRDP without a password to
    virtualbox-iso: rdp://127.0.0.1:5911
==> virtualbox-iso: Waiting 15s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Timeout waiting for SSH.
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Timeout waiting for SSH.

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

==> Builds finished but no artifacts were created.


I'm attaching all concerned files (except for the Ubunutu ISo "ubuntu-16.04.1-desktop-amd64.iso"). 

Any help with this would be appreciated.

Thanks,
Ritwik
application.sh
application-server.json
cleanup.sh
update.sh
virtualbox.sh

Alvaro Miranda Aguilera

unread,
Jun 20, 2017, 9:45:57 AM6/20/17
to packe...@googlegroups.com
Hello

Is good to start with an existing project that works, and do small changes.

Did you copy this and was using server image?

desktop iso doesn't have all the required configuration to perform a silent install.

You should be able to set headless = false and see where its failing.

My advice: get a server image installed, and just add the ubuntu-desktop package that will enable the graphical part.

More info for this I would assume will be available on canonical/ubuntu
ie:

Alvaro.

--
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/9727a97d-ba3f-4483-89ee-d972b8ecedb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Ritwik Pandav

unread,
Jun 21, 2017, 6:04:28 AM6/21/17
to packe...@googlegroups.com
Thanks for the suggestion!

I tried running it with a server iso, and got the same result.

Please check the log output and the new json file.

Is there a simpler way of doing this? I just need a basic OS which can run a python application with some dependent libraries.

Thanks in advance!

Ritwik

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/sDQDkYhJRyM/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAHqq0ezE%2BTLafQOyEtWOfJtg9skspmi1Ng-NN8kK-uRq4cO-iQ%40mail.gmail.com.
packerLog.txt
application-server.json

Rickard von Essen

unread,
Jun 21, 2017, 6:23:21 AM6/21/17
to packe...@googlegroups.com
Start with something that works. For example https://github.com/chef/bento and adapt it to your needs in small steps. 

Gabo Kete

unread,
Jun 22, 2017, 4:18:24 AM6/22/17
to Packer
You might probably be overcomplicating the approach by using packer for what you are after.. I carefully looked at your scripts and what you are after, and instead of using Packer, which you can use this for many other powerful things, I'd recommend to run your application in a container.. you create a Dockerfile to achieve your approach and manage it within the container

and you can still manage the container through packer 

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



--
Alvaro

--
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 a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/sDQDkYhJRyM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.

Tushar Batra

unread,
Apr 21, 2018, 6:42:49 AM4/21/18
to Packer
Hi,

I have executed the following command :-
"packer build -only=virtualbox-iso application-server.json"

and I am getting the output :-

virtualbox-iso output will be in this color.

==> virtualbox-iso: exit status 1
==> virtualbox-iso: Downloading or copying Guest additions checksums
    virtualbox-iso: Downloading or copying: http://download.virtualbox.org/virtualbox/5.2.8/SHA256SUMS
==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Found already downloaded, initial checksum matched, no download needed: http://download.virtualbox.org/virtualbox/5.2.8/VBoxGuestAdditions_5.2.8.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Found already downloaded, initial checksum matched, no download needed: http://releases.ubuntu.com/trusty/ubuntu-14.04.5-server-amd64.iso
==> virtualbox-iso: Starting HTTP server on port 8031
==> virtualbox-iso: Error configuring VirtualBox to suppress messages: VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox object!
==> virtualbox-iso: VBoxManage.exe: error: Completely failed to instantiate CLSID_VirtualBox: CO_E_SERVER_EXEC_FAILURE
==> virtualbox-iso: VBoxManage.exe: error: Details: code CO_E_SERVER_EXEC_FAILURE (0x80080005), component VirtualBoxClientWrap, interface IVirtualBoxClient
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error configuring VirtualBox to suppress messages: VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Completely failed to instantiate CLSID_VirtualBox: CO_E_SERVER_EXEC_FAILURE
VBoxManage.exe: error: Details: code CO_E_SERVER_EXEC_FAILURE (0x80080005), component VirtualBoxClientWrap, interface IVirtualBoxClient

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error configuring VirtualBox to suppress messages: VBoxManage error: VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Completely failed to instantiate CLSID_VirtualBox: CO_E_SERVER_EXEC_FAILURE
VBoxManage.exe: error: Details: code CO_E_SERVER_EXEC_FAILURE (0x80080005), component VirtualBoxClientWrap, interface IVirtualBoxClient

==> Builds finished but no artifacts were created.

Any help regarding this would be appreciated.

Thanks & Regards,
Tushar Batra

preseed.cfg
application-server.json

Alvaro Miranda Aguilera

unread,
Apr 23, 2018, 3:41:04 AM4/23/18
to packe...@googlegroups.com
error is coming from VirtualBox, try to create and boot a VM using the same iso

that may give you more information

--
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/583c4a24-eaf9-438e-ba74-76727512e337%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages