<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 04/01/2016 05:00 AM,
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users-request@lists.linuxcontainers.org">lxc-users-request@lists.linuxcontainers.org</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.2.1459512002.31540.lxc-users@lists.linuxcontainers.org"
type="cite">
<pre wrap="">Re: Graphics and sound with LXD</pre>
</blockquote>
>Thanks for that. The commands you mentioned were posted by Pete
Osborne in a response to me on >03/11. I haven't been able to use
them successfully, but I will now try your method.
<br>
<br>
>Since one can apply multiple profiles to a container, I am
trying to create a "GUI profile" that I can apply to any container
that requires it. My containers are unpriviledged, so I don't know
if any of this will work. It would be great to get some guidance
from the devs.
<br>
<br>
>In the original lxc article, the config was something like:
<br>
<br>
>lxc.mount.entry = /dev/dri dev/dri none
bind,optional,create=dir
<br>
<br>
>Are the "bind,optional,create=dir" params implied in your
config? If not, where are they set?
<br>
<br>
X works perfectly with this setup on an unprivileged container. In
answer to your question I did not have to do any other settings for
it to work "out of the box", only the things mentioned in my
previous post. I don't know if maybe in the background lxd is
implementing the "bind,optional,create=dir" params invisibly but
that is all I had to do. Pulse is another thing though, still
working on that. Found this <a class="moz-txt-link-freetext" href="https://github.com/lxc/lxd/issues/579">https://github.com/lxc/lxd/issues/579</a>
though that gives some clues as to how privileges can be corrected
for pulse. I am still studying and experimenting with it as it is,
at the moment, somewhat over my head. Also it seems that legacy lxc
configs can be implemented by doing the following:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<h2 style="box-sizing: border-box; overflow: auto; font-family:
Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size:
11.9px; margin-top: 0px; margin-bottom: 16px; font-style: normal;
font-variant: normal; font-weight: normal; font-stretch: normal;
line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap:
normal; color: rgb(51, 51, 51); letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; display: inline; max-width: initial; overflow: initial; line-height: inherit; word-wrap: normal; background: transparent;">name: homebind
config:
<b> raw.lxc: |</b>
lxc.mount.entry = /home/tribaal home/tribaal none bind 0 0
devices: {}
</code></h2>
I have played with importing the regular user into the container via
lxc.id_map to work around pulse permissions with some promise but so
far not successful.<br>
<br>
Hope someone else that knows more than me can help us out with this.<br
class="Apple-interchange-newline">
<br>
</body>
</html>