There is an option to specify the shutdown command <https://www.packer.io/docs/builders/virtualbox-iso.html#shutdown_command> and shutdown timeout <https://www.packer.io/docs/builders/virtualbox-iso.html#shutdown_timeout>.
Here is what I think can work - 1. Create a ".bat" file, specify to run it in shutdown command and keep the file empty. I haven't tried it by keeping it empty but I guess it should work. 2. Increase shutdown timeout to something that works for you. On Tue, Jun 25, 2019 at 10:21 PM Shubham Bansal <[email protected]> wrote: > While my script is running packer finds it to be complete because the cmd > closes. Which then cause the machine shutdown command to be executed. Is > there any way to either delay the shutdown or prevent it completely? > > -- > 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/174dd08e-9699-4144-8f94-81edb3ae33f5%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/174dd08e-9699-4144-8f94-81edb3ae33f5%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/CACjz45ee%2B3%3DMFt5d-y%3D3-_2C8kibe9h1kFa7CGvPNc3uS0stGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
