Reinstalling Containers
Reinstalling a Container may help if any required Container files have been inadvertently modified, replaced, or deleted, resulting in Container malfunction. You can reinstall a Container by using the prlctl reinstall command that creates a new Container private area from scratch according to its configuration file and relevant OS and application templates. For example:
# prlctl reinstall 101
Notes:
1. If any of the Container application templates cannot be added to the Container in a normal way, reinstallation will fail. This may happen, for example, if an application template was added to the Container using the --force option of the vzpkgadd or vzpkg install command (for more information on these commands, see the Virtuozzo 6 Command Line Reference Guide).
2. Currently, the reinstall command may not be supported by the prlctl utility. Use vzctl instead.
To keep the personal data from the old Container, the utility also copies the old private area contents to the /vz/root/< CT_ID >/old directory of the new private area (unless the --skipbackup option is given). This directory may be deleted after you copy the personal data where you need.
The prlctl reinstall command retains user credentials base, unless the --resetpwdb option is specified.
|