Skip to content

Commit

Permalink
doc: describe libvirt client logging
Browse files Browse the repository at this point in the history
Describe how to configure logging and the admin socket for debugging RBD
libvirt clients.

Thanks to Jason Dillman <[email protected]> on ceph-devel for this
information.

Signed-off-by: Ken Dreyer <[email protected]>
  • Loading branch information
ktdreyer committed Aug 4, 2016
1 parent 367cb84 commit 8e8d55b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/rbd/libvirt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ To configure Ceph for use with ``libvirt``, perform the following steps:
**NOTE:** You can also use `rbd create`_ to create an image, but we
recommend ensuring that QEMU is working properly.

.. tip:: Optionally, if you wish to enable debug logs and the admin socket for
this client, you can add the following section to ``/etc/ceph/ceph.conf``::

[client.libvirt]
log file = /var/log/ceph/qemu-guest-$pid.log
admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok

The ``client.libvirt`` section name should match the cephx user you created
above. If SELinux or AppArmor is enabled, note that this could prevent the
client process (qemu via libvirt) from writing the logs or admin socket to
the destination locations (``/var/log/ceph`` or ``/var/run/ceph``).



Preparing the VM Manager
Expand Down

0 comments on commit 8e8d55b

Please sign in to comment.