Requirement: To run the same program in multiple VMs.
Approach: I am trying to use UiPath provided VMWare group of activities, to run program in VM.
Problem: Using Run Program in VM activity to run the program in VM.
This activity is not giving any error still it is not running the mentioned program in VM.
Check event logs what is happening, below are the additional steps for the same
Note: this is only Troubleshooting Steps, you need to validate in your VMWare, @Himanshu_Chopra Hope this could solve your issue
I’d be glad to help Himanshu_Chopra and anyone else facing issues with the “Run Program in VM” activity in UiPath Studio. Here’s a consolidated response incorporating the best aspects of previous suggestions and addressing potential causes:
Understanding the Problem:
Himanshu is trying to run the same program in multiple virtual machines (VMs) using UiPath’s VMware activities.
The “Run Program in VM” activity seems to execute without errors, but the program doesn’t run within the VMs.
Troubleshooting Steps:
Verify VM Connectivity:
Ensure UiPath Studio can successfully connect to the target VMs. Use the “Connect to VMware Host” activity or test connectivity manually.
Double-check the VM names or IP addresses used in the “Run Program in VM” activity configuration.
Verify the credentials you provide have sufficient permissions to access the VMs and run programs.
Validate Program Path:
Confirm the program path within the VM is accurate. Use absolute paths (e.g., C:\Program Files\myprogram.exe) to avoid ambiguity.
If the program resides on a network share, ensure the VM has access rights to the share.
Check Firewall/Security Software:
Temporarily disable firewalls or antivirus software on both the UiPath machine and the VMs to rule out any blocking rules. Re-enable them after testing if necessary, and create appropriate exceptions for the program and communication with the VMs.
Examine User Account Control (UAC):
If applicable, disable UAC on the VMs to avoid potential interference with program execution by UiPath. However, consider the security implications of disabling UAC permanently.
Consider Nested Virtualization:
If running VMs within VMs, ensure nested virtualization is enabled in the VM settings (BIOS or hypervisor configuration).
Error Logging:
Enable verbose logging for the “Run Program in VM” activity. This might reveal more detailed error messages if issues occur during execution. You can usually configure logging in the activity properties or workflow settings.
Review Activity Configuration:
Meticulously examine the “Run Program in VM” activity properties to ensure all options are set correctly:
VM connection details (host, username, password)
Program path within the VM
Working directory (optional)
Arguments to be passed to the program (if applicable)
Alternative Approaches (if necessary):
If the VMware activities still cause issues, consider alternative approaches:
PowerShell Remoting: Use the “Execute PowerShell Script” activity to execute a script remotely on the VMs that launches the program.
SSH Commands: If the VMs run Linux and you have SSH access, use the “Invoke Command” activity to execute an SSH command on the VMs that starts the program.
Additional Tips:
Start with a simple workflow that only runs the “Run Program in VM” activity on a single VM to isolate the problem.
If you continue to face issues, provide more details about your setup (UiPath Studio version, VM software, program details, activity configuration) for more specific assistance.
By following these steps and considering various possibilities, you should be able to effectively troubleshoot and resolve the issue with the “Run Program in VM” activity. If you need further help, feel free to provide more context and error messages (if any) for tailored guidance.
note: Got this from internet, I have not used this but as per my experience, it should solve your issue.