Timed on/off machine solution and on/off machine Solution
Managed servers
Esxi 6 2, windows 2012 2
The Wi-Fi switch is used in a unified manner. esxi6 sets SSH auto-start, VM is set to switch with host, and HYPERV sets VM auto-start.
Set windows scheduled task and shutdown
Use C # SHARPSSH to write a small program, connect to esxi through SSH to execute the/sbin/poweroff command, set windows scheduled tasks, and regularly execute this program to shut down ESXI
As a result, the server is shut down, and the VM is also shut down as the host is closed (the VM is shut down according to the settings before the host is closed)
Finally, set the timed switch of the WIFI outlet to cut off the power supply and enable it again the next day. After power-on, all servers will start automatically, and the VM will start.
If you only need to set the time period for the WIFI switch on holidays, you no longer need to use the BIOS to reboot every day.