Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Aron Podrigal
since lxd 2.6 you can use security.idmap.isolated https://github.com/lxc/lxd/blob/master/doc/userns-idmap.md#different-idmaps-per-container On Thu, Jan 26, 2017, 1:04 AM Fajar A. Nugraha wrote: > On Thu, Jan 26, 2017 at 12:20 PM, Aron Podrigal > wrote: > > you can use lxc.raw for this in lxd ;)

Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Fajar A. Nugraha
On Thu, Jan 26, 2017 at 12:20 PM, Aron Podrigal wrote: > you can use lxc.raw for this in lxd ;) > > Have you tested it? On xenial + lxd 2.0.8-0ubuntu1~ubuntu, it doesn't work. At least, not with lots of manual changis (including UID shifting the rootfs manually), which (among others) result in

Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Aron Podrigal
you can use lxc.raw for this in lxd ;) On Wed, Jan 25, 2017, 11:50 PM Fajar A. Nugraha wrote: > On Wed, Jan 25, 2017 at 10:12 PM, Witold Filipczyk > wrote: > > On Wed, Jan 25, 2017 at 08:36:23AM -0500, brian mullan wrote: > > Witold > > > > There is a tool called "fuidshift" you can use to shif

Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Fajar A. Nugraha
On Wed, Jan 25, 2017 at 10:12 PM, Witold Filipczyk wrote: > On Wed, Jan 25, 2017 at 08:36:23AM -0500, brian mullan wrote: > > Witold > > > > There is a tool called "fuidshift" you can use to shift the gid/uid for > you. > > > > http://manpages.ubuntu.com/manpages/xenial/man1/fuidshift.1.html > >

[lxc-users] hot plug usb storage

2017-01-25 Thread Ivan Sergio Borgonovo
I'd like to backup some file inside a container on a usb hot plugged drive. While I can: lxc.aa_profile = lxc-container-default-with-mounting lxc.cgroup.devices.allow = b 8:* rwm + lxc-device --name [NAME] add /dev/[PARTITION] and then mount /dev/[PARTITION] /mnt/somewhere umount /mnt/somewh

Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Witold Filipczyk
On Wed, Jan 25, 2017 at 08:36:23AM -0500, brian mullan wrote: > Witold > > There is a tool called "fuidshift" you can use to shift the gid/uid for you. > > http://manpages.ubuntu.com/manpages/xenial/man1/fuidshift.1.html > > This previous lxc-users mailer thread can also give you some idea of it

Re: [lxc-users] idmap, lxd and pylxde

2017-01-25 Thread brian mullan
Witold There is a tool called "fuidshift" you can use to shift the gid/uid for you. http://manpages.ubuntu.com/manpages/xenial/man1/fuidshift.1.html This previous lxc-users mailer thread can also give you some idea of its use: http://lxc-users.linuxcontainers.narkive.com/atlj58eG/proper-usage-o

[lxc-users] idmap, lxd and pylxde

2017-01-25 Thread Witold Filipczyk
Sorry for dumb questions. /etc/subuid looks like this root:10:65536 root:20:65536 root:30:65536 and so on /etc/subgid the same I want to create lxd containers so they have separate set of uids. How to do it with lxd commands and with pylxd? I tried: uids = 20 config = { 'limits.m