Modifying openVZ templates
From Notes_Wiki
<yambe:breadcrumb>OpenvZ|OpenvZ</yambe:breadcrumb>
Modifying openVZ templates
To modify openVZ template, following steps can be used:
- Create a container with base or default template
- Start the container
- Make necessary modifications such as installing package, configure service to run on start-up, modify configuration files, create users, etc.
- Stop the container
- Go to container private folder at '/vz/private/<CTID>'
- Create container template using
- tar cjf <template-name>.tar.bz2 *
- Move container template to /vz/private/cache folder
- 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