[lxc-users] Something changed between 1.1.2 and 1.1.4 for unprivileged containers?
    Dirk Geschke 
    dirk at lug-erding.de
       
    Thu Oct 15 19:43:34 UTC 2015
    
    
  
Hi Tycho,
> How are you starting these (hand-built lxd?). lxc 1.1.2 => 1.1.3
> reverted an ABI break which could cause some of these problems,
> perhaps you're hitting that somehow?
not lxd, it's plain lxc from linuxcontainers.org and compiled the
same way as 1.1.2. To start I use as part of init-script, started
by root:
    /usr/local/bin/cgm create all ${CONTAINER}
    /usr/local/bin/cgm chown all ${CONTAINER} `id -u $user` `id -g $user` 
    su - $user -c /usr/local/sbin/${CONTAINER}
where the last line starts a shell script with the uid of the
unprivileged user. Here all I do is:
   /usr/local/bin/cgm movepid all ${CONTAINER} $$
   lxc-start -n ${CONTAINER} -d 
So I move the user shell to the cgroups and start the container.
That works fine with 1.1.2, but not with 1.1.4...
Best regards
Dirk
-- 
+----------------------------------------------------------------------+
| Dr. Dirk Geschke       / Plankensteinweg 61    / 85435 Erding        |
| Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
| dirk at geschke-online.de / dirk at lug-erding.de  / kontakt at lug-erding.de |
+----------------------------------------------------------------------+
    
    
More information about the lxc-users
mailing list