Novell Cool Solutions

XEN3 domU Clone Utility


September 6, 2006 11:26 am






Download xmclone

This tool has only been tested with SLES10 domU’s on a host SLES10 system.

With the advent of server visualisation; the idea of cloning a base installation is a key component that is current left out of xm command library. Add to that the need to modify the Hostname, MAC Address and IP Address of the network adapters and you are left with a labour intensive and tedious task.

Therefore, I created to do nearly all of the work. does most of the error checking and has some basic intelligence, but because of the limitations of BASH scripting and the complexities that could arise in the XEN configurations, I have made some basic assumptions (which to be honest are based on my current configurations):

  1. The XEN domU configuration files are stored at: /etc/xen/vm
  2. The XEN domU images are stored at: /xen
  3. The XEN domUs are configured using a single NIC which uses the Default Bridge.
  4. And therefore each XEN domU has a single IP address.
  5. The user is an systems administrator and is not TRYING to break it!

(The XEN domU configuration files and image locations can be change by either command line switches or editing the script itself.)

By using ./ –help, you can see all the available parameters. If any of these parameters are missing or incorrect, the script will ask/look for user interaction to correct the values.

A useful switch is the -d switch. It will only copy the configuration and image files without making any modifications to the Hostname, MAC address or IP address. This can be used for complex configurations that a script can not handle.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.