Hi,
you can simply invoke a systemd poweroff at 2 am via cron, all running containers and virtual machines will be powered off by the corresponding systemd service.
A command could look like
Code:
00 02 * * * /usr/sbin/poweroff
You could also use rtcwake to do the poweroff and specify a date/time for powering the machine on again in an automated manner, see man rtcwake for details about that.