VMware {code} Community
BackOfficeTeam
Contributor
Contributor
Jump to solution

Orchestrator and VIX Plugin Workflow

Hi Guys

I am having two working workflows:

  • Clone and sysprep
  • Copy Files, Run a Script, Delete Directory, Reboot

So when I run first workflow (Clone and Sysprep) it’s finished successfully

When I run ( Copy Files, Run a Script, Delete Directory, Reboot) it’s also finished successfully

But when I add workflow (Copy Files, Run a Script, Delete Directory, Reboot) to the workflow (Clone and sysprep ) it always failed on the beginning of the workflow (Copy Files, Run a Script, Delete Directory, Reboot)

Error message is The virtual machine needs to be powered on.:3006

Workflow Screenshots :

Clone and Sysprep

Clone and Sysprep.png

Copy Files, Run a Script, Delete Directory, Reboot

Copy Files, Run a Script, Delete Directory, Reboot.png

Any Ideas ?

0 Kudos
1 Solution

Accepted Solutions
tschoergez
Leadership
Leadership
Jump to solution

Hi!

If I see right, you bound the wrong VcVirtualMachine to the Copy Files....-Workflow:

You don't need the workflow-input-parameter "vm", but the result of the cloning task: tempNewVM

When you bind this workflow-attribute to the copy-files workflow element it should work.

Regards,

Joerg

View solution in original post

0 Kudos
4 Replies
tschoergez
Leadership
Leadership
Jump to solution

Hi!

I cannot test your workflows right now, but:

Where exactely does the error occur? Inside the clone or the copy files workflow?

What's the meaning of the last "Power on" Decision element? (Why do you run a shutdown guest if poweron is false?)

Did you bind the right workflow attribute to the copy... workflow?

Can you monitor manually if the virtual machine is running?

Regards,

Joerg

0 Kudos
BackOfficeTeam
Contributor
Contributor
Jump to solution

When I run First Workflow (Clone and Sysprep) without (Copy files workflow) it finished successfully

When I run Second Workflow (Copy file) and chose any VM it is working fine

It is failing when I copy workflow (copy file) to the workflow (Clone and Sysprep) – in this case (Clone and sysprep) will finished successfully then it will start (Copy file) and it will failed

Error message is The virtual machine needs to be powered on.:3006

Vm is power on and VM tools are ok

All attributes are ok

According to my story everything is ok but I am still having a problem J

Why do you run a shutdown guest if poweron is false?)

If there’s  any problems during sysprep it will shutdown VM

Can you test my workflows maybe you will find something that I miss

0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

Hi!

If I see right, you bound the wrong VcVirtualMachine to the Copy Files....-Workflow:

You don't need the workflow-input-parameter "vm", but the result of the cloning task: tempNewVM

When you bind this workflow-attribute to the copy-files workflow element it should work.

Regards,

Joerg

0 Kudos
BackOfficeTeam
Contributor
Contributor
Jump to solution

Thanks Champ that fix problem

0 Kudos