The root password of an OpenVZ container can be changed through the following steps:
First, identify the ID of the OpenVZ container you want to update the root password on. You can do this by running the command:
```
vzlist -a
```
This command will show a list of all the containers and their IDs.
Once you have the ID, change the container’s root password by running the sudo passwd command followed by the container ID:
```
vzctl set
```
Replace `
For example:
```
vzctl set 101 —userpasswd root:MyNewPassword —save
```
This will set the root password of the container with the ID 101 to “MyNewPassword”. You should receive a message confirming that the password was changed successfully.
Then, restart your container with the command:
```
vzctl restart
```
Replace `