By The Old Toxophilist on Feb 22, 2013
Note: This has been superseded by the Script described in the "Exalogic Virtual Tea Break Snippets – Simplified Exalogic IaaS Cli".
As part of your Exalogic Virtual environment you may want to build vServer that will be used, going forwards, as a template for future vServers. Currently the "Exalogic Elastic Cloud Administrator's Guide" has an appendix describing how this can be achieved using the OVMM interface. Based on internal A-Team work it is now possible to achieve this directly from a compute nodes command-line without accessing OVMM.
As a result of this I have built the script below that will take
the files associated with a "Stopped" vServer and converts them to
For this templating process to work the script will need to be
executed on a machine with access to the /OVS/Repositories/*
directories and this means running directly on one of the Compute
Nodes (I generally run it on Compute Node 1).
Because of the space and resource limitations of the Compute Node
(minimal OS) we will need to create a and mount a Share from the
internal ZFS to save the working files and ultimately the
Template. To this end the script will take a number of parameters
that will specification of these directories. If these are not
specified the script assumes we have the ZFS /export/common/images
mounted on /u01/common/images.
As can been seen from the Usage section below the script only
mandates the Name of the vServer to be copied but assumes that the
user has stopped the vServer previously. Once the template has
been created, or post copy, the vServer can be restarted.