17 July 2013

XenServer: Clone a Virtual Machine

Source in part: http://support.citrix.com/
VMInstallationGuide.pdf

  1. Create, install, and configure the Windows VM as desired, applying all relevant Service Packs and updates. 
  2.  Install the XenServer drivers. 
  3.  Run C:\Windows\System32\sysprep\sysprep.exe: 
    1. Ensure ‘System Out-of-Box Experience (OOBE)’ is selected 
    2. Tick the ‘Generalize’ option (this resets the SID) 
    3. Select ‘Shutdown’ from the Shutdown Options (shuts down the VM when completes)
  4. In XenCenter, convert the VM into a template by right clicking on it. 
  5. When the cloned VM starts, it will get a new system ID and name, then run a mini-setup to prompt for configuration values as necessary, and finally restart, before being available for use. 
NB: The original, sysprepped VM should not be restarted again after the sysprep stage, and should be converted to a template immediately afterwards to prevent this. If the source VM is restarted, sysprep must be run on it again before it can be safely used to make additional clones.

No comments:

Post a Comment