2012-07-06 19:21:34 +00:00
|
|
|
=================================
|
|
|
|
Using ``libvirt`` with Ceph RBD
|
|
|
|
=================================
|
|
|
|
|
|
|
|
The ``libvirt`` library creates a virtual machine abstraction layer between
|
|
|
|
hypervisor interfaces and the software applications that use them. With
|
|
|
|
``libvirt``, developers and system administrators can focus on a common
|
|
|
|
management framework, common API, and common shell interface (i.e., ``virsh``)
|
|
|
|
to many different hypervisors, including:
|
|
|
|
|
|
|
|
- QEMU/KVM
|
|
|
|
- XEN
|
|
|
|
- LXC
|
|
|
|
- VirtualBox
|
|
|
|
- etc.
|
|
|
|
|
|
|
|
Ceph RADOS block devices support QEMU/KVM, which means you can use RADOS
|
|
|
|
block devices with software that interfaces with ``libvirt``. For example,
|
|
|
|
OpenStack's integration to Ceph uses ``libvirt`` to interact with QEMU/KVM,
|
|
|
|
and QEMU/KVM interacts with RADOS block devices via ``librbd``.
|
|
|
|
|
|
|
|
See `libvirt Virtualization API`_ for details.
|
2012-06-18 20:22:18 +00:00
|
|
|
|
|
|
|
Installing ``libvirt`` on Ubuntu 12.04 Precise
|
|
|
|
----------------------------------------------
|
2012-06-20 21:29:58 +00:00
|
|
|
|
2012-06-18 20:22:18 +00:00
|
|
|
``libvirt`` packages are incorporated into the Ubuntu 12.04 precise
|
|
|
|
distribution. To install ``libvirt`` on precise, execute the following::
|
|
|
|
|
2012-06-20 21:29:58 +00:00
|
|
|
sudo apt-get update && sudo apt-get install libvirt-bin
|
|
|
|
|
2012-06-18 20:22:18 +00:00
|
|
|
|
|
|
|
Installing ``libvirt`` on Earlier Versions of Ubuntu
|
|
|
|
----------------------------------------------------
|
2012-06-20 21:29:58 +00:00
|
|
|
|
2012-06-18 20:22:18 +00:00
|
|
|
For Ubuntu distributions 11.10 oneiric and earlier, you must build
|
2012-06-20 21:29:58 +00:00
|
|
|
``libvirt`` from source. Clone the ``libvirt`` repository, and use
|
|
|
|
`AutoGen`_ to generate the build. Then execute ``make`` and
|
|
|
|
``make install`` to complete the installation. For example::
|
2012-06-18 20:22:18 +00:00
|
|
|
|
|
|
|
git clone git://libvirt.org/libvirt.git
|
|
|
|
cd libvirt
|
2012-06-20 21:29:58 +00:00
|
|
|
./autogen.sh
|
2012-06-18 20:22:18 +00:00
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2012-06-20 21:29:58 +00:00
|
|
|
See `libvirt Installation`_ for details.
|
2012-06-18 20:22:18 +00:00
|
|
|
|
2012-06-20 21:29:58 +00:00
|
|
|
.. _AutoGen: http://www.gnu.org/software/autogen/
|
2012-07-06 19:21:34 +00:00
|
|
|
.. _libvirt Installation: http://www.libvirt.org/compiling.html
|
|
|
|
.. _libvirt Virtualization API: http://www.libvirt.org
|