[CentOS] KVM clone

Sat Feb 8 17:58:35 UTC 2020
cpolish at surewest.net <cpolish at surewest.net>

On 2020-02-07 20:14, Leon Fauster via CentOS wrote:
> Am 07.02.20 um 17:43 schrieb Leroy Tennison:
> > Yes, have done it a few times.  If you need it to have a different IP address/name/license then bring up a new definition without a NIC, login via virt-manager.  For the IP address, search the registry for the current IP address and change the appropriate entries.  Use standard Windows utilities to change the description/name.  For the license, search for "Product" and select "View your Product ID", in that dialog there should be an option to change the product key.  Once done add the same NIC as the other definition had and restart.  This has worked all but once for me.  The one time it didn't, Windows discerned a network problem (IP address) and provided a way to fix it.
> I remember that for a cloned win system the SID should be also changed.
> https://en.wikipedia.org/wiki/Security_Identifier

I have successfully cloned many versions of Windows OS, then
booted the clone and changed static IP using Network Connections
widget -> Change Adaptor Settings, without incident, where my
intent is never to run both systems at the same time. Not clear
to me what circumstance would warrent editing the registry to
obtain this result, but everything has a good use case I
suppose? 

For completeness, as OP might know, Microsoft provides the
'sysprep' utility to prepare a system for cloning. In RHEL6 / C6
and more recent, Linux guests can be similarly prepared with
'virt-sysprep'.

-- 
Charles Polisher