Hello
Is there a way to set custom environment variables for LXC containers so that it is available for all processes within the container?
The libvirt-lxc driver seems to be setting up only the below variables (as per the docs), but there doesn't seem to be a way customize it.
- container
- The fixed string
libvirt-lxc
to identify libvirt as the creator - container_uuid
- The UUID assigned to the container by libvirt
- PATH
- The fixed string
/bin:/usr/bin
- TERM
- The fixed string
linux
- HOME
- The fixed string
/
In addition to the standard variables, the following libvirt specific environment variables are also provided
- LIBVIRT_LXC_NAME
- The name assigned to the container by libvirt
- LIBVIRT_LXC_UUID
- The UUID assigned to the container by libvirt
- LIBVIRT_LXC_CMDLINE
- The unparsed command line arguments specified in the container configuration. Use of this is discouraged, in favour of passing arguments directly to the container init process via the
initarg
config element.
I am looking for something similar to this: https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html (lxc.environment)
Regards,
Harish
Harish
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users