Modifying openVZ templates

From Notes_Wiki
Revision as of 03:37, 4 January 2014 by Saurabh (talk | contribs)

<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