I try to create an unprivileged container and nothing works as expected.Here is my code : follows that tutorial#!/bin/bashsudo apt-get updatesudo apt-get dist-upgradesudo apt-get -y install lxc uidmapsudo sh -c 'echo 1 > /sys/fs/cgroup/cpuset/cgroup.clone_children'sudo sh -c 'echo 1 > /proc/sys/kernel/unprivileged_userns_clone'sudo usermod --add-subuids 100000-165536 $USERsudo usermod --add-subgids 100000-165536 $USERsudo chmod +x $HOMEmkdir -p ~/.config/lxc/echo lxc.network.type = vethlxc.network.link = lxcbr0lxc.network.flags = uplxc.network.hwaddr = 00:16:3e:xx:xx:xxlxc.id_map = u 0 100000 65536lxc.id_map = g 0 100000 65536 > ~/.config/lxc/default.confsudo sh -c echo '$USER veth lxcbr0 10' > /etc/lxc/lxc-usernetlxc-create -t download -n c1 -- -d ubuntu -r trusty -a amd64And here is the result, again and again :...Unpacking the rootfssudo: /etc/sudo.conf is owned by uid 65534, should be 0sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0sudo: fatal error, unable to load pluginssudo: /etc/sudo.conf is owned by uid 65534, should be 0sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0sudo: fatal error, unable to load plugins---You just created an Ubuntu container (release=trusty, arch=amd64, variant=default)To enable sshd, run: apt-get install openssh-serverFor security reason, container images ship without user accountsand without a root password.Use lxc-attach or chroot directly into the rootfs to set a root passwordor create user accounts.sudo: /etc/sudo.conf is owned by uid 65534, should be 0sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0sudo: fatal error, unable to load pluginsWhat I am doing wrong?In a fisrt place, I've tought systemD was in fault and installed libpam-systemd as a solution. But finally it wasn't that :'( And i'm stuck
Why does LXC-create returns error sudo.conf should be 0?
sudo;lxc