[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Expose name + UUID to LXC containers via env variables



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]