Difference between revisions of "Modifying openVZ templates"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>OpenvZ|OpenvZ</yambe:breadcrumb> =Modifying openVZ templates= To modify openVZ template, following steps can be used: #Create a container with base or defau...")
 
m
Line 10: Line 10:
#Create container template using
#Create container template using
#:<pre>
#:<pre>
#::tar czf &lt;template-name&gt;.tar.bz2 *
#::tar cjf &lt;template-name&gt;.tar.bz2 *
#:</pre>
#:</pre>
#Move container template to /vz/private/cache folder
#Move container template to /vz/private/cache folder
#Test new template by creating new container to verify that it is working properly
#Test new template by creating new container to verify that it is working properly
#Optionally delete the container created for modifying template as it is no longer required
#Optionally delete the container created for modifying template as it is no longer required

Revision as of 03:37, 4 January 2014

<yambe:breadcrumb>OpenvZ|OpenvZ</yambe:breadcrumb>

Modifying openVZ templates

To modify openVZ template, following steps can be used:

  1. Create a container with base or default template
  2. Start the container
  3. Make necessary modifications such as installing package, configure service to run on start-up, modify configuration files, create users, etc.
  4. Stop the container
  5. Go to container private folder at '/vz/private/<CTID>'
  6. Create container template using
    tar cjf <template-name>.tar.bz2 *
  7. Move container template to /vz/private/cache folder
  8. Test new template by creating new container to verify that it is working properly
  9. Optionally delete the container created for modifying template as it is no longer required