Created
March 10, 2012 23:26
-
-
Save jclouds/2013913 to your computer and use it in GitHub Desktop.
booting up a virtualbox vm in jclouds 1.5.0-SNAPSHOT w/zero config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Prereqs: | |
;; - 1.5.0-SNAPSHOT deps for org.jclouds.labs/virtualbox, org.jclouds.driver/jclouds-sshj, org.jclouds.driver/jclouds-slf4j | |
;; - downloaded & installed vbox 4.1.8; started vboxwebsrv | |
;; - you have an rsa ssh key that works on localhost, and sudo doesn't require a password | |
;; | |
;; all else is 0conf (ex. image built on demand from public iso, downloaded on demand) | |
;; | |
;; thx to andreaturli mattiasholmqvist dralves asavu + jedi4ever for the guidance! | |
;; | |
(use 'org.jclouds.compute2) | |
(import 'org.jclouds.scriptbuilder.statements.login.AdminAccess) | |
(def compute (compute-service "virtualbox" "administrator" "12345" :sshj :slf4j)) | |
;; create a vm, downloading iso on-demand, and setup an admin user on it named same as yours | |
(create-node compute "test" (build-template compute { :run-script (AdminAccess/standard) } )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment