On a single machine you can create multiple karaf instances using the karaf admin service in order to test multiple karafs in a single host.
If using the remote machines is a hard requirement, there are a few options for you out there, but they all require some additional effort. The idea would be to ssh into those machines from inside your test install & start karaf and use it in your test. Some options on how to do it without having to code the world would be: a) Use jclouds-karaf with the byon provider (bring your own nodes) in order to be able to manage the remote machines. b) An other idea would be to use a project that I have been working on: Fuse Fabric http://fuse.fusesource.org/fabric/docs/getting-started.html. This will allow you among other to start Karaf instances on any host you have ssh access and easily manage it. Such test example: https://github.com/fusesource/fuse/blob/master/fabric/fabric-itests/fabric-pax-exam/src/test/java/org/fusesource/fabric/itests/paxexam/CreateSshAgentTest.java. Ioannis Canellos FuseSource Blog: http://iocanel.blogspot.com Apache Karaf Committer & PMC Apache Camel Committer Apache ServiceMix Committer Apache Gora Committer Apache DirectMemory Committer
