PDA

View Full Version : How to automate tasks in virtual machines


kinook
03-20-2007, 02:54 PM
Some options:

1) Configure the guest OS to automatically logon (http://support.microsoft.com/kb/315231) and run a startup script (by creating a shortcut to a .cmd file in the user's Start Menu Startup folder), and start the virtual machine using one of the Virtual Machine (http://www.visualbuild.com/Manual/virtualpc.htm) actions (if necessary Wait (http://www.kinook.com/VisBuildPro/Manual/waitaction.htm) for the %RUNPROGRAM_PROCESSID% process to complete). The startup script (a text file with a line like

start visbuildpro /b "c:\path\to\file.bld"

to initiate a VBP build) would install software, build projects, etc., and then shut down Windows via the Shut Down action (http://www.visualbuild.com/Manual/shutdownaction.htm).

2) Use the VisBuildPro Project (http://www.visualbuild.com/Manual/vbpremotetab.htm) (if VBP is installed in the VM) or Run Program (http://www.visualbuild.com/Manual/programremotetab.htm) actions to execute build scripts or batch files remotely on the virtual machine guest OS after starting it via one of the Virtual Machine (http://www.visualbuild.com/Manual/virtualpc.htm) actions.

3) For VMware Workstation (http://www.visualbuild.com/Manual/vmware.htm) or Virtual Server (http://www.visualbuild.com/Manual/virtualserver.htm), use specific functions in the related actions (run program, send keys, etc.) to initiate a build on the virtual machine.