On 02/22/2011 07:08 AM, Daniel P. Berrange wrote:
When spawning 'init' in the container, set
LIBVIRT_LXC_UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
LIBVIRT_LXC_NAME=YYYYYYYYYYYY
to allow guest software to detect & identify that they
are in a container
Sounds reasonable. Does virt-what know to look for these yet?
@@ -109,6 +124,8 @@ static int lxcContainerExecInit(virDomainDefPtr
vmDef)
const char *const envp[] = {
"PATH=/bin:/sbin",
"TERM=linux",
+ uuidenv,
+ nameenv,
NULL,
};
ACK, but why aren't we using virCommand yet?
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org