Re: Create a Template from Existing Container [message #44525 is a reply to message #44478] |
Mon, 12 December 2011 20:45 |
mustardman
Messages: 91 Registered: October 2009
|
Member |
|
|
I got the following information from the bottom of this procedure .
http://www.powerpbx.org/content/rhel-openvz-template-install -guide
From command line on the actual node.
Create a variable for the OpenVZ container which in this example is 110.
CTID=110
Alternatively you can substitute "$CTID" with the actual CTID in the following commands.
Stop the container by typing vzctl stop $CTID.
Make sure you are in the /vz/private/$CTID folder.
cd /vz/private/$CTID
Finally, package up the new template by typing:
tar -czvf /vz/template/cache/centos-5-<ARCH>-<DISTRO>.tar.gz ./
"centos-5" can also be "centos-6" or "scientificlinux-6" or ? OpenVZ expects the format "OS + "-" + "version".
<ARCH> is also mandatory and MUST be one of the following:
i386, x86, x86_64
<DISTRO> can be whatever you want it to be.
The template is ready for use.
[Updated on: Mon, 12 December 2011 20:50] Report message to a moderator
|
|
|