libvirt/src/conf
Daniel P. Berrange 652f887144 Allow passing of command line args to LXC container
When booting a virtual machine with a kernel/initrd it is possible
to pass command line arguments using the <cmdline>...args...</cmdline>
element in the guest XML. These appear to the kernel / init process
in /proc/cmdline.

When booting a container we do not have a custom /proc/cmdline,
but we can easily set an environment variable for it. Ideally
we could pass individual arguments to the init process as a
regular set of 'char *argv[]' parameters, but that would involve
libvirt parsing the <cmdline> XML text. This can easily be added
later, even if we add the env variable now

* docs/drvlxc.html.in: Document env variables passed to LXC
* src/conf/domain_conf.c: Add <cmdline> to be parsed for
  guests of type='exe'
* src/lxc/lxc_container.c: Set LIBVIRT_LXC_CMDLINE env var
2011-10-04 14:15:09 +01:00
..
capabilities.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
capabilities.h domain: Require <init> for container guests 2011-05-13 10:32:53 -04:00
cpu_conf.c conf: prefer unsigned flags 2011-07-13 17:05:10 -06:00
cpu_conf.h conf: prefer unsigned flags 2011-07-13 17:05:10 -06:00
domain_audit.c Avoid using "devname" as an identifier. 2011-09-16 20:49:04 +08:00
domain_audit.h snapshot: make it possible to audit external snapshot 2011-09-05 07:03:05 -06:00
domain_conf.c Allow passing of command line args to LXC container 2011-10-04 14:15:09 +01:00
domain_conf.h qemu: make PCI multifunction support more manual 2011-10-01 11:48:28 -04:00
domain_event.c maint: fix comment typos 2011-08-23 11:31:28 -06:00
domain_event.h Asynchronous event for BlockJob completion 2011-07-22 13:57:42 +08:00
domain_nwfilter.c nwfilter: fix loadable module support 2010-06-21 14:18:31 -04:00
domain_nwfilter.h nwfilter: fix loadable module support 2010-06-21 14:18:31 -04:00
interface_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
interface_conf.h interface: implement a test driver for network config transaction API. 2011-05-27 14:34:13 -04:00
network_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
network_conf.h bandwidth: Integrate bandwidth into portgroups 2011-07-27 10:26:25 +02:00
node_device_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
node_device_conf.h pci: Move some pci sriov helper code out of node device driver to util/pci 2011-08-16 11:59:00 -04:00
nwfilter_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
nwfilter_conf.h nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00
nwfilter_params.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
nwfilter_params.h This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
secret_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
secret_conf.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
storage_conf.c xml: Clean up rest of virtual XML document names for XML strings 2011-09-14 09:09:04 -06:00
storage_conf.h Check for source conflicts in storage pools 2011-09-05 15:52:03 +08:00
storage_encryption_conf.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_encryption_conf.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00