Open x1a0 opened 11 years ago
I can do a step by step doc indeed, or better: a youtube video.
In the mean time, I can explain to you briefly:
In the driver configuration, you have a "cloudifyUrl" property which is a link to the cloudify package. You can do your own package, with custom drivers, and change this URL.
You can also keep the same URL with the default Cloudify package, but add a "cloudifyOverridesUrl" which is a link to a ZIP with additional files. This zip can contains the driver in lib/platform/esm.
We already provide a override package with our VirtulaBox driver and OpenStack Essex driver: http://opensource.fastconnect.org/maven/service/local/repositories/opensource/content/fr/fastconnect/cloudify-overrides/2.2/cloudify-overrides-2.2-gigaspaces_overrides.zip
If you want to create your own override package, you can follow these steps:
Then, you have to configure the driver:
Now you can start the cluster:
Thanks!
So I need to put "cloudify_overrides.zip" somewhere under HTTP? Can I specify a file system URL?
File system URL will not work, because this ZIP should be available from the VM in VirtualBox. Also, the bootstrap-management.sh is doing a "wget" of this url.
But, if you put the ZIP in a shared folder (the driver can mount a shared folder between the VM thanks to "vbox.sharedFolder") and change the bootstrap-management.sh script to do a simple "cp" instead of "wget", then it will work.
You can also use the ZIP we are provinding: http://opensource.fastconnect.org/maven/service/local/repositories/opensource/content/fr/fastconnect/cloudify-overrides/2.2/cloudify-overrides-2.2-gigaspaces_overrides.zip
But if you don't have an internet connection (as me in some situation), you can setup your local HTTP server.
Got it. Thank you very much ;)
hmm... when I try to boot the vbox cloud I got this error:
org.cloudifysource.dsl.internal.DSLValidationException: Could not find upload directory at: /Users/zhangxiao/Codes/cloudify/tools/cli/plugins/esc/vbox/tools/cli/plugins/esc/vbox/upload
looks like the cloud path has some problem...
You're right, I forgot to fix the groovy for Cloudify 2.2: now the path is relative to the driver. I just updated the example file: https://github.com/fastconnect/virtualbox-cloudify-driver/blob/master/src/main/resources/vbox/vbox-cloud.groovy
just replace localDirectory "tools/cli/plugins/esc/vbox/upload" by localDirectory "upload"
Never mind... I forgot to put the driver jar file into lib/platform/esm
Alright, I feel I am almost there. Now the management VM is starting but then failed with this:
Downloading cloudify installation from http://repository.cloudifysource.org/org/cloudifysource/2.1.1/gigaspaces-cloudify-2.1.1-ga-b1400.zip.tar.gz
Failed downloading cloudify installation : error code: 8
I noticed it tries to download a .zip.tar.gz
file. However in the configuration I put the zip file name there. Why does Cloudify append the extension...?
looks like the reason is here: https://cloudifysource.zendesk.com/entries/22344463-cloudifyurl-issue-with-cloudify-2-2
I guess this also means this driver should use a .tar.gz
package too.
It depends on your bootstrap-management.sh Here is mine:
if [ ! -z "$CLOUDIFY_OVERRIDES_LINK" ]; then
echo Downloading cloudify overrides
wget -q $CLOUDIFY_OVERRIDES_LINK -O $WORKING_HOME_DIRECTORY/gigaspaces_overrides.zip || error_exit $? "Failed downloading cloudify overrides"
fi
For Cloudify specific issues, you can ask in the official forum: https://cloudifysource.zendesk.com/forums
Hey!
This looks like exactly what I want - very cool!
But I am quite new to Cloudify (used Vagrant though). I couldn't figure out where to put this driver and where to put my configuration file.
Could you provide a more detailed doc for that?
THANKS!