vm.restart - meaning of various options
-
In the jobs function, there is a function to re-start a virtual machine called "vm.restart". It has a series of options. Is there anywhere that shows what the various options do?
The three options are shown below:
timeout
force (seems obvious but what if it not checked?)
bypassBlockedOperationThanks!
-
Ping @pdonias
-
@archw Since the jobs settings give you an automatic direct access to the API methods, the parameters are not documented, unfortunately. Regarding
vm.restart
,force
will hard-reboot the VM instead of going through the guest tools andbypassBlockedOperation
will restart the VM even if you enabled "Protect against accidental shutdown" in the VM's advanced tab. -
@pdonias
One more...what does "timeout" do?
Thank you! -
@archw It's the amount of seconds after which the job run will be marked as failed if the run hasn't ended. If you configure a timeout on
vm.restart
with multiple VMs, the timeout will apply on each VM individually. -
O olivierlambert marked this topic as a question
-
O olivierlambert has marked this topic as solved
-
@pdonias Thanks!
-
@pdonias Tis will sound weird but is there any way to have it try going through the guest tools first and, if it doesn't work, then do the hard-reboot of the VM?
-
Hi,
Can you describe more precisely what do you want to achieve?
-
@olivierlambert
I’ve got a few VM’s that lock up from time to time. There is no rhyme nor reason (different hosts, different storage, etc).As a result, I just have a job that restarts them at 5:30 am every day. I’d like to have the software tool software restart them but, in the occasion wher the VM is locked up tight as Fort Knox, I’d like the hard reset to happen.
Make sense ?