We need to be able to create a way to reboot virtual machines in the lab every 20 minutes automatically.
Is there any way this can be done in vSphere 5?
|
We need to be able to create a way to reboot virtual machines in the lab every 20 minutes automatically. Is there any way this can be done in vSphere 5? |
|||||||||||||||||
|
|
I don't have access to vSphere now but it should be like this:
Alternatively You can use vSphere CLI : http://pubs.vmware.com/vsphere-50/topic/com.vmware.vcli.examples.doc_50/cli_manage_vms.10.6.html |
|||||||||
|
|
I would use a vSphere scheduled task for this, like Alan said.
In addition, I don't see any point in rebooting a broken machine, so you could also use non-persistent disks on it, so that when the VM reboots, it reverts back to a known good state. Otherwise rebooting a hacked machine just results in a hacked machine... There is an obvious problem with a scheduled restart though: what happens if I connect to start testing my exploit at 13:59, and the restart is scheduled for 14:00? |
|||
|
|
|
Why don't you simply create a bat file having code
and create a schedule to execute it |
|||
|