packer plugin qemu handshake failed

Asked by Akash

When I am trying to build image from packer maas, after the build command "PACKER_LOG=1 packer build -var kernel=linux-image-5.15.0-136-generic -var customize_script=scripts/tata/test-phase1.sh -var customize_script2=scripts/tata/test-phase2.sh -var ubuntu_series=jammy -only='cloudimg.*' . it shows "packer plugin qemu handshake failed" and attempting ssh handshake again and again. Do anyone faced this challenge, can somone explain the root cause for this

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu packer Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Yeah seeing a lot of "eventually it's ok"
https://discourse.maas.io/t/how-to-build-ubuntu-images/7873

Revision history for this message
Akash (akashram611) said (last edit ):
#3

Thanks actionparsnip, that solved my question. Actually we need to wait for a the vm to boot so the ssh handshake can be accomplished. It took around 3 to 5 mins for the vm to come up and getting ssh handshake to complete.