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 | #::tar cjf <template-name>.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:
- 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