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
..
2011-05-05 13:47:40 -06:00
2011-02-21 14:46:23 +01:00
2009-09-21 14:41:47 +01:00
2011-08-12 13:54:10 +01:00
2011-10-01 11:48:28 -04:00
2010-10-12 11:26:52 +01:00
2006-01-23 22:55:41 +00:00
2010-10-27 16:29:25 -06:00
2011-04-01 16:03:11 -06:00
2011-09-14 11:36:10 +08:00
2011-07-14 15:34:37 -06:00
2008-04-23 17:08:31 +00:00
2005-12-21 16:59:34 +00:00
2005-12-21 16:59:34 +00:00
2010-10-27 15:01:45 +11:00
2011-04-01 16:03:11 -06:00
2008-04-23 17:08:31 +00:00
2009-11-06 16:05:18 +01:00
2010-10-27 15:01:45 +11:00
2011-02-09 12:29:29 -07:00
2010-11-10 13:16:37 +01:00
2010-12-21 20:55:10 +11:00
2011-01-05 18:07:30 +11:00
2010-11-30 02:22:38 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2008-04-23 17:08:31 +00:00
2010-12-21 20:55:10 +11:00
2011-08-26 17:52:55 +02:00
2011-07-15 13:19:41 -06:00
2011-08-26 17:52:55 +02:00
2011-10-04 14:15:09 +01:00
2011-07-15 13:19:41 -06:00
2011-08-26 16:48:24 -06:00
2008-04-23 17:08:31 +00:00
2009-11-16 22:42:13 +01:00
2011-07-15 13:19:41 -06:00
2011-07-15 13:19:41 -06:00
2011-07-15 13:19:41 -06:00
2011-07-15 13:19:41 -06:00
2009-09-22 12:55:39 +02:00
2008-04-28 08:29:35 +00:00
2010-07-10 22:47:00 +10:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2011-01-17 17:08:13 +01:00
2011-10-01 11:48:28 -04:00
2011-08-11 00:21:33 -04:00
2011-09-28 09:40:10 -06:00
2011-05-23 19:41:18 -04:00
2009-11-06 16:05:18 +01:00
2011-09-05 07:03:04 -06:00
2010-11-25 10:40:07 +01:00
2011-04-01 16:03:11 -06:00
2009-12-03 15:27:24 +01:00
2011-03-28 10:40:24 +08:00
2010-11-12 19:47:20 +01:00
2010-11-12 19:47:20 +01:00
2011-07-21 10:34:51 -06:00
2011-03-31 14:36:19 -06:00
2011-06-06 10:45:59 +02:00
2011-08-26 17:52:55 +02:00
2011-02-18 08:59:51 +01:00
2011-04-01 16:03:11 -06:00
2009-04-02 12:01:11 +00:00
2009-09-22 12:55:39 +02:00
2009-07-16 15:06:42 +02:00
2009-04-15 20:42:50 +00:00
2009-04-15 20:42:50 +00:00
2009-04-15 20:42:50 +00:00
2009-04-15 20:42:50 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2009-04-15 20:42:50 +00:00
2009-04-15 20:42:50 +00:00
2011-08-11 13:42:22 -06:00
2006-02-09 17:45:11 +00:00
2011-06-28 18:19:00 +01:00
2011-04-01 16:03:11 -06:00
2006-02-09 17:45:11 +00:00
2008-04-23 17:08:31 +00:00
2011-09-14 22:57:46 +08:00
2011-08-12 07:35:19 -06:00
2011-09-22 14:53:23 +08:00
2009-07-29 09:04:21 +01:00
2006-01-23 13:24:07 +00:00
2006-01-23 13:24:07 +00:00
2011-01-28 08:44:05 -07:00
2011-02-09 12:29:29 -07:00
2008-04-23 17:08:31 +00:00
2009-11-06 16:05:18 +01:00
2011-08-12 13:54:10 +01:00
2011-01-17 16:55:41 +08:00
2009-12-08 16:09:33 +01:00
2011-08-26 17:52:55 +02:00
2010-09-17 00:41:08 +10:00
2005-12-05 11:16:07 +00:00
2010-12-02 16:00:47 -07:00
2011-05-11 19:18:38 +08:00
2011-05-11 08:18:04 -06:00
2011-05-11 19:18:38 +08:00
2010-10-12 11:26:52 +01:00
2011-07-12 17:10:33 +01:00
2010-11-08 22:00:35 +01:00
2011-01-11 07:33:15 +11:00
2011-04-01 16:03:11 -06:00
2010-11-12 19:47:20 +01:00