I am trying to make a template VM using virt-sysprep. The host is CentOS 7, and the guests are CentOS 7 in LVM partitions (not RAW or qcow image files). The guest I'm working with has LUKS full disk encryption, set up at install time. When I run virt-sysprep with -v, I can see that it seems to recognize the basic disk structure in the guest, and it lists what appears to be all entries under /dev. However, it fails with an error:
virt-sysprep: error: no operating systems were found in the guest image
The command I'm trying is:
virt-sysprep -d base1 --hostname basetest.mydomain.com --echo-keys --keys-from-stdin
Has anyone managed to get virt-sysprep to work with a LUKS encrypted guest on LVM?