Changes

Jump to: navigation, search
Running, Listing and Killing Guest Programs and Scripts with vmrun
</pre>
== Running, Listing and Killing Managing Guest Programs and Scripts with vmrun ==
One of the most useful features of the ''vmrun'' command is the ability to remotely run and manage programs on the guest operating system of a virtual machine.
A listing of the current process running on a guest operating system can be obtained using the ''listProcessesinGuest'' command. In order for this command to work, a valid guest user name and passowrd must be provided. The following example show a typical command used to obtain a process listing from a Windows Server 2008 system, together with part of the output listing:
</pre>
To run a program within a guest operating system, use the runProgramInGuest command, together with the path to the program which is to run. For example:
<pre>
</pre>
Note that in order to run a graphical application on a Windows Vista or Windows Server 2008 guest, the ''-interactive'' command must be used. Without this commandscommand, the guest operating Windows system will display an ''Interactive services dialog detection'' warning dialog stating that the program cannot be displayed on the desktop.
By default, graphical programs started using ''vmrun'' on Windows guests will start in a minimized state (in other words the program will appear in the Windows task bar, but will not be displayed on the desktop). To force the program to appear on the desktop when it starts, the ''-activeWindow'' flag must be used. The following example shows the combined use of the ''-interactive'' and ''-activeWindow'' flags to run and display the Windows Notepad program on a Windows Server 2008 guest system:
1,798
edits

Navigation menu