xenclone vm-source vm-new NewIPAddress
Creates a new SLES10 DomU (VM) from an existing SLES10 DomU (VM), the new VM will be cloned from the old VM, but given a new host name, mac address and ipaddress. Thus you can create several "unique" servers from one installed SLES10 VM.
Once finished the new DomU (VM) should boot without any additional configuration.
Note -- Currently works with a single NIC, and basic bridge setup.
Tested with cloning a SLES10 VM, where the VM was created from the SLES10 YaST Virtual Machine Management module. This script will be successful where the source VM has a static ipaddress and using traditional networking with ifup (IE not Network Manager). When finished the new DomU (VM) should appear in the YaST Virtual Machine Management screen with the other existing VMs.
Before using don't forget to give appropriate rights
chmod 755 xenclone