VMware Cloud Community
Henrique_Cicuto
Enthusiast
Enthusiast
Jump to solution

Actually opening an interactive guest session in a workflow

Noon everyone,

I´m currently working on a specific workflow that:

1 - clones a Microsoft VM;

2 - customizes it (sysprep and modify hardware);

3 - mounts a specific datastore ISO file;

4 - installs a specific software using a configuration file (software within item 3 ISO, config file from a network share).

From the 4 steps I managed about 3.5.

1 - The machine clones successfully;

2 - The customization works successfully;

3 - The ISO is mounted successfully;

4 - And here´s the pain. The first time, the software did not install successfully. I logged into the new virtual machine and started the installation manually, using the config file. And then it goes successfully.

So, about item 4: I did all sorts of testing and managed to discover that, for the software to install successfully, I need an open user session (user logged on with Desktop loaded with all icons and so forth), regardless if through VM Console or through RDP.

Is there anything within the Orchestrator API that manages something like that: Actually logging a user into the guest? I tried the "run program in guest" workflow with the "Interactive Session" set to True, but discovered that it only works if there´s a session already opened.

Thank you very much for your time.

0 Kudos
1 Solution

Accepted Solutions
Henrique_Cicuto
Enthusiast
Enthusiast
Jump to solution

Sadly I could not find anything API related.

The solution was working with Windows registry and enabling autologin.

So, the workflow adds the registry keys, installs the software and then removes the keys.

Not the prettiest but usable.

View solution in original post

0 Kudos
3 Replies
Henrique_Cicuto
Enthusiast
Enthusiast
Jump to solution

Sadly I could not find anything API related.

The solution was working with Windows registry and enabling autologin.

So, the workflow adds the registry keys, installs the software and then removes the keys.

Not the prettiest but usable.

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

There are guest operations workflows in the vCenter plug0in that if I remember well have an option for interactive sessions.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Right here :

Screen Shot 2016-01-26 at 19.38.28.png

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos