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: https://packages.ubuntu.com/xenial/ubuntu-desktop Alvaro. On Tue, Jun 20, 2017 at 11:50 AM, Ritwik Pandav <[email protected]> wrote: > 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: http://download.virtualbox. > org/virtualbox/5.0.40/VBoxGuestAdditions_5.0.40.iso > ==> 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 > > -- > 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/9727a97d-ba3f-4483-89ee-d972b8ecedb7%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/9727a97d-ba3f-4483-89ee-d972b8ecedb7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezE%2BTLafQOyEtWOfJtg9skspmi1Ng-NN8kK-uRq4cO-iQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
