Comment 9 for bug 1690822

Revision history for this message
Christian Brauner (cbrauner) wrote : Re: [Bug 1690822] Re: GPU device in lxc profile ignored?

On Thu, May 18, 2017 at 08:09:05AM -0000, Konstantinos Tsakalozos wrote:
> I can confirm that "ls -al /dev/dri/" within the lxc container shows the
> devices you expect. However, "lxc config show xen2" shows the devices
> section being empty.

This isn't a bug at all. :) You're adding a device to a profile the container is
attached to. By definition it will thus not be in the container's config file.
The container will just gather all the devices it needs to create and setup from
the profile it is attached to. It will never show up in the container's config
file unless you explicitly add it.