ComputeCanada / puppet-magic_castle

Puppet Environment repo for Magic Castle - https://github.com/ComputeCanada/magic_castle
MIT License
11 stars 20 forks source link

Improve prepare4image.sh using virt-sysprep as inspiration source #210

Open cmd-ntrf opened 1 year ago

cmd-ntrf commented 1 year ago

RedHat has a tool named virt-sysprep that can "reset, unconfigure or customize a virtual machine so clones can be made".

It is meant to be executed on shutted down virtual machine and goes to some extents that are not required for MC, but it could be used an inspiration to make sure there is no blind spot left.

Someone has created a similar project for packer : https://github.com/DanHam/packer-virt-sysprep OCaml code of virt-sysprep operations : https://github.com/rwmjones/guestfs-tools/tree/master/sysprep

cmd-ntrf commented 1 year ago

virt-sysprep operations to review for applicability to prepare4image.sh: