Set destruction times or poweroff times for VMS

I’ve seen a few other commercial products where your can specify “I want this VM to run for X hours or days” and then either power off the vm or destroy the vm entirely.

It would also be beneficial to specify poweroff times for vm’s based on work hours. For example:
"vm 99 is powered off between 1AM and 9AM, and automatically power’s back on at 9:01AM"
This way, you save consumption usage when users do not power off vm’s.

All of these examples would be for the az_driver / ec2_driver and vcenter hosts.

You can program actions for the VMs. Your example would be like:

  1. Poweroff VM at 1AM
  2. Resume VM at 9AM

However, this actions cannot include any periodicity right now. So, they
should be reprogram. (Note as a dirty hack this can be done through a hook,
when the VM resumes. But this is a workaround till we develop recurrent
actions)

http://docs.opennebula.org/5.4/operation/vm_management/vm_instances.html?highlight=scheduled%20actions#scheduling-actions