You can restart containers from the inside using typical Linux commands, e.g., reboot
or shutdown -r
. Restarting is handled by the vzeventd
daemon.
If necessary, you can forbid restarting containers from the inside as follows:
-
To disable restarting for a specific container, add the
ALLOWREBOOT="no"
line to the container configuration file (/etc/vz/conf/<UUID>.conf
). -
To disable restarting globally for all containers on the server, add the
ALLOWREBOOT="no"
line to the global configuration file (/etc/vz/vz.conf
). -
To disable restarting globally except for specific containers, add the
ALLOWREBOOT="no"
line to the global configuration file (/etc/vz/vz.conf
) and explicitly specifyALLOWREBOOT="yes"
in the configuration files of the respective containers.