Public bug reported:

I already have a lot of unpriviledged container initialized while on
versions prior to 18.04.

I normally got all necessary pieces:

    $ cat /etc/subuid
    alex:165536:65536
    $ cat /etc/subgid
    alex:165536:65536
    $ cat .config/lxc/default.conf 
    lxc.net.0.type = veth
    lxc.net.0.link = lxcbr0
    lxc.net.0.flags = up
    lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
    lxc.idmap = u 0 165536 65536
    lxc.idmap = g 0 165536 65536


I tried to create a new container and it failed.

    $ lxc-create -n gym -l DEBUG -t download -- -d ubuntu -r xenial -a amd64
    Error creating container gym

    $ cat .local/share/lxc/gym/gym.log 
    lxc-create gym 20180701213443.653 INFO     lxc_confile - 
confile.c:set_config_idmaps:1666 - Read uid map: type u nsid 0 hostid 165536 
range 65536
    lxc-create gym 20180701213443.653 INFO     lxc_confile - 
confile.c:set_config_idmaps:1666 - Read uid map: type g nsid 0 hostid 165536 
range 65536
    lxc-create gym 20180701213443.653 DEBUG    lxc_conf - 
conf.c:chown_mapped_root:3086 - trying to chown 
"/home/alex/.local/share/lxc/gym" to 1001

I got this:

    $ ls -ld .local/share/lxc/gym
    drwxr-xr-x 2 165536 alex 4096 juil.  1 22:34 .local/share/lxc/gym

So I don't know where it's failing and why !

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lxc 3.0.1-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Jul  1 22:36:11 2018
InstallationDate: Installed on 2015-11-10 (964 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
KernLog:
 
PackageArchitecture: all
SourcePackage: lxc
UpgradeStatus: Upgraded to bionic on 2018-05-04 (58 days ago)
defaults.conf:
 lxc.net.0.type = veth
 lxc.net.0.link = lxcbr0
 lxc.net.0.flags = up
 lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1779582

Title:
  Unable to create unpriviledged container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1779582/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to