From 97aeaa86d0e311853534de10367e821445cc655d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 24 Jul 2012 13:41:43 +0100 Subject: [PATCH] todo: More suggestions for virt-sysprep (thanks Kazuo Moriwaka). --- TODO | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/TODO b/TODO index 362a79e19..a2dd74f30 100644 --- a/TODO +++ b/TODO @@ -397,6 +397,25 @@ virt-sysprep ideas - remove or modify UUIDs in /etc/fstab (eg. on Ubuntu) (thanks Joshua Daniel Franklin) +Kazuo Moriwaka adds: + + - /etc/machine-id (created by systemd) + - "yum clean all" (or the equivalent) to remove yum caches + - lvm PV and VG have its UUID. 'pvchange -u' and 'vgchange -u' generate + new UUID (causes trouble with clustered LVM). + - ABRT have crash report and core dumps under /var/spool/abrt. This can + be deleted. + - swap devices (both of block device and file) should be wiped. This may + good for security purpose, and size. I found virt-sparsify can clear + swap partition. + - --script is nice. Defining default sysprep script directory + like /usr/lib/guestfs/sysprep-scripts.d/ may be useful to integrate + other package maintainer(or ISV)'s effort. + - To achieve better (or crazy) coverage, a simple examination will be + help: + Install the same kickstart into VM twice, and diff the trees. + Many autogenerated IDs and configs can be found :) + As well as 'virt-sysprep' there is a case for a 'virt-customize' tool which can customize templated guests. This would be useful within companies/organizations that want to offer multiple guests, but all