-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature] - Smaller snapshot size #107
Comments
This is something that could be addressed by zeroing out the unused space on the volume with a shell provisioner in your packer setup |
Hi @ddymko ! The remark on snapshot is with regards to a newly spun up instance (by packer) -- how could the virtual disk grow to the full 25 GB by running a handful of scripts? Do you have any automated recipe for zeroing out unused space? In order to use zerofree, you need to reboot into a read-only |
You could have a shell provisioner run something such as
|
Is your feature request related to a problem? Please describe.
Taking a snapshot of an instance with a 25 GB disk yields a 25 GB snapshot even if only a fraction of the disk is being used -- which results in:
Describe the solution you'd like
That
packer-builder-vultr
would yield smaller snapshot images.Describe alternatives you've considered
Not using packer: moving our shell scripts to provisioning stage after instance spin up.
The text was updated successfully, but these errors were encountered: