libvirt/src
Sage Weil 5745dc123a qemu/rbd: improve rbd device specification
This improves the support for qemu rbd devices by adding support for a few
key features (e.g., authentication) and cleaning up the way in which
rbd configuration options are passed to qemu.

An <auth> member of the disk source xml specifies how librbd should
authenticate. The username attribute is the Ceph/RBD user to authenticate as.
The usage or uuid attributes specify which secret to use. Usage is an
arbitrary identifier local to libvirt.

The old RBD support relied on setting an environment variable to
communicate information to qemu/librbd.  Instead, pass those options
explicitly to qemu.  Update the qemu argument parsing and tests
accordingly.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-11-15 17:06:42 -07:00
..
conf Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
cpu snapshot: simplify indentation of cpu features 2011-10-20 16:56:28 -06:00
esx Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
hyperv hyperv: Report an error for acceptable URI schemes with a transport 2011-09-29 10:26:18 +02:00
interface
libxl Fix default console type setting 2011-11-03 12:01:48 +00:00
locking virLockManagerNopInit: Rename flags to unused_flags 2011-09-27 11:11:14 +02:00
lxc Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
network Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
node_device build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
nwfilter Remove ifaceUp, ifaceDown, ifaceCtrl & ifaceIsUp APIs 2011-11-15 10:28:02 +00:00
openvz build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
phyp Fix default console type setting 2011-11-03 12:01:48 +00:00
qemu qemu/rbd: improve rbd device specification 2011-11-15 17:06:42 -07:00
remote API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00
rpc Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
secret secret: add Ceph secret type 2011-10-28 11:34:17 -06:00
security Add missing defaultConsoleTargetType callback for AppArmour 2011-11-07 15:15:25 +00:00
storage storage: forbid rebuilding existing disk storage pools 2011-11-14 18:19:40 +01:00
test Fix default console type setting 2011-11-03 12:01:48 +00:00
uml build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
util Fix strchr call triggering gcc 4.3 & 4.4 bug 2011-11-15 15:00:10 -05:00
vbox Santize naming of socket address APIs 2011-11-09 17:10:23 +00:00
vmware Fix default console type setting 2011-11-03 12:01:48 +00:00
vmx esx: Support vSphere 5.x 2011-11-01 18:00:34 +01:00
xen Fix default console type setting 2011-11-03 12:01:48 +00:00
xenapi xenapi: remove unused variable 2011-11-11 11:10:18 -07:00
xenxs Allow multiple consoles per virtual guest 2011-11-03 12:01:05 +00:00
.gitignore Rewrite all the DTrace/SystemTAP probing 2011-10-11 11:26:13 +01:00
datatypes.c
datatypes.h
driver.c
driver.h Introduce the virDomainOpenGraphics API 2011-10-28 10:23:51 +01:00
dtrace2systemtap.pl Add a systemtap script for watching QEMU monitor interactions 2011-10-27 10:42:14 +01:00
fdstream.c virFDStream: close also given errfd (fd leak) 2011-10-13 12:09:48 -06:00
fdstream.h
gnutls_1_0_compat.h
internal.h Rewrite all the DTrace/SystemTAP probing 2011-10-11 11:26:13 +01:00
libvirt_bridge.syms bridge: modify for use when sVirt is enabled with qemu 2011-10-27 20:28:39 -06:00
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_internal.h API: add VIR_TYPED_PARAM_STRING 2011-11-11 17:21:36 -07:00
libvirt_linux.syms
libvirt_macvtap.syms
libvirt_network.syms
libvirt_nwfilter.syms
libvirt_private.syms Remove ifaceSetMac and ifaceGetMac APIs 2011-11-15 10:28:03 +00:00
libvirt_public.syms Introduce the virDomainOpenGraphics API 2011-10-28 10:23:51 +01:00
libvirt_qemu.syms
libvirt_sasl.syms build: fix mingw build without sasl 2011-10-11 16:30:25 -06:00
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c qemu_api: doc improvements 2011-09-15 13:56:38 -06:00
libvirt.c API: add VIR_TYPED_PARAM_STRING 2011-11-11 17:21:36 -07:00
libvirt.conf Allow for URI aliases when connecting to libvirt 2011-10-19 09:14:34 +01:00
Makefile.am Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
nodeinfo.c nodeinfo: Fix incorrect error codes 2011-09-01 17:35:23 +08:00
nodeinfo.h
probes.d Add APIs for virNetSocket for sending/receiving file descriptors 2011-10-28 10:23:53 +01:00
qemu_protocol-structs
README hyperv: Add basic documentation 2011-08-26 17:52:55 +02:00
remote_protocol-structs API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00
virnetprotocol-structs Extend RPC protocol to allow FD passing 2011-10-28 10:27:15 +01:00

       libvirt library code README
       ===========================

The directory provides the bulk of the libvirt codebase. Everything
except for the libvirtd daemon and client tools. The build uses a
large number of libtool convenience libraries - one for each child
directory, and then links them together for the final libvirt.so,
although some bits get linked directly to libvirtd daemon instead.

The files directly in this directory are supporting the public API
entry points & data structures.

There are two core shared modules to be aware of:

 * util/  - a collection of shared APIs that can be used by any
            code. This directory is always in the include path
            for all things built

 * conf/  - APIs for parsing / manipulating all the official XML
            files used by the public API. This directory is only
            in the include path for driver implementation modules

 * vmx/   - VMware VMX config handling (used by esx/ and vmware/)


Then there are the hypervisor implementations:

 * esx/          - VMware ESX and GSX support using vSphere API over SOAP
 * hyperv/       - Microsoft Hyper-V support using WinRM
 * lxc/          - Linux Native Containers
 * openvz/       - OpenVZ containers using cli tools
 * phyp/         - IBM Power Hypervisor using CLI tools over SSH
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * uml/          - User Mode Linux
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore
 * xenapi/       - Xen using libxenserver


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
The ESX, Hyper-V, Power Hypervisor, Remote, Test & VirtualBox drivers all
implement the secondary drivers directly

 * cpu/          - CPU feature management
 * interface/    - Host network interface management
 * network/      - Virtual NAT networking
 * nwfilter/     - Network traffic filtering rules
 * node_device/  - Host device enumeration
 * secret/       - Secret management
 * security/     - Mandatory access control drivers
 * storage/      - Storage management drivers


Since both the hypervisor and secondary drivers can be built as
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
between these directories. Drivers are only allowed to depend on
the public API, and the internal APIs in the util/ and conf/
directories