You have to define *all* user variables is the "variables" block.

            "output_directory": "{{user `output_directory`}}",

but:
    "variables" : {
        "ssh_username": "root",
        "ssh_password": "solidfire",
        "headless": "true"
    },

On 27 September 2017 at 23:06, <[email protected]> wrote:

> The original error on the first pass is this (which I've not debugged
> beyond this because multiples runs cause the other error I have been
> debugging):
>
> | Creating Vagrant Box
> |
> | • FLAVOR   :: "minimal"
> | • ISO      :: "work/builds/ember-minimal-dev-0.149-3-g91fb1af-dirty.iso"
> | • OUTPUT   :: "work/builds/ember-minimal-dev-0.149-3-g91fb1af-dirty.box"
> | • VERSION  :: "dev-0.149-3-g91fb1af-dirty"
> |
> +-----------------------------------------------------------
> -------------------------------------------------------------------+
> >> Removing any virtualbox knowledge of previous builds at this version.
> >> Building image and testing installation process
> pwd=/home/mjhammel/src/netapp/bitbucket/ember3/src
> Template validated successfully.
> virtualbox-iso output will be in this color.
>
> ==> virtualbox-iso: Downloading or copying ISO
>     virtualbox-iso: Downloading or copying: file:///home/mjhammel/src/
> netapp/bitbucket/ember3/src/work/builds/ember-minimal-dev-
> 0.149-3-g91fb1af-dirty.iso
> ==> virtualbox-iso: Creating virtual machine...
> ==> virtualbox-iso: Error creating VM: VBoxManage error: VBoxManage:
> error: Runtime error opening '/home/mjhammel/src/netapp/
> bitbucket/ember/src/work/VirtualBox/VirtualBox.xml-tmp' for overwriting:
> -102(File not found.).
> ==> virtualbox-iso: VBoxManage: error: /builddir/build/BUILD/
> VirtualBox-5.1.26/src/VBox/Main/src-server/VirtualBoxImpl.cpp[4276]
> (nsresult VirtualBox::i_saveSettings())
> ==> virtualbox-iso: VBoxManage: error: Details: code NS_ERROR_FAILURE
> (0x80004005), component VirtualBoxWrap, interface IVirtualBox, callee
> nsISupports
> ==> virtualbox-iso: VBoxManage: error: Context: "RegisterMachine(machine)"
> at line 278 of file VBoxManageMisc.cpp
> ==> virtualbox-iso: Step "stepCreateVM" failed, aborting...
> Build 'virtualbox-iso' errored: unexpected EOF
>
> ==> Some builds didn't complete successfully and had errors:
> --> virtualbox-iso: unexpected EOF
>
> ==> Builds finished but no artifacts were created.
>
> >> [UnhandledError pid=18315 cmd=wait ${pid}]
>    :: make-vagrant-box:106 | main
>
> >> [Caught SIGTERM pid=17931 cmd=( unset TMPDIR; cat /dev/null >
> "${WORK}/${flavor}/virtua...]
>    :: make-vagrant-box:1   | main
> make: *** [Makefile:309: 
> work/builds/ember-minimal-dev-0.149-3-g91fb1af-dirty.box]
> Error 1
>
> --
> 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/d32ff681-ef86-4978-b0e8-a24de01f0a76%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/d32ff681-ef86-4978-b0e8-a24de01f0a76%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALz9Rt8SSP5Txd%2B2POnOFx8ypuZbrcONyiNbQLE33Rxpfo2phQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to