Packer crash!

Asked by Akash

Packer is getting crashed while building an image, leaving the message:

"2025/04/15 17:28:41 ConfigSpec failed: connection is shut down
panic: ConfigSpec failed: connection is shut down [recovered]
        panic: ConfigSpec failed: connection is shut down"

!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Packer crashed! This is always indicative of a bug within Packer.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Packer[1] so that we can fix this.

[1]: https://github.com/hashicorp/packer/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If anybody has experienced this before or know the fix, pls do leave a reply.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu packer Edit question
Assignee:
No assignee Edit question
Solved by:
Akash
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which Ubuntu release and which version of package are you running?
What is the output that you receive for the commands
uname -a
lsb_release -crid
apt policy packer
packer version

In any case, the message that you receive tells, that you should create an issue document on github.

Revision history for this message
Akash (akashram611) said :
#2

Reduced the ram which is specified for the qemu vm, initially i gave as 4GB then i reduced to 2GB..the reason may be my actual host is not supporting for 4GB of memory, for qemu vm.