To automatically start an OpenVZ container on system startup, you can follow these steps:
1. First, find the CTID (Container ID) by running the command:
```
vzlist
```
It will list all the existing containers with their CTID.
1. Start the container at boot by using the command:
```
vzctl set CTID —onboot yes —save
```
Replace “CTID” with the ID of your container. This command will set the container to automatically start at boot.
1. Reboot your OpenVZ host to test the settings.
Please note that you must have root privileges to execute the above commands.