]> git.proxmox.com Git - ceph.git/blame - ceph/doc/install/install-vm-cloud.rst
Import ceph 15.2.8
[ceph.git] / ceph / doc / install / install-vm-cloud.rst
CommitLineData
7c673cae
FG
1=========================================
2 Install Virtualization for Block Device
3=========================================
4
5If you intend to use Ceph Block Devices and the Ceph Storage Cluster as a
6backend for Virtual Machines (VMs) or :term:`Cloud Platforms` the QEMU/KVM and
7``libvirt`` packages are important for enabling VMs and cloud platforms.
8Examples of VMs include: QEMU/KVM, XEN, VMWare, LXC, VirtualBox, etc. Examples
9of Cloud Platforms include OpenStack, CloudStack, OpenNebula, etc.
10
11
f91f0fd5
TL
12.. ditaa::
13
14 +---------------------------------------------------+
7c673cae
FG
15 | libvirt |
16 +------------------------+--------------------------+
17 |
18 | configures
19 v
20 +---------------------------------------------------+
21 | QEMU |
22 +---------------------------------------------------+
23 | librbd |
9f95a23c
TL
24 +---------------------------------------------------+
25 | librados |
7c673cae
FG
26 +------------------------+-+------------------------+
27 | OSDs | | Monitors |
28 +------------------------+ +------------------------+
29
30
31Install QEMU
32============
33
34QEMU KVM can interact with Ceph Block Devices via ``librbd``, which is an
35important feature for using Ceph with cloud platforms. Once you install QEMU,
36see `QEMU and Block Devices`_ for usage.
37
38
39Debian Packages
40---------------
41
42QEMU packages are incorporated into Ubuntu 12.04 Precise Pangolin and later
43versions. To install QEMU, execute the following::
44
45 sudo apt-get install qemu
46
47
48RPM Packages
49------------
50
51To install QEMU, execute the following:
52
53
54#. Update your repositories. ::
55
56 sudo yum update
57
58#. Install QEMU for Ceph. ::
59
60 sudo yum install qemu-kvm qemu-kvm-tools qemu-img
61
62#. Install additional QEMU packages (optional)::
63
64 sudo yum install qemu-guest-agent qemu-guest-agent-win32
65
66
67Building QEMU
68-------------
69
70To build QEMU from source, use the following procedure::
71
72 cd {your-development-directory}
73 git clone git://git.qemu.org/qemu.git
74 cd qemu
75 ./configure --enable-rbd
76 make; make install
77
78
79
80Install libvirt
81===============
82
83To use ``libvirt`` with Ceph, you must have a running Ceph Storage Cluster, and
84you must have installed and configured QEMU. See `Using libvirt with Ceph Block
85Device`_ for usage.
86
87
88Debian Packages
89---------------
90
91``libvirt`` packages are incorporated into Ubuntu 12.04 Precise Pangolin and
92later versions of Ubuntu. To install ``libvirt`` on these distributions,
93execute the following::
94
95 sudo apt-get update && sudo apt-get install libvirt-bin
96
97
98RPM Packages
99------------
100
101To use ``libvirt`` with a Ceph Storage Cluster, you must have a running Ceph
102Storage Cluster and you must also install a version of QEMU with ``rbd`` format
103support. See `Install QEMU`_ for details.
104
105
106``libvirt`` packages are incorporated into the recent CentOS/RHEL distributions.
107To install ``libvirt``, execute the following::
108
109 sudo yum install libvirt
110
111
112Building ``libvirt``
113--------------------
114
115To build ``libvirt`` from source, clone the ``libvirt`` repository and use
116`AutoGen`_ to generate the build. Then, execute ``make`` and ``make install`` to
117complete the installation. For example::
118
119 git clone git://libvirt.org/libvirt.git
120 cd libvirt
121 ./autogen.sh
122 make
123 sudo make install
124
125See `libvirt Installation`_ for details.
126
127
128
129.. _libvirt Installation: http://www.libvirt.org/compiling.html
130.. _AutoGen: http://www.gnu.org/software/autogen/
131.. _QEMU and Block Devices: ../../rbd/qemu-rbd
132.. _Using libvirt with Ceph Block Device: ../../rbd/libvirt