Re: Has anyone used CC to control a VM via VIX?

Lincoln Peters <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
On Thu, Mar 11, 2010 at 1:00 PM, Ginter, Richard D
<[email protected]> wrote:
> Currently our build process involves two VM instances, one where we perform
> our build that goes onto our baseline server and another where we produce
> cloned VM drives that become the basis for the development environment for
> all our developers.  I need to be able to get Cruise Control to send
> commands to these VMs to do tasks like taking snapshots, doing rollbacks,
> etc.  The hardest part though would be sending ANT based command line
> commands to the VM to be executed by the guest OS.

What OS are you running on the VM?  I don't know if/how you can
control VMWare Workstation from a script (I've never tried it), but if
you can, and if the VM is running a UNIX-like OS, you could set up an
SSH server on the VM with passwordless public-key authentication:
<http://sial.org/howto/openssh/publickey-auth/>

Note that allowing passwordless login to a root account is considered
a security risk, but depending on what you're using the VM for, that
may not be an issue.


I use that technique for a set of automated installation tests that
run on a VM, although we use Sun VirtualBox rather than VMWare
Workstation.  Our VM's are running Red Hat Enterprise Server 5.3, as
is our CruiseControl server.


-- 
Lincoln Peters
<[email protected]>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.