4 This guide describes how to install snf-image-creator on your machine. It is
5 highly recommended to have virtualization capable hardware. snf-image-creator
6 will work on processors that do not support virtualization but it will be slow.
11 snf-image-creator depends on the following programs:
13 * Python 2 [http://www.python.org/]
14 * Python setuptools [http://pypi.python.org/pypi/setuptools]
15 * Python Dialog [http://pythondialog.sourceforge.net/]
16 * Python bindings for libguestfs [http://libguestfs.org/]
17 * Python interface to sendfile [http://pypi.python.org/pypi/pysendfile]
18 * pyparted [https://fedorahosted.org/pyparted/]
19 * ./kamaki [https://code.grnet.gr/projects/kamaki]
20 * Python sh (previously pbs) [https://github.com/amoffat/sh]
21 * ANSI colors for Python [http://pypi.python.org/pypi/ansicolors]
22 * progress [http://pypi.python.org/pypi/progress]
24 The above dependencies are resolved differently, depending on the installation
25 method you choose. There are two installation methods available:
27 #. `Installation using official packages <#install-snf-image-creator-using-official-packages>`_ (currently only for Ubuntu 12.04 LTS and 12.10).
29 #. `Installation from source <#install-snf-image-creator-using-official-packages>`_
31 Install snf-image-creator using official packages
32 =================================================
34 For Ubuntu systems, you can use our official packages found in the Lauchpad
35 PPA: *ppa:grnet/synnefo*
38 This method of installing snf-image-creator has all the advantages of
39 Ubuntu's APT installation, like automatic dependencies resolution and simple
42 In order to proceed with the installation, you must first add the synnefo PPA
43 repository in your system:
45 .. code-block:: console
47 $ sudo apt-add-repository ppa:grnet/synnefo
50 If *apt-add-repository* is missing, install *software-properties-common* first:
52 .. code-block:: console
54 $ sudo apt-get install software-properties-common
56 The snf-image-creator package should now be listed calling:
58 .. code-block:: console
60 $ apt-cache showpkg snf-image-creator
62 You can now install the package by issuing:
64 .. code-block:: console
66 $ sudo apt-get install snf-image-creator
69 If you are asked during the installation to create/update a
70 "supermin appliance", choose "Yes".
72 Install snf-image-creator from source
73 =====================================
75 Manually install the following dependencies:
77 * Python 2 [http://www.python.org/]
78 * Python setuptools [http://pypi.python.org/pypi/setuptools]
79 * Python Dialog [http://pythondialog.sourceforge.net/]
80 * Python bindings for libguestfs [http://libguestfs.org/]
81 * Python interface to sendfile [http://pypi.python.org/pypi/pysendfile]
82 * pyparted [https://fedorahosted.org/pyparted/]
84 In Ubuntu you can do this using:
86 .. code-block:: console
88 $ apt-get install python-setuptools python-guestfs python-dialog \
89 python-sendfile python-parted
92 If you are asked during the installation to create/update a
93 "supermin appliance", choose "Yes".
95 Python Virtual Environment
96 --------------------------
98 Since snf-image-creator and the rest of its dependencies won't be installed
99 using packages, it's better to work in an isolated python virtual environment
102 Install the Virtual Python Environment builder:
103 http://pypi.python.org/pypi/virtualenv.
105 For Ubuntu use the following command:
107 .. code-block:: console
109 $ apt-get install python-virtualenv
111 Create a new python virtual environment:
113 .. code-block:: console
115 $ virtualenv --system-site-packages ~/image-creator-env
117 and activate it by executing:
119 .. code-block:: console
121 $ source ~/image-creator-env/bin/activate
123 You may later deactivate it using:
125 .. code-block:: console
132 Refer to `./kamaki documentation <http://docs.dev.grnet.gr/kamaki/latest/installation.html>`_
133 for instructions. You may install kamaki from source inside the virtualenv or
134 use binary packages if they are available for your distribution.
136 snf-image-creator Installation
137 ------------------------------
139 Download the latest snf-image-creator source package from
140 `here <https://code.grnet.gr/projects/snf-image-creator/files>`_ and install it
141 inside the virtualenv using the following commands:
143 .. code-block:: console
145 $ tar -xf snf_image_creator-<VERSION>.tar.gz
146 $ cd snf_image_creator-<VERSION>
147 $ python ./setup install
149 Alternatively, you can install the bleeding edge version of the software by
150 cloning its git repository:
152 .. code-block:: console
154 $ git clone https://code.grnet.gr/git/snf-image-creator
155 $ cd snf-image-creator
156 $ python ./setup.py install
158 To do the latter, you'll need to have git (http://git-scm.com/) installed.
159 For ubuntu this can be done using:
161 .. code-block:: console
163 $ apt-get install git
166 Keep in mind that the bleeding edge version may be unstable or even