VMware Cloud Community
CalmCloud
Enthusiast
Enthusiast
Jump to solution

prevent vmotion during machineprovisioned workflow

Hi All,

Sometimes during VM provisioning i.e. when machineprovisioned workflow stub is executing sometimes  vcenter does vmotion on the vm. Sometimes scripts are executed on the VM by machineprovisioned workflow. This messes things up. One option is to disable vmotion on a single VM being worked on. How to do this? Any other options.

Any help appreciated.

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

I haven't tried it, but a good starting point could be vRO API Explorer documentation for VcAuthorizationManager scripting object's methods disableMethods() / enableMethods() plus the following blog post by William Lam - https://www.virtuallyghetto.com/2016/07/how-to-easily-disable-vmotion-cross-vcenter-vmotion-for-a-pa...

View solution in original post

Reply
0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

I haven't tried it, but a good starting point could be vRO API Explorer documentation for VcAuthorizationManager scripting object's methods disableMethods() / enableMethods() plus the following blog post by William Lam - https://www.virtuallyghetto.com/2016/07/how-to-easily-disable-vmotion-cross-vcenter-vmotion-for-a-pa...

Reply
0 Kudos
CalmCloud
Enthusiast
Enthusiast
Jump to solution

I came across same blog. PS script work.

Thanks llian.

Reply
0 Kudos