<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I was able to find the following in a past lxc-users post:<br>
<br>
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p style="margin-bottom: 0in; font-variant: normal;
letter-spacing: normal; font-style: normal; font-weight: normal;
line-height: 0.22in; widows: 1">
<font color="#444444"><font face="Calibri, sans-serif"><font
style="font-size: 11pt" size="3">lxc
config device add qt5-development /dev/nvidia0 unix-char
path=/dev/nvidia0 <br>
<br>
lxc config device add
qt5-development /dev/nvidiactl unix-char
path=/dev/nvidiactl <br>
<br>
lxc
config device add qt5-development /dev/nvidia-uvm
unix-char
path=/dev/nvidia-uvm <br>
<br>
lxc config device
add qt5-development /dev/video0 unix-char path=/dev/video0
<br>
lxc
config device add qt5-development /dev/tty0 unix-char
path=/dev/tty0
<br>
<br>
lxc config device add
qt5-development /dev/tty7 unix-char path=/dev/tty7 <br>
<br>
lxc
config device add qt5-development /dev/tty8 unix-char
path=/dev/tty8
<br>
<br>
lxc config device add qt5-development /dev/fb0
unix-char path=/dev/fb0 <br>
<br>
lxc
config device add qt5-development /dev/dri unix-char
path=/dev/dri
<br>
<br>
lxc config device add qt5-development
/dev/dri/card0 unix-char path=/dev/dri/card0</font></font></font></p>
</blockquote>
<font color="#444444"><font size="3"><font face="Calibri,
sans-serif"> <br>
This gives me a good idea of the syntax to use to recreate the
following with lxd:<br>
<br>
</font></font></font>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 0.22in; widows: 1"><font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir</font></font></font>
<font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">lxc.mount.entry = /dev/snd dev/snd none bind,optional,create=dir</font></font></font>
<font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none </font></font></font>
<font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">bind,optional,create=dir</font></font></font>
<font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">lxc.mount.entry = /dev/video0 dev/video0 none bind,optional,create=file</font></font></font></pre>
<br>
<title></title>
<meta name="generator" content="LibreOffice 5.0.5.2 (Linux)">
<style type="text/css">
@page { margin: 0.79in }
pre.cjk { font-family: "Courier New", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
a:link { so-language: zxx } </style>However I am not sure of the
syntax to use to implement the following with lxd:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 0.22in; widows: 1"><font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">lxc.hook.pre-start = </font></font></font>
<font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3">/home/USERNAME/.local/share/lxc/precise-gui/setup-pulse.sh
</font></font></font>
</pre>
Implementing Pulse in an lxd container is crucial to a project I
wanted to start so I would be very grateful for any help.<br>
<br>
<title></title>
<meta name="generator" content="LibreOffice 5.0.5.2 (Linux)">
<style type="text/css">
@page { margin: 0.79in }
pre.cjk { font-family: "Courier New", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
a:link { so-language: zxx }
</style><br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre class="western" style="font-variant: normal; letter-spacing: normal; font-style: normal; font-weight: normal; line-height: 0.22in; widows: 1"><font color="#444444"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><font style="font-size: 11pt" size="3"></font></font></font></pre>
<title></title>
<meta name="generator" content="LibreOffice 5.0.5.2 (Linux)">
<style type="text/css">
@page { margin: 0.79in }
pre.cjk { font-family: "Courier New", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
a:link { so-language: zxx }
</style>
</body>
</html>