echo "=== Sysprep complete. Shutting down for imaging. ===" shutdown -h now
If you’re coming from the Windows world, you know the drill: run sysprep /generalize , shut down, capture the image. It strips away unique identifiers: the SID, computer name, driver caches, and logs. It prepares the OS to be born again on new hardware. linux sysprep
Run it as root, then capture the image from the powered-off VM. When you deploy from this image, pass cloud-init user-data: echo "=== Sysprep complete
Copyright © 2002-2020 CS GROUP. All rights reserved.