To update start-up times for OpenVZ containers, you would typically use the vzctl utility. The general syntax is:
```
vzctl set CTID —bootorder XX —save
```
Here, CTID refers to the container ID and XX refers to the boot order you want to set. This order decides the sequence in which the containers will start-up. A lower number means that a container will start earlier during the boot process.
However, OpenVZ containers do not actually measure or record their own boot times. To measure the boot times of OpenVZ containers, you could use external tools or scripts.
You can also create a script that logs the start and end times when a container is starting and use this to calculate the total start-up time. This script can be placed in the appropriate place so that it is invoked automatically when the container starts and stops.
To do this, use the following steps:
1. Create a script that logs the start and end times to a file. Here is a very simple example:
```
#!/bin/bash
echo “$(date) Start of script” >> /var/log/container_boot.log
1. Modify the permissions of the script so that it can be executed:
```
chmod +x /path/to/your/script.sh
```
1. Edit the container’s configuration file to start the script at start-up. This file is usually located at `/etc/vz/conf/CTID.conf`. Add the following line:
```
ONBOOT=“yes“
```
Afterwards, this script will be executed every time the container is started, and it will log the start and end times to the file. You can then use this data to calculate the boot time.