--
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/dd269a9f-b5c5-45e3-9974-34955035b2c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-5u%3D0Ko4PUDFqxzdZqwQ0c4YXmhLVr_Mtac4uU4NO5bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAAYNrX-2a0eUCWSZ5%2B%2BHeJBdWcoo6CKVCj%3Dmw_bPad-q_2gaHA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9WFBfzXhVBd1zy4mhVhWbw9%2BiMvYHZunbfnu-XT-coLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Matt Wrock has done a lot of work on this for Windows. https://github.com/mwrock/packer-templates He's got some great Powershell scripts he runs to help reduce the size of his Windows images. I haven't tried these specifically using the amazon-ebs builder but the idea is the same. Specifically he's got a provisioner script he runs that removes a bunch of features, cleans out logs and caches, and zeroes out the rest of the empty disk https://github.com/mwrock/packer-templates/blob/master/scripts/provision.ps1
--
Matt's work is splendid, but be sure to understand which things applies to AWS. For example zeroing the disk doesn't do anything on an EBS volume, that is only useful when you want to shrink the size of the file you distribute for a thin provisioning disk.
Reduce start time by deleting temporary files, defragmenting your hard drive, and zeroing out free space