snf-image-creator is a simple command-line tool for creating OS images. The original media the image is created from, can be a block device, a regular file that represents a hard disk or the host system itself.
snf-image-creator works on snapshots. Any changes made by the program do not affect the original media.
During the image creation, a number of system preparation operations are applied on the media snapshot. Some of those are OS specific. snf-image-creator will use heuristics to detect the OS and determine which operations to apply. Those operations will:
- Shrink the image
- Clear out sensitive user data (passwords, ssh keys, history files, etc.)
- Prepare the guest OS for being deployed on a virtual environment (change device names, remove persistent net rules, etc.)