View Packer errors


This post originally appeared on the Annexe.

Building a Packer image (how’s that name for terrible Google juice):

==> qemu: Error launching VM: Qemu failed to start. Please run with logs to get more info.

So how do we run with logs? From Debugging Packer:

Packer has detailed logs which can be enabled by setting the PACKER_LOG environmental variable to any value

So in that case:

export PACKER_LOG=1

You can also define a logfile instead:

export PACKER_LOG_PATH="/var/log/packer"

Author bio and support


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person in bios. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.