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:
See:
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.
Most helpful comment
Set
headless
totrue
.