Unable to reinstall a container on localhost in Virtual Servers > VPS > Reinstall - reinstallation is shown as completed, however, the container is not running on the server.
The following message can be found in
CONFIG_TEXT: Opening delta /vz/private/VEID/root.hdd/root.hds
vzctl : CT VEID : Error: Unable to find ostemplate: 1
vzctl : CT VEID : Destroying Container private area: /vz/private/VEID
vzctl : CT VEID : The ploop image /vz/private/VEID/root.hdd has been successfully unregistered
- On attempt to enter this container, the following error occurs:
# vzctl enter 101
enter into CT 101 failed
Unable to open pty: No such file or directory
It is possible to reinstall a newly created VPS using the Client area:
Bug #SVM-1831 that is planned to be fixed in future SolusVM versions.
Until the fix becomes available use the native reinstall tool from command line:
Note: in case container was already reinstalled from SolusVM Admin area - the only solution is to completely remove the contairne and create a new one.
- Connect to the SolusVM Master via SSH
- Stop the container
# vzctl stop CTID
- Re-install OS
# vzctl reinstall <CTID> --ostemplate <template_name>
where <CTID> should be replaced with actual VPS CT ID and <template_name> should be replaced with the template name without ".tar.gz" part.
CTID - 101
template_name - centos-7-x86_64-minimal
# vzctl stop 101
# vzctl reinstall 101 --ostemplate centos-7-x86_64-minimal