qemu: Using ssh communicator to connect: 127.0.0.1

336 views
Skip to first unread message

himanshu chourasia

unread,
Jun 28, 2020, 2:26:41 PM6/28/20
to Packer
could anyone please help on this. I am using packer version 1.6.. This issue keeps on coming and the build is deleted after timeout..

Megan Marsh

unread,
Jun 30, 2020, 12:30:28 PM6/30/20
to packe...@googlegroups.com
Set the command line flag --on-error=abort to prevent the cleanup after timeout. Normally this happens because your preseed file is not correctly setting up the ssh server on the vm: https://www.packer.io/guides/automatic-operating-system-installs/preseed_ubuntu

On Sun, Jun 28, 2020 at 11:26 AM himanshu chourasia <himans...@gmail.com> wrote:
could anyone please help on this. I am using packer version 1.6.. This issue keeps on coming and the build is deleted after timeout..

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/05d87aee-d754-475e-95db-e3ed6d2cf9bfo%40googlegroups.com.

himanshu chourasia

unread,
Jul 1, 2020, 7:27:34 AM7/1/20
to Packer
Thanks Megan. This works.
But the qemu process is still running and not killed is there way only to prevent cleanup of output directory..


On Tuesday, June 30, 2020 at 10:00:28 PM UTC+5:30, Megan Marsh wrote:
Set the command line flag --on-error=abort to prevent the cleanup after timeout. Normally this happens because your preseed file is not correctly setting up the ssh server on the vm: https://www.packer.io/guides/automatic-operating-system-installs/preseed_ubuntu

On Sun, Jun 28, 2020 at 11:26 AM himanshu chourasia <himans...@gmail.com> wrote:
could anyone please help on this. I am using packer version 1.6.. This issue keeps on coming and the build is deleted after timeout..

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.

himanshu chourasia

unread,
Jul 1, 2020, 7:29:00 AM7/1/20
to Packer
So when I run the packer it tells the qemu resource is already in use.. I need to kill it manually and then restart.
Thanks...
Reply all
Reply to author
Forward
0 new messages