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:
# vzctl reinstall MyCT
Note
Note: 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.
To keep the personal data from the old container, the utility also copies the old private area contents to the /vz/root/<UUID>/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 vzctl reinstall
command retains user credentials base, unless the --resetpwdb
option is specified.