-
Notifications
You must be signed in to change notification settings - Fork 82
Installing from Source
If you are trying to use imagefactory on a platform for which install packages do not yet exist, you may want to try manually installing from the source tree.
The following dependencies must be installed for imagefactory to function:
- Python 2.6+
- libguestfs w/ python bindings
- pycurl
- zope-interface
- libxml2
- httplib2
- paste-deploy
- oauth2
- argparse for python < 2.7
Optional packages will enable features such as syntax highlighted output and logging from multiple threads in debug output:
Each of the plugins have dependencies as well. You only need to install the dependencies for the plugins you plan to use.
- FedoraOS
-
Oz 0.7.0+
- libvirt 0.9.7+
- genisoimage part of cdrkit
- mtools
- OpenSSH client
- libparted
- m2crypto
- pyparted
-
Oz 0.7.0+
- RHEVM
- EC2
- vSphere
- OpenStack
If you will be using a secondary imagefactory for proxied access, you'll need to install these packages:
After the dependencies have been installed, you're ready to download and install imagefactory.
NOTE: you should replace the path to site-packages below to the appropriate path for your system.
> git clone git://github.com/aeolusproject/imagefactory.git
> cd imagefactory
> sudo python ./setup.py sdist install
> cd imagefactory-plugins
> sudo python ./setup.py sdist install
> sudo mkdir /etc/imagefactory/plugins.d
> cd /etc/imagefactory/plugins.d
> for PLUGIN in `ls /usr/lib/python2.7/site-packages/imagefactory_plugins |grep -v .py`
do sudo ln -s -v /usr/lib/python2.7/site-packages/imagefactory_plugins/$PLUGIN/$PLUGIN.info ./$PLUGIN.info
done
Now you're ready to start the imagefactoryd daemon or use the imagefactory command to work with your images.