BigSur 11.6.1
After upgrading Fusion to 12.2.0 a vmrun command that used to work when run using an AppleScript (JAX) from a given Viscosity VPN pre-connection event simply stopped working. This script when run directly from AppleScript IDE works fine. Tried adding user, password and admin privileges flag yet it will not start the vm when run as a Viscosity VPN event.
This is the snippet of code that attempt to start the VPN:
var app = Application.currentApplication();
app.includeStandardAdditions = true;
try {
app.doShellScript("ping 192.168.20.128 -c 1");
}
catch (err) {
app.doShellScript("'/Applications/VMware Fusion.app/Contents/Library/vmrun' start '//Users//<username>//Virtual Machines.localized//OpenWRT21-RW.vmwarevm//OpenWRT21-RW.vmx'", {userName:'<username>', password:'<password>', administratorPrivileges:true, alteringLineEndings:false});
}
Any ideas? Something changed with vmrun that suddenly when run from a context different than the interactive user context makes it fail?
( I have a separate post in VMWare communities where I'm sharing all my misadventures with Fusion 12.2: https://communities.vmware.com/t5/VMware-Fusion-Discussions/Fusion-12-2-breaks-otherwise-properly-working-networking-in/m-p/2872773#M175912 )