Packer can't make a snapshot from a volume, use the cli for that. Packer was built to reproducible create images from code. A volume of a running instance makes the starting state undefined.
On Mon, Feb 11, 2019, 23:12 <[email protected] wrote: > Is it possible to create snapshots from a volume in packer? I want to > remove a volume from a stopped instance, snapshot it, and then mount an > empty volume to the stopped instance and start it again. > > On Friday, February 8, 2019 at 2:41:30 PM UTC-8, [email protected] wrote: >> >> I am using packer to create a bunch of images. I want to be able to >> launch an instance from an image and swap out its root volume to create >> another image. So I was thinking about stopping the instance and >> "snapshotting" the new root volume to create an image. I'd like to >> accomplish this using packer. Is there a way to create snapshots using >> packer? Is there a recommended approach to accomplishing this? Thanks! >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/5b5bd53e-fe17-449c-9031-456866a37445%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/5b5bd53e-fe17-449c-9031-456866a37445%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt81vZwGu5rFj6w2oNRiyFOgswG-1GG0DegOAq_3kXMQhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
