10.0

Table Of Contents
Running Guest Applications
Most vmrun guest operations require VMware Tools to be installed on the guest operating system.
n
Start the command tool, minimized, on a Windows guest.
vmrun -gu guestUser -gp guestPassword runProgramInGuest Win10.vmwarevm/Win10.vmx -interactive
cmd.exe
n
Start the command tool on a Windows guest as an active window on the desktop,
vmrun -gu guestUser -gp guestPassword runProgramInGuest Win10.vmwarevm/Win10.vmx -activeWindow -
interactive cmd.exe
n
Run a batch script file on a Windows guest, with Perl as the script interpreter.
vmrun -gu guestUser -gp guestPassword runScriptInGuest Win10.vmwarevm/Win10.vmx C:\perl\perl.exe
C:\script.pl
n
Run a batch script and keep running afterwards. To use cmd.exe on Windows, you must specify the
script interpreter as null.
vmrun -gu guestUser -gp guestPassword runScriptInGuest Win10.vmwarevm/Win10.vmx ""
"cmd.exe /k \"C:\\Program Files\\Microsoft Visual Studio\\VC\\vcvarsall.bat\" x86"
n
Run a Bash shell script on a Linux guest.
vmrun -gu guestUser -gp guestPassword runScriptInGuest
Ubuntu16.vmwarevm/Ubuntu16.vmx /bin/bash /home/user/myscript
n
Start an X clock on a Linux guest, which requires the -display option to appear on the console.
vmrun -gu guestUser -gp guestPassword runProgramInGuest
Ubuntu16.vmwarevm/Ubuntu16.vmx /usr/bin/xclock -display :0
n
Run the same X clock command, but return control back to the console immediately.
vmrun -gu guestUser -gp guestPassword runProgramInGuest Ubuntu16.vmwarevm/Ubuntu16.vmx -
noWait /usr/bin/xclock -display :0
n
Run Firefox.
vmrun -gu guestUser -gp guestPassword runProgramInGuest
Ubuntu16.vmwarevm/Ubuntu16.vmx /usr/bin/firefox --display=:0
Using VMware Fusion
VMware, Inc. 171