Hey there could be a workaround <http://blog.ivanilves.com/2016/packer-wait-dont-kill-vm/> for a shell provisioner, I have no idea about other provisioners though. :-/
On Monday, May 26, 2014 at 6:55:51 AM UTC+3, Kyle Passarelli wrote: > > I think that the 'keep-input-artifact' only comes into play during post > processing: it will keep the provisioned virtual machine around after > pre-processing (say, to a Vagrant box). > > The -debug flag is probably what's doing the trick. I'll start using it. > > k > > On Tuesday, 4 February 2014 01:12:25 UTC-6, Prasanna Santhanam wrote: >> >> On Mon, Feb 03, 2014 at 09:58:57PM -0800, chris snow wrote: >> > When packer encounters an error during setting up a box, it seems to >> rewind >> > and delete the box in ~/VirtualBox\ VMs/vm-name/ >> > >> > Is there a configuration option to prevent this folder being deleted? >> I >> > would like to keep the folder so that I can view the log files. >> > >> > Many thanks, >> > >> > Chris >> >> I think you can do this using the "keep_input_artifact" arg in your >> post-processor. Documented in >> http://www.packer.io/docs/templates/post-processors.html >> <http://www.google.com/url?q=http%3A%2F%2Fwww.packer.io%2Fdocs%2Ftemplates%2Fpost-processors.html&sa=D&sntz=1&usg=AFQjCNGPNn6bqdcy4-Ds_7mjB5JEMelDsQ> >> >> >> Usually I use the build's debug mode to login and fix issues while >> developing the recipe. >> >> -- >> Prasanna., >> >> ------------------------ >> Powered by BigRock.com >> >> -- 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/4268b35d-199f-4f15-90d4-1b8826369662%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
