2015-02-12 07:07:47 +00:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
2016-11-03 00:38:39 +00:00
|
|
|
If your distribution does not proivde packages, you should install
|
|
|
|
``diskimage-builder`` via ``pip``, mostly likely in a ``virtualenv``
|
|
|
|
to keep it separate.
|
2015-04-12 16:07:51 +00:00
|
|
|
|
2016-11-03 00:38:39 +00:00
|
|
|
For example, to create a ``virtualenv`` and install from ``pip``
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
virtualenv ~/dib-virtualenv
|
|
|
|
. ~/dib-virtualenv/bin/activate
|
|
|
|
pip install diskimage-builder
|
|
|
|
|
|
|
|
|
|
|
|
Once installed, you will be able to :doc:`build images
|
|
|
|
<building_an_image>` using ``disk-image-create`` and the elements
|
|
|
|
included in the main ``diskimage-builder`` repository.
|
2015-04-12 16:07:51 +00:00
|
|
|
|
2015-02-12 07:07:47 +00:00
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2016-11-03 00:38:39 +00:00
|
|
|
Most image formats require the ``qemu-img`` tool which is provided by
|
|
|
|
the ``qemu-utils`` package on Ubuntu/Debian or the ``qemu`` package on
|
2016-02-18 16:57:07 +00:00
|
|
|
Fedora/RHEL/opensuse/Gentoo.
|
2015-04-12 16:07:51 +00:00
|
|
|
|
2016-11-03 00:38:39 +00:00
|
|
|
Some image formats, such as ``VHD``, may require additional
|
|
|
|
tools. Please see the ``disk-image-create`` help output for more
|
|
|
|
information.
|
2015-04-12 16:07:51 +00:00
|
|
|
|
|
|
|
Individual elements can also have additional dependencies for the build host.
|
|
|
|
It is recommended you check the documentation for each element you are using
|
2016-02-18 16:57:07 +00:00
|
|
|
to determine if there are any additional dependencies. Of particular note is
|
|
|
|
the need for the `dev-python/pyyaml` package on Gentoo hosts.
|
2015-04-12 16:07:51 +00:00
|
|
|
|
2016-10-12 01:17:49 +00:00
|
|
|
Package Installation
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
On Gentoo you can emerge diskimage-builder directly.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
emerge app-emulation/diskimage-builder
|
|
|
|
|