Re: [lxc-users] trying to create/install mate-desktop into unprivileged LXC container fails

2016-01-22 Thread brian mullan
Thanks Serge

This did NOT work:

lxc config device add *lxcfs* fuse unix-char major=10 minor=229
path=/dev/fuse

But this DID 

lxc config device add ** fuse unix-char major=10 minor=229
path=/dev/fuse

Thanks so much for the tip.

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

Re: [lxc-users] trying to create/install mate-desktop into unprivileged LXC container fails

2016-01-21 Thread brian mullan
I should mention that I installed LXD/LXC using the ppa:

*add-apt-repository ppa:ubuntu-lxc/lxd-stable*

I know I mentioned that I was using LXC v 0.27 in the question I asked
although *I know I actually* have LXD v0.27 and LXC is actually v
1.15.

However I just ran the following and that's what reported 0.27 (sorry for
any confusion)...  maybe the following command is wrong or its reporting
LXD's version instead of LXC's ??


*$ lxc --version0.27*

brian


than





On Thu, Jan 21, 2016 at 8:57 AM, brian mullan 
wrote:

> My host is Ubuntu 15.10 with LXD/LXC installed.   LXC is v 0.27
>
> I have a script that creates a Privileged LXC container and attempts to
> create/install mate-desktop into *Privileged* LXC container...  this all
> works fine!
>
> If I modify the line in the script to create an Unprivileged LXC container
> then run the script to
> create/install mate-desktop into *Unprivileged* LXC container it fails!
>
> I'm fine with just using Privileged containers for this!
>
> But should it be expected that installing a complete Desktop (ubuntu-mate,
> xubuntu-desktop) etc into an Unprivileged container is not allowed?
>
> Or is installing a normal Desktop Environment into  Unprivileged container
> not allowed?
>
> one of a couple errors that occurs during installation is:
>
> *Setting up fuse (2.9.4-1ubuntu1) ...*
> *Creating fuse device...*
> *mknod: ‘fuse-’: Operation not permitted*
> *makedev fuse c 10 229 root root 0660: failed*
> *chmod: cannot access ‘/dev/fuse’: No such file or directory*
> *dpkg: error processing package fuse (--configure):*
> * subprocess installed post-installation script returned error exit status
> 1*
> *Setting up avahi-utils (0.6.31-4ubuntu4) ...*
> *Errors were encountered while processing:*
> * fuse*
> *E: Sub-process /usr/bin/dpkg returned an error code (1)*
>
> As I mentioned there is no problem with a Privileged container just the
> Unprivileged.
>
> Both host & container are Ubuntu 15.10.
>
> thanks for any insight.
>
> Brian
>
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] trying to create/install mate-desktop into unprivileged LXC container fails

2016-01-21 Thread Serge Hallyn
Quoting brian mullan (bmullan.m...@gmail.com):
> My host is Ubuntu 15.10 with LXD/LXC installed.   LXC is v 0.27
> 
> I have a script that creates a Privileged LXC container and attempts to
> create/install mate-desktop into *Privileged* LXC container...  this all
> works fine!
> 
> If I modify the line in the script to create an Unprivileged LXC container
> then run the script to
> create/install mate-desktop into *Unprivileged* LXC container it fails!
> 
> I'm fine with just using Privileged containers for this!
> 
> But should it be expected that installing a complete Desktop (ubuntu-mate,
> xubuntu-desktop) etc into an Unprivileged container is not allowed?
> 
> Or is installing a normal Desktop Environment into  Unprivileged container
> not allowed?
> 
> one of a couple errors that occurs during installation is:
> 
> *Setting up fuse (2.9.4-1ubuntu1) ...*
> *Creating fuse device...*
> *mknod: ‘fuse-’: Operation not permitted*
> *makedev fuse c 10 229 root root 0660: failed*

Yeah you'll want to ask lxd to create it for you:

lxc config device add lxcfs fuse unix-char major=10 minor=229 path=/dev/fuse

> *chmod: cannot access ‘/dev/fuse’: No such file or directory*
> *dpkg: error processing package fuse (--configure):*
> * subprocess installed post-installation script returned error exit status
> 1*
> *Setting up avahi-utils (0.6.31-4ubuntu4) ...*
> *Errors were encountered while processing:*
> * fuse*
> *E: Sub-process /usr/bin/dpkg returned an error code (1)*
> 
> As I mentioned there is no problem with a Privileged container just the
> Unprivileged.
> 
> Both host & container are Ubuntu 15.10.
> 
> thanks for any insight.
> 
> Brian

> ___
> 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