jclouds/labs/virtualbox/README.md

29 lines
1.3 KiB
Markdown
Raw Normal View History

2012-03-06 15:37:54 -05:00
2012-03-16 21:17:31 -04:00
#Setup
2012-03-06 15:37:54 -05:00
2012-03-16 21:17:31 -04:00
Have virtualbox 4.1.8 installed.
2012-03-06 15:37:54 -05: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-16 21:17:31 -04:00
That's it! Enjoy local cluster goodness by running:
2012-03-06 15:37:54 -05:00
2012-03-16 21:17:31 -04:00
"mvn clean install clojure:repl"
2011-07-25 13:51:07 -04:00
2012-03-16 21:17:31 -04: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 13:51:07 -04:00
2012-03-16 21:17:31 -04:00
For java guidance look into src/test/java/org/jclouds/virtualbox/compute/VirtualBoxExperimentLiveTest.java.
2011-07-25 13:51:07 -04:00
2012-03-16 21:27:36 -04:00
For now nat+host-only is the only available network configuration, nodes should be accessible from the host by:
> ssh -i ~/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no dralves@127.0.0.1 -p 300X
where X is the node index with regard to creation order (0,1,2,etc...)
2012-03-16 21:17:31 -04:00
It *should* behave as anyother provider, if not please report.
2011-07-25 13:51:07 -04:00
2012-03-16 21:17:31 -04:00
#Notes:
2011-07-25 13:51:07 -04:00
2012-03-16 21:17:31 -04: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.
- cached isos, vm's and most configs are kept at ~/.jclouds-vbox/ by default.