/packer-virt-sysprep

Reproduce the functionality of virt-sysprep for use with Packer builds

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Packer-Virt-Sysprep


Scripts to clean and prepare a VM for cloning à la libguestfs's virt-sysprep but from within a running guest.

The intention is to provide virt-sysprep style operations such as log removal, removal of a guests host ssh keys, deletion of custom firewall rules etc for use with automated build tools such as packer.

Currently libguestfs is not available for all host platforms. Additionally virt-sysprep requires that the guest VM be shutdown prior to use.


Please see the packer-virt-sysprep-example repository for example usage and further details.