A VM task is used to execute operations on VMs as scheduled. Supported operations include staring VMs, shutting down VMs, restarting VMs, creating snapshots for VMs, and restoring VMs by using snapshots.
VM startup and VM shutdown tasks are applicable to services that do not require full-time running. This feature ensures the availability of services in the specified time range timely release of resources in other time ranges.
Create a VM task—Create a VM task to execute operations (such as start, shut down, restart, and restore) on VM.
Manage VM tasks—Edit or delete a VM task, or edit VMs in a VM task.
VM shutdown task will fail if VMs specified in the task are being initialized.
Taking snapshots is a temporary disaster recovery solution. When the image files of VMs are damaged or deleted by mistake, snapshot data will also get lost. As a best practice for long-term use, back up VMs.
From the left navigation pane, select System > Advanced Settings > Scheduled Tasks.
Click Create.
Select VM for the Execute On field, and configure VM task parameters as described in "Parameters."
Click Next, and then select VMs on which the task is executed.
Click Next, and review the configuration.
Click OK.
Type: Select an action to take on target VMs in a task. Options include:
Start: Start the target VMs in the task.
Shut Down: Shut down the target VMs in the task.
Restart: Restart the target VMs in the task.
Create Snapshot: Create snapshots for the target VMs in the task.
Restore Snapshot: Restore the target VMs in the task by using snapshots.
Scheduled Shutdown Reminder: Configure whether to enable the system to send a remainder in advance to the VMs specified in this task before the system shuts down the VMs. This feature is disabled by default. You can configure this feature only when you select Shut Down as the task type.
Max Snapshots: Set the maximum number of desktop snapshots that can be created for a VM in this task. The default is 3. This parameter is available only for a snapshot creation task, and it does not take effect on the desktops in a manual desktop pool.
Schedule: Set the interval to take the action. Options include Once, Monthly, Weekly, and Daily. If you select Monthly or Weekly, you must also select a date range.
Date Range: Set the date to start and end the task. The system will periodically execute the task within the date range. This parameter is unavailable for the one-off task.
Executed At: Select the date on which the one-off task will be executed.
Execution Time: Set the time to execute the task. This parameter is available for both one-off and scheduled tasks.
From the left navigation pane, select System > Advanced Settings > Scheduled Tasks.
Click Execute in the Actions column for a VM task.
In the dialog box that opens, click OK. The system will execute the task immediately. If you click Cancel, the system will execute the task as planned in the task.
From the left navigation pane, select System > Advanced Settings > Scheduled Tasks.
In the VM list for a task, click Delete in the Actions column for a VM.
In the dialog box that opens, click OK.
From the left navigation pane, select System > Advanced Settings > Scheduled Tasks.
Click More in the Actions column for a VM task, and then select Edit.
Configure the VM task parameters as described in "Parameters."
Click Next, and then select or clear VMs.
Click Next, and review the configuration.
Click OK.
From the left navigation pane, select System > Advanced Settings > Scheduled Tasks.
Click More in the Actions column for a VM task, and then select Delete.