Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-20 Thread Simos Xenitellis
On Fri, May 12, 2017 at 7:20 PM, Massimiliano Malisan
 wrote:
> Hi Simos,
>
> thanks for your great tutorial!
> I followed it and almost all runs fine, except that I had to add user
> permissions to the gpu device:
>
> lxc config device set   uid 1000
> lxc config device set   gid 1000
>
> otherwise, even though all X windows were starting correctly, GPU
> acceleration was skipped...
> Maybe it's because I have an ATI card..
>
> I am running an Ubuntu 16.04 inside an Ubuntu 16.10.
>

Thanks for the feedback.
I added these commands to the turorial!

Simos

> Regards,
> Max
>
> On 4 May 2017 at 18:56, Simos Xenitellis  wrote:
>>
>> On Thu, May 4, 2017 at 10:52 AM, Lago Gonzalez, Diego
>>  wrote:
>> >
>> > Really great job! Thank you!
>> >
>> > Next step could be to run a full desktop instance inside LXD using :1
>> > display ;)
>> >
>>
>> Thanks everyone for the support!
>>
>> There are many things to try, and getting a full desktop in a LXD
>> container is the great goal.
>>
>> As for the immediate next steps, I think the following are critical
>> stepping stones:
>> 1. make very easy the process of setting up the container. Perhaps
>> some sort of script or scripting framework.
>> 2. actually get people to try these things. There should be bugs and
>> issues waiting to be discovered and reported.
>>
>> Simos
>>
>> > —
>> > Diego Lago
>> >
>> >
>> > -Original Message-
>> > From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On
>> > Behalf Of Simos Xenitellis
>> > Sent: jueves, 04 de mayo de 2017 01:05
>> > To: LXC users mailing-list 
>> > Subject: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in
>> > LXD containers on your Ubuntu desktop
>> >
>> > Hi All,
>> >
>> > I completed the tutorial on how to run graphics-accelerated GUI apps in
>> > (local) LXD containers,
>> > https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
>> >
>> > Compared to the previous post, this one has sound and also shows how to
>> > create a shortcut so that the GUI app can run in a single click, from the
>> > Launcher.
>> >
>> > Simos
>> > ___
>> > lxc-users mailing list
>> > lxc-users@lists.linuxcontainers.org
>> > http://lists.linuxcontainers.org/listinfo/lxc-users
>> > ___
>> > lxc-users mailing list
>> > lxc-users@lists.linuxcontainers.org
>> > http://lists.linuxcontainers.org/listinfo/lxc-users
>> ___
>> lxc-users mailing list
>> lxc-users@lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-12 Thread Massimiliano Malisan
Hi Simos,

thanks for your great tutorial!
I followed it and almost all runs fine, except that I had to add user
permissions to the gpu device:

lxc config device set   uid 1000
lxc config device set   gid 1000

otherwise, even though all X windows were starting correctly, GPU
acceleration was skipped...
Maybe it's because I have an ATI card..

I am running an Ubuntu 16.04 inside an Ubuntu 16.10.

Regards,
Max

On 4 May 2017 at 18:56, Simos Xenitellis  wrote:

> On Thu, May 4, 2017 at 10:52 AM, Lago Gonzalez, Diego
>  wrote:
> >
> > Really great job! Thank you!
> >
> > Next step could be to run a full desktop instance inside LXD using :1
> display ;)
> >
>
> Thanks everyone for the support!
>
> There are many things to try, and getting a full desktop in a LXD
> container is the great goal.
>
> As for the immediate next steps, I think the following are critical
> stepping stones:
> 1. make very easy the process of setting up the container. Perhaps
> some sort of script or scripting framework.
> 2. actually get people to try these things. There should be bugs and
> issues waiting to be discovered and reported.
>
> Simos
>
> > —
> > Diego Lago
> >
> >
> > -Original Message-
> > From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On
> Behalf Of Simos Xenitellis
> > Sent: jueves, 04 de mayo de 2017 01:05
> > To: LXC users mailing-list 
> > Subject: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in
> LXD containers on your Ubuntu desktop
> >
> > Hi All,
> >
> > I completed the tutorial on how to run graphics-accelerated GUI apps in
> (local) LXD containers, https://blog.simos.info/how-
> to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-
> your-ubuntu-desktop/
> >
> > Compared to the previous post, this one has sound and also shows how to
> create a shortcut so that the GUI app can run in a single click, from the
> Launcher.
> >
> > Simos
> > ___
> > lxc-users mailing list
> > lxc-users@lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> > ___
> > lxc-users mailing list
> > lxc-users@lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-04 Thread Simos Xenitellis
On Thu, May 4, 2017 at 10:52 AM, Lago Gonzalez, Diego
 wrote:
>
> Really great job! Thank you!
>
> Next step could be to run a full desktop instance inside LXD using :1 display 
> ;)
>

Thanks everyone for the support!

There are many things to try, and getting a full desktop in a LXD
container is the great goal.

As for the immediate next steps, I think the following are critical
stepping stones:
1. make very easy the process of setting up the container. Perhaps
some sort of script or scripting framework.
2. actually get people to try these things. There should be bugs and
issues waiting to be discovered and reported.

Simos

> —
> Diego Lago
>
>
> -Original Message-
> From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On 
> Behalf Of Simos Xenitellis
> Sent: jueves, 04 de mayo de 2017 01:05
> To: LXC users mailing-list 
> Subject: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD 
> containers on your Ubuntu desktop
>
> Hi All,
>
> I completed the tutorial on how to run graphics-accelerated GUI apps in 
> (local) LXD containers, 
> https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
>
> Compared to the previous post, this one has sound and also shows how to 
> create a shortcut so that the GUI app can run in a single click, from the 
> Launcher.
>
> Simos
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-04 Thread Simos Xenitellis
On Thu, May 4, 2017 at 10:56 AM, T.C 吳天健  wrote:
> Per my previous mail mentioned 'chrome working but not gain 3d acceleration'
> was documented and shared as
> https://docs.google.com/presentation/d/1DcxNYlXgYLIWKQG8sbg8POk-uxl9I1Kgi9W3ti_1MbQ/edit?usp=sharing
>
> The report is mixed with some Chinese but I believe reader can understand by
> it's English paragraph, experiment number and figures.
>

Hi!

I get accelerated graphics and the output of chrome://gpu is identical
betweem the host and LXD Chrome:

===
Graphics Feature Status

Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
  (i.e. Intel GPU)
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Hardware accelerated
VPx Video Decode: Software only, hardware acceleration unavailable
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
===

For my Intel GPU, I did not have to enable the LXD GPU Passthrough
(LXD 2.7 or later),
while others with NVidia had to do so. It would be great if someone
with Intel GPU could try the tutorial
and report back.

Simos

> TC Wu
>
> 2017-05-04 15:42 GMT+08:00 T.C 吳天健 :
>>
>> Simos , this is a excellent article.
>>
>> I would like to give my 10 cents to make it better.
>>
>> When I was using lxc-1.0 I found that when /dev/dri/ is not correctly
>> configured you might see chrome working but not fully gain gpu acceleration
>> (i.e. 3d).  Chrome is smart and it will falls to software rendering in this
>> case and you might not notice it.  To debug you can open chrome://gpu/ in
>> chrome to see details.  When gpu correctly configured you will see string
>> like " WebGL: Hardware accelerated".
>>
>> TC Wu
>>
>> 2017-05-04 13:06 GMT+08:00 Xavier Gendre :
>>>
>>> Hi,
>>>
>>> > I completed the tutorial on how to run graphics-accelerated GUI apps
>>> > in (local) LXD containers,
>>> >
>>> > https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
>>> >
>>> > Compared to the previous post, this one has sound and also shows how
>>> > to create a shortcut so that the GUI app can run in a single click,
>>> > from the Launcher.
>>>
>>> Thanks Simos for your work!
>>> ___
>>> lxc-users mailing list
>>> lxc-users@lists.linuxcontainers.org
>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>>
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-04 Thread T . C 吳天健
Per my previous mail mentioned 'chrome working but not gain 3d acceleration'
was documented and shared as
https://docs.google.com/presentation/d/1DcxNYlXgYLIWKQG8sbg8POk-uxl9I1Kgi9W3ti_1MbQ/edit?usp=sharing

The report is mixed with some Chinese but I believe reader can understand
by it's English paragraph, experiment number and figures.

TC Wu

2017-05-04 15:42 GMT+08:00 T.C 吳天健 :

> Simos , this is a excellent article.
>
> I would like to give my 10 cents to make it better.
>
> When I was using lxc-1.0 I found that when /dev/dri/ is not correctly
> configured you might see chrome working but not fully gain gpu acceleration
> (i.e. 3d).  Chrome is smart and it will falls to software rendering in this
> case and you might not notice it.  To debug you can open chrome://gpu/ in
> chrome to see details.  When gpu correctly configured you will see string
> like " WebGL: Hardware accelerated".
>
> TC Wu
>
> 2017-05-04 13:06 GMT+08:00 Xavier Gendre :
>
>> Hi,
>>
>> > I completed the tutorial on how to run graphics-accelerated GUI apps
>> > in (local) LXD containers,
>> > https://blog.simos.info/how-to-run-graphics-accelerated-gui-
>> apps-in-lxd-containers-on-your-ubuntu-desktop/
>> >
>> > Compared to the previous post, this one has sound and also shows how
>> > to create a shortcut so that the GUI app can run in a single click,
>> > from the Launcher.
>>
>> Thanks Simos for your work!
>> ___
>> lxc-users mailing list
>> lxc-users@lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-04 Thread T . C 吳天健
Simos , this is a excellent article.

I would like to give my 10 cents to make it better.

When I was using lxc-1.0 I found that when /dev/dri/ is not correctly
configured you might see chrome working but not fully gain gpu acceleration
(i.e. 3d).  Chrome is smart and it will falls to software rendering in this
case and you might not notice it.  To debug you can open chrome://gpu/ in
chrome to see details.  When gpu correctly configured you will see string
like " WebGL: Hardware accelerated".

TC Wu

2017-05-04 13:06 GMT+08:00 Xavier Gendre :

> Hi,
>
> > I completed the tutorial on how to run graphics-accelerated GUI apps
> > in (local) LXD containers,
> > https://blog.simos.info/how-to-run-graphics-accelerated-
> gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
> >
> > Compared to the previous post, this one has sound and also shows how
> > to create a shortcut so that the GUI app can run in a single click,
> > from the Launcher.
>
> Thanks Simos for your work!
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-03 Thread Xavier Gendre
Hi,

> I completed the tutorial on how to run graphics-accelerated GUI apps
> in (local) LXD containers,
> https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
> 
> Compared to the previous post, this one has sound and also shows how
> to create a shortcut so that the GUI app can run in a single click,
> from the Launcher.

Thanks Simos for your work!
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop

2017-05-03 Thread Fajar A. Nugraha
On Thu, May 4, 2017 at 6:04 AM, Simos Xenitellis  wrote:

> Hi All,
>
> I completed the tutorial on how to run graphics-accelerated GUI apps
> in (local) LXD containers,
> https://blog.simos.info/how-to-run-graphics-accelerated-
> gui-apps-in-lxd-containers-on-your-ubuntu-desktop/
>
> Compared to the previous post, this one has sound and also shows how
> to create a shortcut so that the GUI app can run in a single click,
> from the Launcher.
>
>

Awesome!

-- 
Fajar
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users