Hi Support Team,
I have a FB 8 project to learn about vmWare actions and use
- vmWare WorkStation Start
- vmWare List Virtual Machines to get a list of running machines into variable %vm%
- vmWare Execute Guest Command with
– Virtual Machine Name %vm%
– Command: Run a program in Guest OS
– Arguments / Path: %WINDIR%\SYSTEM32\CMD.EXE
– Arguments / Arguments: /c dir c:\windows*.exe
The action fails with “Error: Cannot open VM: D:\VMware\W7x64\W7x64.vmx, unknown file suffix”.
In case I enter “D:\VMware\W7x64\W7x64.vmx” directly as Virtual Machine Name, I get another error:
Command Output
Guest program exited with non-zero exit code: 1
Action Failed with Return Code : 1
Would you mind to
- check this (and other) action(s) to work proper with variables
- give me a clue of what I need to change to get the command executed on the guest?
All actions run with Host Type “vmWare WorkStation”.
Best regards
Michael
Ooops, forgot point one of my last post. I recognized that %vm% is a list variable and thus the filename has a \r\n at the end. Sorry for my carelessness…
But point two is still open: the command is not executed.
It’s difficult to tell from the output… but my first guess would be permissions. Also, FinalBuilder expands the arguments before passing to vmrun, so if you use %WINDIR% in the action it will pass the value of WINDIR on the machine FinalBuilder is executing. That may be ok in this case since most machines have windows installed in c:\windows but it is something to be aware of.