root / docs / install.rst @ 56884b64
History | View | Annotate | Download (7.4 kB)
1 | 7b006adb | Nikos Skalkotos | Installation |
---|---|---|---|
2 | fa77d79a | Nikos Skalkotos | ^^^^^^^^^^^^ |
3 | 2d86bc44 | Nikos Skalkotos | |
4 | 8c7d7b90 | Nikos Skalkotos | This guide describes how to install snf-image-creator on a Linux system. It is |
5 | 8a40ba3c | Alex Pyrgiotis | highly recommended to have virtualization capable hardware. snf-image-creator |
6 | b39357a8 | Alex Pyrgiotis | will work on processors that do not support virtualization but it will be slow. |
7 | 2d86bc44 | Nikos Skalkotos | |
8 | 2d86bc44 | Nikos Skalkotos | Dependencies |
9 | fa77d79a | Nikos Skalkotos | ============ |
10 | 2d86bc44 | Nikos Skalkotos | |
11 | 2d86bc44 | Nikos Skalkotos | snf-image-creator depends on the following programs: |
12 | 2d86bc44 | Nikos Skalkotos | |
13 | 2d86bc44 | Nikos Skalkotos | * Python 2 [http://www.python.org/] |
14 | 2d86bc44 | Nikos Skalkotos | * Python setuptools [http://pypi.python.org/pypi/setuptools] |
15 | 2d86bc44 | Nikos Skalkotos | * Python Dialog [http://pythondialog.sourceforge.net/] |
16 | 2d86bc44 | Nikos Skalkotos | * Python bindings for libguestfs [http://libguestfs.org/] |
17 | b39357a8 | Alex Pyrgiotis | * Python interface to sendfile [http://pypi.python.org/pypi/pysendfile] |
18 | afdddc8d | Nikos Skalkotos | * pyparted [https://fedorahosted.org/pyparted/] |
19 | aab4b154 | Nikos Skalkotos | * rsync [http://rsync.samba.org/] |
20 | afdddc8d | Nikos Skalkotos | * ./kamaki [https://code.grnet.gr/projects/kamaki] |
21 | 20e37310 | Nikos Skalkotos | * Python sh (previously pbs) [https://github.com/amoffat/sh] |
22 | 2d86bc44 | Nikos Skalkotos | * ANSI colors for Python [http://pypi.python.org/pypi/ansicolors] |
23 | 2d86bc44 | Nikos Skalkotos | * progress [http://pypi.python.org/pypi/progress] |
24 | 2d86bc44 | Nikos Skalkotos | |
25 | 0e8550d6 | Alex Pyrgiotis | The above dependencies are resolved differently, depending on the installation |
26 | 8a40ba3c | Alex Pyrgiotis | method you choose. There are two installation methods available: |
27 | 2d86bc44 | Nikos Skalkotos | |
28 | b50f3b94 | Nikos Skalkotos | #. `Installation using packages <#install-snf-image-creator-using-packages>`_ |
29 | 8a40ba3c | Alex Pyrgiotis | |
30 | 8c7d7b90 | Nikos Skalkotos | #. `Installation from source <#install-snf-image-creator-from-source>`_ |
31 | 2d86bc44 | Nikos Skalkotos | |
32 | 5aa25240 | Nikos Skalkotos | Install snf-image-creator using packages |
33 | 5aa25240 | Nikos Skalkotos | ======================================== |
34 | 0e8550d6 | Alex Pyrgiotis | |
35 | 5aa25240 | Nikos Skalkotos | Ubuntu |
36 | 5aa25240 | Nikos Skalkotos | ------ |
37 | 5aa25240 | Nikos Skalkotos | |
38 | 5aa25240 | Nikos Skalkotos | For *Ubuntu 12.04 LTS* and *12.10* systems, you can use our official packages |
39 | 5aa25240 | Nikos Skalkotos | found in *grnet/synnefo* Lauchpad PPA. |
40 | 0e8550d6 | Alex Pyrgiotis | |
41 | 8c7d7b90 | Nikos Skalkotos | Add the synnefo PPA in your system: |
42 | 2d86bc44 | Nikos Skalkotos | |
43 | 2d86bc44 | Nikos Skalkotos | .. code-block:: console |
44 | 2d86bc44 | Nikos Skalkotos | |
45 | afdddc8d | Nikos Skalkotos | $ sudo apt-add-repository ppa:grnet/synnefo |
46 | afdddc8d | Nikos Skalkotos | $ sudo apt-get update |
47 | a6f30600 | Alex Pyrgiotis | |
48 | afdddc8d | Nikos Skalkotos | If *apt-add-repository* is missing, install *software-properties-common* first: |
49 | a6f30600 | Alex Pyrgiotis | |
50 | a6f30600 | Alex Pyrgiotis | .. code-block:: console |
51 | b5053149 | Alex Pyrgiotis | |
52 | afdddc8d | Nikos Skalkotos | $ sudo apt-get install software-properties-common |
53 | a6f30600 | Alex Pyrgiotis | |
54 | 8c7d7b90 | Nikos Skalkotos | After the synnefo repository is set up, you should be able to list |
55 | 8c7d7b90 | Nikos Skalkotos | snf-image-creator by calling: |
56 | a6f30600 | Alex Pyrgiotis | |
57 | a6f30600 | Alex Pyrgiotis | .. code-block:: console |
58 | a6f30600 | Alex Pyrgiotis | |
59 | e08d574e | Alex Pyrgiotis | $ apt-cache showpkg snf-image-creator |
60 | 2d86bc44 | Nikos Skalkotos | |
61 | 8c7d7b90 | Nikos Skalkotos | Install the package by issuing: |
62 | 2d86bc44 | Nikos Skalkotos | |
63 | 2d86bc44 | Nikos Skalkotos | .. code-block:: console |
64 | 2d86bc44 | Nikos Skalkotos | |
65 | e08d574e | Alex Pyrgiotis | $ sudo apt-get install snf-image-creator |
66 | 2d86bc44 | Nikos Skalkotos | |
67 | 8c7d7b90 | Nikos Skalkotos | If you are using Ubuntu 12.10, also install libguestfs-tools: |
68 | 8c7d7b90 | Nikos Skalkotos | |
69 | 8c7d7b90 | Nikos Skalkotos | .. code-block:: console |
70 | 8c7d7b90 | Nikos Skalkotos | |
71 | 8c7d7b90 | Nikos Skalkotos | $ sudo apt-get install libguestfs-tools |
72 | 8c7d7b90 | Nikos Skalkotos | |
73 | afdddc8d | Nikos Skalkotos | .. note:: |
74 | afdddc8d | Nikos Skalkotos | If you are asked during the installation to create/update a |
75 | afdddc8d | Nikos Skalkotos | "supermin appliance", choose "Yes". |
76 | 0e8550d6 | Alex Pyrgiotis | |
77 | 5aa25240 | Nikos Skalkotos | .. warning:: |
78 | 5aa25240 | Nikos Skalkotos | In *Ubuntu 12.10* the current package of libguestfs (1.18-2) is broken. Take |
79 | 5aa25240 | Nikos Skalkotos | a look at the open `bug report <https://bugs.launchpad.net/ubuntu/quantal/+source/libguestfs/+bug/1086974>`_. |
80 | 5aa25240 | Nikos Skalkotos | Until version 1.18-2ubunut1 is out, you may workaround this problem by |
81 | 5aa25240 | Nikos Skalkotos | creating a symlink like this: |
82 | 5aa25240 | Nikos Skalkotos | |
83 | 5aa25240 | Nikos Skalkotos | *sudo ln -s /usr/lib/guestfs /usr/lib/x86_64-linux-gnu/guestfs* |
84 | 5aa25240 | Nikos Skalkotos | |
85 | b50f3b94 | Nikos Skalkotos | Fedora |
86 | b50f3b94 | Nikos Skalkotos | ------ |
87 | b50f3b94 | Nikos Skalkotos | |
88 | b50f3b94 | Nikos Skalkotos | For *Fedora 17* you can use our official packages hosted at the *synnefo* |
89 | b50f3b94 | Nikos Skalkotos | repository of the openSUSE Build Service. |
90 | b50f3b94 | Nikos Skalkotos | |
91 | b50f3b94 | Nikos Skalkotos | Add the *synnefo* repository for *Fedora 17* to *yum*: |
92 | b50f3b94 | Nikos Skalkotos | |
93 | b50f3b94 | Nikos Skalkotos | .. code-block:: console |
94 | b50f3b94 | Nikos Skalkotos | |
95 | b50f3b94 | Nikos Skalkotos | $ cd /etc/yum.repos.d |
96 | b50f3b94 | Nikos Skalkotos | $ wget http://download.opensuse.org/repositories/home:/GRNET:/synnefo/Fedora_17/home:GRNET:synnefo.repo |
97 | b50f3b94 | Nikos Skalkotos | |
98 | b50f3b94 | Nikos Skalkotos | To list the *snf-image-creator* package use the following command: |
99 | b50f3b94 | Nikos Skalkotos | |
100 | b50f3b94 | Nikos Skalkotos | .. code-block:: console |
101 | b50f3b94 | Nikos Skalkotos | |
102 | b50f3b94 | Nikos Skalkotos | $ yum info snf-image-creator |
103 | b50f3b94 | Nikos Skalkotos | |
104 | b50f3b94 | Nikos Skalkotos | Install the package by issuing: |
105 | b50f3b94 | Nikos Skalkotos | |
106 | b50f3b94 | Nikos Skalkotos | .. code-block:: console |
107 | b50f3b94 | Nikos Skalkotos | |
108 | b50f3b94 | Nikos Skalkotos | $ yum install snf-image-creator |
109 | b50f3b94 | Nikos Skalkotos | |
110 | b50f3b94 | Nikos Skalkotos | CentOS |
111 | b50f3b94 | Nikos Skalkotos | ------ |
112 | b50f3b94 | Nikos Skalkotos | |
113 | b50f3b94 | Nikos Skalkotos | For *CentOS 6* you can use our official packages hosted at the *synnefo* |
114 | b50f3b94 | Nikos Skalkotos | repository of the openSUSE Build Service. |
115 | b50f3b94 | Nikos Skalkotos | |
116 | b50f3b94 | Nikos Skalkotos | Add the *synnefo* repository for *CentOS 6* to the yum repositories list: |
117 | b50f3b94 | Nikos Skalkotos | |
118 | b50f3b94 | Nikos Skalkotos | .. code-block:: console |
119 | b50f3b94 | Nikos Skalkotos | |
120 | b50f3b94 | Nikos Skalkotos | $ cd /etc/yum.repos.d |
121 | b50f3b94 | Nikos Skalkotos | $ wget http://download.opensuse.org/repositories/home:/GRNET:/synnefo/CentOS_CentOS-6/home:GRNET:synnefo.repo |
122 | b50f3b94 | Nikos Skalkotos | |
123 | b50f3b94 | Nikos Skalkotos | Check the `Fedora <#fedora>`_ instructions on how to install the software. |
124 | b50f3b94 | Nikos Skalkotos | |
125 | 5aa25240 | Nikos Skalkotos | Arch Linux |
126 | 5aa25240 | Nikos Skalkotos | ---------- |
127 | 5aa25240 | Nikos Skalkotos | |
128 | 5aa25240 | Nikos Skalkotos | For *Arch Linux* there are **unofficial** packages in AUR: |
129 | 5aa25240 | Nikos Skalkotos | https://aur.archlinux.org/packages/snf-image-creator/ kindly provided by |
130 | 5aa25240 | Nikos Skalkotos | Axilleas Pipinellis <axilleas@archlinux.info>. |
131 | 5aa25240 | Nikos Skalkotos | |
132 | 5aa25240 | Nikos Skalkotos | .. note:: |
133 | 5aa25240 | Nikos Skalkotos | Those packages are not maintained by the Synnefo development team. |
134 | 5aa25240 | Nikos Skalkotos | |
135 | 5aa25240 | Nikos Skalkotos | Please direct package-specific questions to Axilleas Pipinellis <axilleas@archlinux.info>, |
136 | 5aa25240 | Nikos Skalkotos | Cc: the Synnefo development team <synnefo-devel@googlegroups.com> |
137 | 5aa25240 | Nikos Skalkotos | |
138 | 5aa25240 | Nikos Skalkotos | To install the package you may use *yaourt*. Create and install |
139 | 5aa25240 | Nikos Skalkotos | the *yaourt* package: |
140 | 5aa25240 | Nikos Skalkotos | |
141 | 5aa25240 | Nikos Skalkotos | .. code-block:: console |
142 | 5aa25240 | Nikos Skalkotos | |
143 | 5aa25240 | Nikos Skalkotos | $ wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz |
144 | 5aa25240 | Nikos Skalkotos | $ tar -xvf package-query.tar.gz |
145 | 5aa25240 | Nikos Skalkotos | $ cd package-query |
146 | 5aa25240 | Nikos Skalkotos | $ makepkg -s |
147 | 5aa25240 | Nikos Skalkotos | $ pacman -U package-query-<VERSION>-<ARCH>.pkg.tar.xz |
148 | 5aa25240 | Nikos Skalkotos | $ cd .. |
149 | 5aa25240 | Nikos Skalkotos | $ wget https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz |
150 | 5aa25240 | Nikos Skalkotos | $ tar -xvf yaourt.tar.gz |
151 | 5aa25240 | Nikos Skalkotos | $ cd yaourt |
152 | 5aa25240 | Nikos Skalkotos | $ makepkg -s |
153 | 5aa25240 | Nikos Skalkotos | $ pacman -U yaourt-<VERSION>-<ARCH>.pkg.tar.xz |
154 | 5aa25240 | Nikos Skalkotos | |
155 | 5aa25240 | Nikos Skalkotos | Install *snf-image-creator* using yaourt: |
156 | 5aa25240 | Nikos Skalkotos | |
157 | 5aa25240 | Nikos Skalkotos | .. code-block:: console |
158 | 5aa25240 | Nikos Skalkotos | |
159 | 5aa25240 | Nikos Skalkotos | $ yaourt -Sa snf-image-creator |
160 | 5aa25240 | Nikos Skalkotos | |
161 | 0e8550d6 | Alex Pyrgiotis | Install snf-image-creator from source |
162 | 0e8550d6 | Alex Pyrgiotis | ===================================== |
163 | 0e8550d6 | Alex Pyrgiotis | |
164 | afdddc8d | Nikos Skalkotos | Manually install the following dependencies: |
165 | 0e8550d6 | Alex Pyrgiotis | |
166 | afdddc8d | Nikos Skalkotos | * Python 2 [http://www.python.org/] |
167 | afdddc8d | Nikos Skalkotos | * Python setuptools [http://pypi.python.org/pypi/setuptools] |
168 | afdddc8d | Nikos Skalkotos | * Python Dialog [http://pythondialog.sourceforge.net/] |
169 | afdddc8d | Nikos Skalkotos | * Python bindings for libguestfs [http://libguestfs.org/] |
170 | afdddc8d | Nikos Skalkotos | * Python interface to sendfile [http://pypi.python.org/pypi/pysendfile] |
171 | afdddc8d | Nikos Skalkotos | * pyparted [https://fedorahosted.org/pyparted/] |
172 | aab4b154 | Nikos Skalkotos | * rsync [http://rsync.samba.org/] |
173 | 0e8550d6 | Alex Pyrgiotis | |
174 | afdddc8d | Nikos Skalkotos | In Ubuntu you can do this using: |
175 | afdddc8d | Nikos Skalkotos | |
176 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
177 | 0e8550d6 | Alex Pyrgiotis | |
178 | eb5123b7 | Nikos Skalkotos | $ sudo apt-get install python-setuptools python-guestfs python-dialog \ |
179 | aab4b154 | Nikos Skalkotos | python-sendfile python-parted rsync |
180 | a2ba6432 | Alex Pyrgiotis | |
181 | 8c7d7b90 | Nikos Skalkotos | If you are using Ubuntu 12.10 you also need to install libguestfs-tools: |
182 | 8c7d7b90 | Nikos Skalkotos | |
183 | 8c7d7b90 | Nikos Skalkotos | .. code-block:: console |
184 | 8c7d7b90 | Nikos Skalkotos | |
185 | 8c7d7b90 | Nikos Skalkotos | $ sudo apt-get install libguestfs-tools |
186 | 8c7d7b90 | Nikos Skalkotos | |
187 | afdddc8d | Nikos Skalkotos | .. note:: |
188 | 4197b5a6 | Nikos Skalkotos | If you are asked during the installation to create/update a |
189 | afdddc8d | Nikos Skalkotos | "supermin appliance", choose "Yes". |
190 | 0e8550d6 | Alex Pyrgiotis | |
191 | 0e8550d6 | Alex Pyrgiotis | Python Virtual Environment |
192 | 0e8550d6 | Alex Pyrgiotis | -------------------------- |
193 | 0e8550d6 | Alex Pyrgiotis | |
194 | a2ba6432 | Alex Pyrgiotis | Since snf-image-creator and the rest of its dependencies won't be installed |
195 | 0e8550d6 | Alex Pyrgiotis | using packages, it's better to work in an isolated python virtual environment |
196 | afdddc8d | Nikos Skalkotos | (virtualenv). |
197 | afdddc8d | Nikos Skalkotos | |
198 | afdddc8d | Nikos Skalkotos | Install the Virtual Python Environment builder: |
199 | afdddc8d | Nikos Skalkotos | http://pypi.python.org/pypi/virtualenv. |
200 | afdddc8d | Nikos Skalkotos | |
201 | afdddc8d | Nikos Skalkotos | For Ubuntu use the following command: |
202 | 0e8550d6 | Alex Pyrgiotis | |
203 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
204 | 0e8550d6 | Alex Pyrgiotis | |
205 | eb5123b7 | Nikos Skalkotos | $ sudo apt-get install python-virtualenv |
206 | 0e8550d6 | Alex Pyrgiotis | |
207 | 8c7d7b90 | Nikos Skalkotos | Then create a new python virtual environment: |
208 | 0e8550d6 | Alex Pyrgiotis | |
209 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
210 | 0e8550d6 | Alex Pyrgiotis | |
211 | 0e8550d6 | Alex Pyrgiotis | $ virtualenv --system-site-packages ~/image-creator-env |
212 | 0e8550d6 | Alex Pyrgiotis | |
213 | 0e8550d6 | Alex Pyrgiotis | and activate it by executing: |
214 | 0e8550d6 | Alex Pyrgiotis | |
215 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
216 | 0e8550d6 | Alex Pyrgiotis | |
217 | 0e8550d6 | Alex Pyrgiotis | $ source ~/image-creator-env/bin/activate |
218 | 0e8550d6 | Alex Pyrgiotis | |
219 | afdddc8d | Nikos Skalkotos | You may later deactivate it using: |
220 | 0e8550d6 | Alex Pyrgiotis | |
221 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
222 | 0e8550d6 | Alex Pyrgiotis | |
223 | 0e8550d6 | Alex Pyrgiotis | $ deactivate |
224 | 0e8550d6 | Alex Pyrgiotis | |
225 | 0e8550d6 | Alex Pyrgiotis | kamaki Installation |
226 | 0e8550d6 | Alex Pyrgiotis | ------------------- |
227 | 0e8550d6 | Alex Pyrgiotis | |
228 | afdddc8d | Nikos Skalkotos | Refer to `./kamaki documentation <http://docs.dev.grnet.gr/kamaki/latest/installation.html>`_ |
229 | 8c7d7b90 | Nikos Skalkotos | for instructions. You may install kamaki from source inside the virtualenv |
230 | eb5123b7 | Nikos Skalkotos | you've created above or by using binary packages if they are available for your |
231 | 8c7d7b90 | Nikos Skalkotos | distribution. |
232 | 0e8550d6 | Alex Pyrgiotis | |
233 | afdddc8d | Nikos Skalkotos | snf-image-creator Installation |
234 | afdddc8d | Nikos Skalkotos | ------------------------------ |
235 | 0e8550d6 | Alex Pyrgiotis | |
236 | afdddc8d | Nikos Skalkotos | Download the latest snf-image-creator source package from |
237 | afdddc8d | Nikos Skalkotos | `here <https://code.grnet.gr/projects/snf-image-creator/files>`_ and install it |
238 | afdddc8d | Nikos Skalkotos | inside the virtualenv using the following commands: |
239 | 0e8550d6 | Alex Pyrgiotis | |
240 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
241 | 0e8550d6 | Alex Pyrgiotis | |
242 | afdddc8d | Nikos Skalkotos | $ tar -xf snf_image_creator-<VERSION>.tar.gz |
243 | afdddc8d | Nikos Skalkotos | $ cd snf_image_creator-<VERSION> |
244 | eb5123b7 | Nikos Skalkotos | $ python ./setup.py install |
245 | 0e8550d6 | Alex Pyrgiotis | |
246 | afdddc8d | Nikos Skalkotos | Alternatively, you can install the bleeding edge version of the software by |
247 | afdddc8d | Nikos Skalkotos | cloning its git repository: |
248 | 0e8550d6 | Alex Pyrgiotis | |
249 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
250 | 0e8550d6 | Alex Pyrgiotis | |
251 | 0e8550d6 | Alex Pyrgiotis | $ git clone https://code.grnet.gr/git/snf-image-creator |
252 | 0e8550d6 | Alex Pyrgiotis | $ cd snf-image-creator |
253 | afdddc8d | Nikos Skalkotos | $ python ./setup.py install |
254 | 0e8550d6 | Alex Pyrgiotis | |
255 | afdddc8d | Nikos Skalkotos | To do the latter, you'll need to have git (http://git-scm.com/) installed. |
256 | afdddc8d | Nikos Skalkotos | For ubuntu this can be done using: |
257 | 0e8550d6 | Alex Pyrgiotis | |
258 | 0e8550d6 | Alex Pyrgiotis | .. code-block:: console |
259 | 0e8550d6 | Alex Pyrgiotis | |
260 | eb5123b7 | Nikos Skalkotos | $ sudo apt-get install git |
261 | afdddc8d | Nikos Skalkotos | |
262 | afdddc8d | Nikos Skalkotos | .. warning:: |
263 | afdddc8d | Nikos Skalkotos | Keep in mind that the bleeding edge version may be unstable or even |
264 | afdddc8d | Nikos Skalkotos | unusable. |