On Tuesday, September 4, 2018 at 1:58:57 PM UTC+1, Jp Toto wrote: > > 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 > > > -- > JP Toto | [email protected] <javascript:> | http://jptoto.jp > | @jptoto <http://twitter.com/jptoto> >
Thanks for the link, some nice techniques in there. On Tuesday, September 4, 2018 at 7:08:06 PM UTC+1, Rickard von Essen wrote: > > 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. > I guess the real objective I have is to minimize startup time of VMs by reducing the amount of data that needs to be transferred. If the storage of the EBS volumes is related to their contents rather than their capacity, then cleaning them might be worthwhile. I see a quote in the AWS docs that hints at this being the case, but I don't know for sure. Reducing the actual size would have the bonus of being a bit cheaper. https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_EBSbacked_WinAMI.html > Reduce start time by deleting temporary files, defragmenting your hard > drive, and zeroing out free space > -- 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/2a9340a7-ac80-4e6f-9f2d-b7218280dd18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
