Open autumned opened 9 years ago
Did you experience any issues while building the image (following https://github.com/sutch/image-building-sandbox/wiki/The-Build-Process:-A-Sample-Walk-Through)?
Yes. This:
$ packer build -only=ubuntu-14.04.amd64.virtualbox ubuntu-14.04.json ubuntu-14.04.amd64.virtualbox output will be in this color.
==> ubuntu-14.04.amd64.virtualbox: Downloading or copying Guest additions ubuntu-14.04.amd64.virtualbox: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso ==> ubuntu-14.04.amd64.virtualbox: Downloading or copying ISO ubuntu-14.04.amd64.virtualbox: Downloading or copying: http://releases.ubuntu.com/14.04/ubuntu-14.04.1-server-amd64.iso ==> ubuntu-14.04.amd64.virtualbox: Starting HTTP server on port 8776 ==> ubuntu-14.04.amd64.virtualbox: Creating virtual machine... ==> ubuntu-14.04.amd64.virtualbox: Creating hard drive... ==> ubuntu-14.04.amd64.virtualbox: Creating forwarded port mapping for SSH (host port 2415) ==> ubuntu-14.04.amd64.virtualbox: Starting the virtual machine... ==> ubuntu-14.04.amd64.virtualbox: Waiting 5s for boot... ==> ubuntu-14.04.amd64.virtualbox: Typing the boot command... ==> ubuntu-14.04.amd64.virtualbox: Waiting for SSH to become available... ==> ubuntu-14.04.amd64.virtualbox: Timeout waiting for SSH. ==> ubuntu-14.04.amd64.virtualbox: Unregistering and deleting virtual machine... ==> ubuntu-14.04.amd64.virtualbox: Deleting output directory... Build 'ubuntu-14.04.amd64.virtualbox' errored: Timeout waiting for SSH.
==> Some builds didn't complete successfully and had errors: --> ubuntu-14.04.amd64.virtualbox: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
I recently experienced a similar issue with the latest Ubuntu 12.04.5 release.
Are there Logs in the most recent ~/VirtualBox VMs/packer-ubuntu-14.04.amd64.virtualbox-* folder? If so, please provide any warning and error messages.
What versions of the following are you using?
I will attempt to reproduce.
I can't view a log-file, because VirtualBox halt installation process and delete all vm-files and current vm-machine, when it configure ssh server.
What versions of the following are you using? Mac OS 10.10 VirtualBox 4.3.18 Packer v0.7.2
I just tested a fresh install using those versions without any issues.
Did you notice where Ubuntu installer was in the installation process when the guest OS machine was halted?
It could be that the installation takes longer on your machine. If the Ubuntu installer doesn't have enough time, I suggest adding something like
"ssh_wait_timeout": "600s",
below the "ssh_password"
setting for each builder, or at least for the "name": "ubuntu-14.04.amd64.virtualbox"
builder that you are now creating.
I added ssh_wait_timeout. If you pull the latest changes and test, please let me know whether this change fixes the timeout.
Still same errors: $ packer build -only=ubuntu-14.04.amd64.virtualbox ubuntu-14.04.json [...] ==> ubuntu-14.04.amd64.virtualbox: Waiting for SSH to become available... ==> ubuntu-14.04.amd64.virtualbox: Timeout waiting for SSH. ==> ubuntu-14.04.amd64.virtualbox: Unregistering and deleting virtual machine... ==> ubuntu-14.04.amd64.virtualbox: Deleting output directory... Build 'ubuntu-14.04.amd64.virtualbox' errored: Timeout waiting for SSH.
==> Some builds didn't complete successfully and had errors: --> ubuntu-14.04.amd64.virtualbox: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
And this one:
$ vagrant up
Bringing machine 'gitlab' up with 'virtualbox' provider...
==> gitlab: Box 'gitlab' could not be found. Attempting to find and install...
gitlab: Box Provider: virtualbox
gitlab: Box Version: >= 0
The box '["build/gitlab.virtualbox.box"]' could not be found or
could not be accessed in the remote catalog. If this is a private
box on Vagrant Cloud, please verify you're logged in via
vagrant login
. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://vagrantcloud.com/build/gitlab.virtualbox.box"] Error: The requested URL returned error: 404 Not Found
vagrant up
is expected to fail if packer has not created the image.
During the packer build, VirtualBox's headless mode should be disabled, so you should be able to view the process and see any errors encountered during installation of Ubuntu. Please share any error messages displayed during installation of Ubuntu, as well as how far the installation process progressed before the guest operating system was halted and deleted.
$ vagrant up Bringing machine 'gitlab' up with 'virtualbox' provider... ==> gitlab: Box 'gitlab' could not be found. Attempting to find and install... gitlab: Box Provider: virtualbox gitlab: Box Version: >= 0 The box '["build/gitlab.virtualbox.box"]' could not be found or could not be accessed in the remote catalog. If this is a private box on Vagrant Cloud, please verify you're logged in via
vagrant login
. Also, please double-check the name. The expanded URL and error message are shown below:URL: ["https://vagrantcloud.com/build/gitlab.virtualbox.box"] Error: The requested URL returned error: 404 Not Found