libvirt/src
Matthias Bolte b8fa5fd071 esx: Implement network driver
An ESX server has one or more PhysicalNics that represent the actual
hardware NICs. Those can be listed via the interface driver.

A libvirt virtual network is mapped to a HostVirtualSwitch. On the
physical side a HostVirtualSwitch can be connected to PhysicalNics.
On the virtual side a HostVirtualSwitch has HostPortGroups that are
mapped to libvirt virtual network's portgroups. Typically there is
HostPortGroups named 'VM Network' that is used to connect virtual
machines to a HostVirtualSwitch. A second HostPortGroup typically
named 'Management Network' is used to connect the hypervisor itself
to the HostVirtualSwitch. This one is not mapped to a libvirt virtual
network's portgroup. There can be more HostPortGroups than those
typical two on a HostVirtualSwitch.

         +---------------+-------------------+
   ...---|               |                   |   +-------------+
         | HostPortGroup |                   |---| PhysicalNic |
         |   VM Network  |                   |   |    vmnic0   |
   ...---|               |                   |   +-------------+
         +---------------+ HostVirtualSwitch |
                         |     vSwitch0      |
         +---------------+                   |
         | HostPortGroup |                   |
   ...---|   Management  |                   |
         |    Network    |                   |
         +---------------+-------------------+

The virtual counterparts of the PhysicalNic is the HostVirtualNic for
the hypervisor and the VirtualEthernetCard for the virtual machines
that are grouped into HostPortGroups.

   +---------------------+   +---------------+---...
   | VirtualEthernetCard |---|               |
   +---------------------+   | HostPortGroup |
   +---------------------+   |   VM Network  |
   | VirtualEthernetCard |---|               |
   +---------------------+   +---------------+
                                             |
                             +---------------+
   +---------------------+   | HostPortGroup |
   |    HostVirtualNic   |---|   Management  |
   +---------------------+   |    Network    |
                             +---------------+---...

The currently implemented network driver can list, define and undefine
HostVirtualSwitches including HostPortGroups for virtual machines.
Existing HostVirtualSwitches cannot be edited yet. This will be added
in a followup patch.
2012-08-09 22:31:47 +02:00
..
conf esx: Implement network driver 2012-08-09 22:31:47 +02:00
cpu Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
esx esx: Implement network driver 2012-08-09 22:31:47 +02:00
hyperv maint: avoid regression on copyright listings 2012-07-27 07:42:34 -06:00
interface Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libxl Turn virDomainObjPtr into a virObjectPtr 2012-08-07 11:47:41 +01:00
locking Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
lxc Turn virNetClient* into virObject instances 2012-08-07 11:47:55 +01:00
network Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
node_device Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
nwfilter nwfilter: remove target table before renaming it 2012-08-09 16:17:13 -04:00
openvz Turn virDomainObjPtr into a virObjectPtr 2012-08-07 11:47:41 +01:00
parallels Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
phyp Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
qemu qemu: Fix debug message in p2p migration 2012-08-09 15:37:05 +02:00
remote remote: Clean up coding style and refactor remote connection opening 2012-08-09 11:36:03 +02:00
rpc Fix errno check, prevent spurious errors under heavy load 2012-08-08 15:50:58 -06:00
secret Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
security virrandom: make virRandomInitialize an automatic one-shot 2012-08-06 08:15:13 -06:00
storage Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
test maint: don't permit format strings without % 2012-07-26 14:32:30 -06:00
uml Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
util Add APIs for obtaining the unique ID of LVM & SCSI volumes 2012-08-09 16:12:01 +01:00
vbox Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
vmware Turn virDomainObjPtr into a virObjectPtr 2012-08-07 11:47:41 +01:00
vmx Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
xen Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
xenapi Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
xenxs xen-xm: Generate UUID if not specified 2012-08-03 16:16:56 -06:00
check-symfile.pl Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
datatypes.c Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
datatypes.h Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
driver.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
driver.h parallels: add driver skeleton 2012-08-01 11:44:26 +08:00
dtrace2systemtap.pl Remove tabs from all perl files & enforce this 2012-07-30 13:09:57 +01:00
fdstream.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
fdstream.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
gnutls_1_0_compat.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
internal.h maint: include ignore-value in internal.h 2012-06-28 16:36:30 +02:00
libvirt_atomic.syms Rewrite virAtomic APIs using GLib's atomic ops code 2012-08-02 11:50:59 +01:00
libvirt_daemon.syms
libvirt_driver_modules.syms Override default driver dir when running from GIT 2012-05-24 13:18:01 +01:00
libvirt_esx.syms Remove libvirt_test.la library 2012-05-24 13:18:00 +01:00
libvirt_internal.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirt_linux.syms build: Don't export xenLinuxDomainBlockStats symbol 2012-07-31 11:28:32 +02:00
libvirt_openvz.syms openvz: Add openvzVEGetStringParam 2012-07-20 21:54:35 +02:00
libvirt_private.syms Turn virNetClient* into virObject instances 2012-08-07 11:47:55 +01:00
libvirt_probes.d Turn virNetClient* into virObject instances 2012-08-07 11:47:55 +01:00
libvirt_public.syms build: commit to 0.10.0 release naming 2012-08-02 18:55:43 +08:00
libvirt_qemu_probes.d Split QEMU dtrace probes into separate file 2012-05-24 13:18:01 +01:00
libvirt_qemu.syms Define a QEMU specific API to attach to a running QEMU process 2011-07-12 15:39:03 +01:00
libvirt_sasl.syms Turn virNetSASLContext and virNetSASLSession into virObject instances 2012-08-07 11:47:41 +01:00
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-qemu.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirt.c Convert public datatypes to inherit from virObject 2012-08-07 11:47:41 +01:00
libvirt.conf Allow overriding default URI in config file 2012-03-15 11:20:17 +00:00
Makefile.am Add a generic reference counted virObject type 2012-08-07 11:47:41 +01:00
nodeinfo.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
nodeinfo.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
qemu_protocol-structs build: use correct type for pid and similar types 2012-03-02 06:57:43 -07:00
README hyperv: Add basic documentation 2011-08-26 17:52:55 +02:00
remote_protocol-structs remote: Provide RPC call for domainGetHostname 2012-07-20 21:54:35 +02:00
virkeepaliveprotocol-structs build: Properly generate and check virkeepaliveprotocol-structs 2011-11-24 14:44:04 +01: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