]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Expose name + UUID to LXC containers via env variables
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 22 Feb 2011 13:09:19 +0000 (13:09 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Feb 2011 11:41:02 +0000 (11:41 +0000)
commit6704e3fdb3af345fdaed68f7db88e0ef8ca6fc97
treeaa83a2251656c95100ea79b86b55db41df769fad
parent449b4c87b55686a78b76eff7c5d858c1d1166a8c
Expose name + UUID to LXC containers via env variables

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

* src/lxc/lxc_container.c: Set LIBVIRT_LXC_UUID and
  LIBVIRT_LXC_NAME env vars
src/lxc/lxc_container.c