VMware Cloud Community
StephanHuebenth
Contributor
Contributor

Skip Initial Power On

Hello,

after an Upgrade from vRA 7.1 to 7.4 the BasicVmWorkflow has the new state initalPowerOn. I don't want the machine automatically powering on an tried to trigger a workflow with subscriptions. But neither with output variable workflowNextState  = BuildComplete nor with virtualMachineEvent = OnCreatingMachineComplete i can skip the initial power on.

The Subscriptios is configured to run the workflow at state PRE and state name BasicVmWorkflow.InitialPowerOn. The Workflow starts about 30 seconds before the machine is powered on.

Greets Stephan

Reply
0 Kudos
10 Replies
daphnissov
Immortal
Immortal

Were you even able in 7.1 to skip an initial power on? If so, I'm not sure in later versions this is something you can avoid as it's built into the provisioning process. You could always call some extensibility after it's on to power it off.

Reply
0 Kudos
StephanHuebenth
Contributor
Contributor

In 7.1 was no initial power on at basicVmWorkflow. I think in 7.1 it only was at the cloneWorkflow.

Yes i know that i can power off the machine but this is not the nice way ^^ (and i would interrupt the PXE Boot)

Reply
0 Kudos
StephanHuebenth
Contributor
Contributor

For any interested people, here is the solution:

You need an addition event subscription with event topic Machine provisioning with the condition "Data->Lifecycle state->Lifecycle state event" EQUALS "BasicVmWorkflow.CreatingMachine.EVENT.OnCreatingMachineComplete" and maybe a second condition if u dont want it for all your Blueprints. In the associated workflow, set the workflowNextState parameter to BuildComplete and put it as output parameter. Now the initial power on event will be bypassed and the machine will not turn on at this point.

greetz

Reply
0 Kudos
anba89
Enthusiast
Enthusiast

Hi Stephan,

Is this solution supported by vmware?

Andi

Reply
0 Kudos
daphnissov
Immortal
Immortal

It's just EBS modification, so yes. You need to be familiar with EBS, however, and ensure you don't blow up all your other provisioning processes.

Reply
0 Kudos
Stephan111
Contributor
Contributor

Hi Andi,

yes it is. It's a guidance from VMware engineering i got.

Reply
0 Kudos
Stephan111
Contributor
Contributor

ups wrong account. sry
Reply
0 Kudos
Sany_1973
Enthusiast
Enthusiast

Is this avaialble in vra 7.3 ?

Reply
0 Kudos
daphnissov
Immortal
Immortal

Reply
0 Kudos
ecornely
Contributor
Contributor

Hello,

I'm trying to do the same in vRA 7.5 and a multi-machine blueprint.

My idea is that I'd like to have a component based on a clone with a really normal deployment and other components which should just be containers with disks and network but not started yet. The customer will start them later when the setup of that cloned vm is finished only.

As far as I understood, I just have to setup the event subscription correctly and make sure that for blueprint's components that need to bypass initial power on they run a workflow that output workflowNextState="BuildComplete".

2020-02-28 15_36_29-NRB Enterprise Cloud Services.png

I can confirm that I see in the log that the workflow is triggerd and it is as simple as that :

2020-02-28 15_37_08-VMware vRealize Orchestrator - administrator @ nrb4246av.ds9.adms - [Server].png

I can also confirm that EBS is working at blueprint's level because the cloned component machine trigger well the EBS.MachineProvisioned workflow.

What part of the magic sauce am I missing ?

All component vm are running after my deployment is complete.

Reply
0 Kudos