### Repairing Container

The repair operation is used to recover a Container (for example, if a Container fails to start). A Container can be brought to the Repairing status from the Stopped status only. A Container in Repairing status can be only brought in Stopped status again or Destroyed. All the other operations are not available in this case, so you have the file access only.

When Container passes in the Repairing state, the special temporal Container with the same hostname as the broken one is being created. The private area (containing private, non-shared data) of the broken Container is being mounted to the special /repair directory in the temporal Container.

To bring a Container in the repair mode:

1. Select Service Director - Virtuozzo Manager - Container.
2. Select the Container to repair: check the checkbox at the Container you want to repair.
3. Click the Repair button at the Action bar located at the bottom of the screen. The operation starts. At the very bottom of the screen you can see the Status Bar. You can click on the Show link at the Status Bar to see the system messages and view the operation progress in real-time. You can refresh the screen to see the actual Container status.

You can access the Container in the Repairing state in the two ways: via the end-user tool - the Control Panel and via ssh.

To access the Container in the Repairing state via the Parallels Business Automation - Standard Control Panel

1. Select Service Director - Virtuozzo Manager - Container.
2. Click on the Container ID or hostname. The Container properties appear on the screen.
3. Select the General Settings tab. The Container general settings appear on the screen.
4. Click the Login To CP button. The Control Panel window opens.
5. In the Control Panel click the System tab. Select File Manager. The list of Container directories and files appears on the screen.
6. Recover Container data.

To access a Container in the Repairing state via ssh:

1. Select Service Director - Virtuozzo Manager - Container.
2. Click on the Container ID or hostname. The Container properties appear on the screen.
3. Select the General Settings tab. The Container general settings appear on the screen.
4. Click the Edit button. The screen reloads with the Container general settings for editing.
5. Reset the Container root password: type and retype the Container root password.
6. Click the Update button.
7. In the command line, type: `ssh root@VE_IP_address`. Replace the with the actual IP address you want to enter.
8. When prompted, type the password you set for the user root.
9. As soon as you log in, change the working directory into the `/repair`.You entered the broken Container.
10. Recover Container data.

To start a Container from the repairing mode:

1. Select Service Director - Virtuozzo Manager - Container.
2. Select the repairing Container: check the checkbox at the Container you want to start.
3. Click the Stop button at the Action bar located at the bottom of the screen. The operation starts. You can refresh the screen to see whether the Container status had changed into Stopped.
4. Select the Container again: check the checkbox at the Container you want to start.
5. Click the Start button.

Please send us your feedback on this help page