Closed kvaps closed 4 years ago
Do not forget /etc/machine-id. Some OS uses the contents of /etc/machine-id to determine the DHCP unique identifier (duid) that is used for DHCP requests.
Extending the use-case:
For inspiration, we can follow the naming and implementation of some operations of virt-sysprep
(see virt-sysprep --list-operations
).
Hi @kvaps
it was implemented in onesysprep tool in the master - can you check it out https://github.com/OpenNebula/addon-context-linux/pull/214?
The tool is in: src/usr/sbin/onesysprep
Thanks
I think it would be nice to provide single cleanup script, for remove all sensitive information from the images after preparation.
I leave there a few examples that can go in there.
Linux
Clean package cache:
Remove root password
Remove network configuration
Remove DNS configuration
Clear bash/ash history:
Remove host ssh keys:
Something else?
Windows
Clean opennebula-contextulization logs: