<div dir="ltr">Thanks Simos for your answer, Just few questions and they may be dumb questions, if LXD is running on top of a host OS and host machine has graphic card I thought that it will be able to give it a call  and I understand that since LXD still uses core functions of host OS hence if I will create 100 containers then all of them will have access to all the host hardware including video and audio. <div><br></div><div>I have tried  <a href="https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/" rel="noreferrer" target="_blank" style="font-size:12.8px">https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/</a> and <a href="http://ghanima.net/doku.php?id=wiki:lxc:deinlxc">http://ghanima.net/doku.php?id=wiki:lxc:deinlxc</a><br></div><div><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;direction:ltr;line-height:19.006px"><code style="font-size:1em;padding:0.5em;display:inline-block">I am stuck at xf86OpenConsole: Cannot open /dev/tty0 (no such file found) when trying to start dektop environment in both lxc and lxd container or startx.</code></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;line-height:19.006px"><code style="font-size:1em;padding:0.5em;display:inline-block">After creation of unprivileged containers I got stuck with </code><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">lxc_container: The container failed to start. </span><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">failed to spawn <container name>.</span></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;line-height:19.006px"><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)"><br></span></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;line-height:19.006px"><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">I do not want to use TTY switching solution as that limits use to 7 virtual terminals.</span></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;line-height:19.006px"><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)"><br></span></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;overflow:auto;width:1170px"><font color="#333333" face="Consolas, Andale Mono WT, Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Monaco, Courier New, monospace"><span style="font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">Also, I thought that container should be able to use host os X server and there should not be any need of another X server.</span></font></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;overflow:auto;width:1170px"><font color="#333333" face="Consolas, Andale Mono WT, Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Monaco, Courier New, monospace"><span style="font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)"><br></span></font></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;overflow:auto;width:1170px"><font color="#333333" face="Consolas, Andale Mono WT, Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Monaco, Courier New, monospace"><span style="font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">Can the container desktop environment be called from another remote machine for remote access.</span></font></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;overflow:auto;width:1170px"><font color="#333333" face="Consolas, Andale Mono WT, Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Monaco, Courier New, monospace"><span style="font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)"><br></span></font></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;overflow:auto;width:1170px"><font color="#333333" face="Consolas, Andale Mono WT, Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Monaco, Courier New, monospace"><span style="font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)">Thanks</span></font></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;padding:0px;font-size:1em;overflow:auto;width:1170px;line-height:19.006px"><span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;line-height:19.6px;background-color:rgb(251,250,249)"><br></span></pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 17, 2016 at 10:07 PM, Simos Xenitellis <span dir="ltr"><<a href="mailto:simos.lists@googlemail.com" target="_blank">simos.lists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jun 17, 2016 at 1:02 PM, Rahul Rawail <<a href="mailto:rhlrawail@gmail.com">rhlrawail@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> We have read some  posts in LXC-Users group, honestly we are not very<br>
> proficient with ubuntu or linux itself but we know a bit.<br>
><br>
> We have been able to start the LXD container but we have a simple<br>
> requirement, if we can run complete linux in an LXD container then why can't<br>
> we bring a GUI desktop for each container if we install desktop environment<br>
> for it, is there a way we can do it for each container.<br>
><br>
> Our idea is to use LXD container as a VM hence the next logical step with<br>
> which we need your help would be to take each container's desktop to<br>
> multiple clients.<br>
><br>
> LXD is the choice because its lightest, fastest and secure but going over<br>
> internet through tons of information has seriously messed up everything. We<br>
> hope that by starting a desktop and using it as VM we will not defeat the<br>
> purpose of having a bare metal performance.<br>
><br>
> If you think there is any other approach to achieve this easily and still<br>
> have bare metal performance the please suggest that as well.<br>
><br>
<br>
</span>Most modern desktops require hardware acceleration for the driver of<br>
the graphics<br>
card, therefore if you had to use an accelerated desktop, you would need<br>
a graphics card per desktop. It is possible to do this, though it is<br>
not available out of the box.<br>
See, for example,<br>
<a href="https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/" rel="noreferrer" target="_blank">https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/</a> and<br>
<a href="https://www.flockport.com/apps/lxc-gui/" rel="noreferrer" target="_blank">https://www.flockport.com/apps/lxc-gui/</a><br>
<br>
Alternatively, if there is no requirement for a dedicated graphics<br>
card (i.e. no hardware accelerated desktop),<br>
it could be possible to run X servers (like "Xnest")<br>
and configure the containers to display the desktop on those<br>
additional displays.<br>
They appear as separate windows on your Ubuntu desktop.<br>
Such a thing should be feasible with distributions like Lubuntu and Xubuntu.<br>
I just tried with Lubuntu and here is a screenshot,<br>
<a href="http://i.imgur.com/HqOnwDc.png" rel="noreferrer" target="_blank">http://i.imgur.com/HqOnwDc.png</a><br>
<br>
Simos<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div><br></div>