Packer: VirtualBox build fails with NS_ERROR_FAILURE

Created on 20 May 2017  Â·  3Comments  Â·  Source: hashicorp/packer

When running a very simple Packer script for a VirtualBox VM on a CentOS 7.3 system without X11, then VBoxManage fails with an error saying:

VBoxManage error: VBoxManage: error: The virtual machine 'packer-virtualbox-ovf-1495287397' has terminated unexpectedly during startup because of signal 6
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Some Googling seems to indicate it may be related to the lack of X11…

My system:

  • Packer 1.0.0
  • CentOS 7.3/x86_64
  • VirtualBox 5.1.22

See:

buildevirtualbox question

Most helpful comment

Set headless to true.

All 3 comments

Set headless to true.

I changed that, but it's not resolving the issue. Here's the output:

Question: is Packer supposed to support running in a headless environment?

Oops. Never mind. The error changed.

Was this page helpful?
0 / 5 - 0 ratings