Created
June 12, 2019 08:06
-
-
Save fukawi2/099f23673c0d6a3cbdb510358a76fdd3 to your computer and use it in GitHub Desktop.
seal a redhat vm for deployment/conversion to template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Sealing_Virtual_Machines_in_Preparation_for_Deployment_as_Templates.html | |
touch /.unconfigured | |
yum clean all | |
rm -rf /etc/ssh/ssh_host_* | |
rm -rf /etc/udev/rules.d/70-* | |
sed -e '/HWADDR=/d' -i /etc/sysconfig/network-scripts/ifcfg-* | |
find /var/log -type f -delete | |
history -c | |
shutdown -h now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment