BigAl / solaris-packer

Packer files for Solaris Base Boxes
25 stars 7 forks source link

Add headless option #4

Open ehershey opened 9 years ago

ehershey commented 9 years ago

I had to add this headless option to run packer without a GUI running on my build machine. Do you think this would be a sane default since it will work in either case and people can turn it off if they want to display the GUI?

Here's the error I got without it:

[ernie@eaharch1 solaris-packer[master*]]$ packer build --only=virtualbox-iso solaris10.json virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions virtualbox-iso: Downloading or copying: file:///usr/lib/virtualbox/additions/VBoxGuestAdditions.iso ==> virtualbox-iso: Downloading or copying ISO virtualbox-iso: Downloading or copying: file:///home/ernie/sol-10-u11-ga-x86-dvd.iso ==> virtualbox-iso: Creating virtual machine... ==> virtualbox-iso: Creating hard drive... ==> virtualbox-iso: Creating forwarded port mapping for SSH (host port 3027) ==> virtualbox-iso: Executing custom VBoxManage commands... virtualbox-iso: Executing: modifyvm packer-solaris-10 --memory 1536 virtualbox-iso: Executing: modifyvm packer-solaris-10 --cpus 1 ==> virtualbox-iso: Starting the virtual machine... ==> virtualbox-iso: Error starting VM: VBoxManage error: ==> virtualbox-iso: Unregistering and deleting virtual machine... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: Error starting VM: VBoxManage error:

==> Some builds didn't complete successfully and had errors: --> virtualbox-iso: Error starting VM: VBoxManage error:

==> Builds finished but no artifacts were created. [ernie@eaharch1 solaris-packer[master*]]$