failed while creating image in GCP

20 views
Skip to first unread message

Farrukh Fareed

unread,
Apr 29, 2020, 4:14:20 AM4/29/20
to Packer

I have use packer for creating GCP images , there i used preemptive instances for cost saving most of the time it failed to create image giving errors like below:
==> googlecompute: dial tcp x.x.x.x:22: i/o timeout
or
==> googlecompute: Error creating instance: 1 error(s) occurred:
==> googlecompute:
==> googlecompute: * Instance failed to start due to preemption.
Build 'googlecompute' errored: Error creating instance: 1 error(s) occurred:

Instance failed to start due to preemption.

i am using
Packer version: 1.3
Builder: GCP
Provisioner: Ansible
GCP Region: us-east4

Please help me out here

Rickard von Essen

unread,
Apr 29, 2020, 8:37:27 AM4/29/20
to packe...@googlegroups.com
It seems like it was preempted.

"Instance failed to start due to preemption."
--
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/mitchellh/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/9b7ca226-ab1d-4d42-b830-7ce0562a80ed%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages