the action takes place in Hetzner cloud vm
what’s the problem, my God, I just created a user and did
mkdir -p ~ /.config/lxc
mkdir ~/log
cp /etc/lxc/default.conf ~/.config/lxc/default.conf
grep lxctl /etc/sub{u, g}id
/etc/subuid:lxctl:165536:65536
/etc/subgid:lxctl:165536:65536
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
when I start the container I also get an error …
lxc-start -n ubuntu-xenial
lxc-start: ubuntu-xenial: lxccontainer.c: wait_on_daemonized_start: 833 No such file or directory - Failed to receive the container state
lxc-start: ubuntu-xenial: tools / lxc_start.c: main: 330 The container failed to start
lxc-start: ubuntu-xenial: tools / lxc_start.c: main: 333 To get more details, run the container in foreground mode
lxc-start: ubuntu-xenial: tools / lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options
What needs to be fixed? I just want to run an unprivileged container.
Privilege container works.