2012-03-06 20:37:54 +00:00
2012-03-17 01:17:31 +00:00
#Setup
2012-03-06 20:37:54 +00:00
2012-03-17 01:17:31 +00:00
Have virtualbox 4.1.8 installed.
2012-03-06 20:37:54 +00:00
Make sure you change your VirtualBox preferences to not auto-capture keyboard, and also set host key to none. Otherwise you may accidentally screw-up automated installs.
2012-03-17 01:17:31 +00:00
That's it! Enjoy local cluster goodness by running:
2012-03-06 20:37:54 +00:00
2012-03-17 01:17:31 +00:00
"mvn clean install clojure:repl"
2011-07-25 18:51:07 +01:00
2012-03-17 01:17:31 +00:00
> (use 'org.jclouds.compute2)
> (import 'org.jclouds.scriptbuilder.statements.login.AdminAccess)
> (def compute (compute-service "virtualbox" "admin" "12345" :sshj :slf4j))
> (create-nodes compute "local-cluster" 2 (build-template compute { :run-script (AdminAccess/standard) } ))
2011-07-25 18:51:07 +01:00
2012-03-17 01:17:31 +00:00
For java guidance look into src/test/java/org/jclouds/virtualbox/compute/VirtualBoxExperimentLiveTest.java.
2011-07-25 18:51:07 +01:00
2012-03-17 01:27:36 +00:00
For now nat+host-only is the only available network configuration, nodes should be accessible from the host by:
2012-03-21 22:36:14 +00:00
> ssh -i ~/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no me@192.168.86.X
where X is the node index with regard to creation order starting at 2 (2,3,4, etc...)
2012-03-17 01:27:36 +00:00
2012-03-17 01:17:31 +00:00
It *should* behave as anyother provider, if not please report.
2011-07-25 18:51:07 +01:00
2012-03-17 01:17:31 +00:00
#Notes:
2011-07-25 18:51:07 +01:00
2012-03-17 01:17:31 +00:00
- jclouds-vbox is still at alpha stage please report any issues you find.
- jclouds-vbox has been mostly tested on Mac OSX, it might work on Linux, but it won't work on windows for the moment.
2012-03-21 22:36:14 +00:00
- cached isos, vm's and most configs are kept at ~/.jclouds-vbox/ by default.
- jclouds-vbox assumes vbox has the default host-only network vboxnet0, that the network is in 192.168.86.0/255.255.255.0 and that the host as address 1 in this network.