Welcome to the Linux Foundation Forum!

How to start an unprivileged LXC container? (Lab 3.2)

I get the following error:

student@ubuntu:~$ lxc-start -n unpriv-cont-user -F
systemd 245.4-4ubuntu3.24 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
Detected virtualization lxc.
Detected architecture x86-64.

Welcome to Ubuntu 20.04.6 LTS!

Set hostname to .
Failed to create /init.scope control group: Permission denied
Failed to allocate manager object: Permission denied
[!!!!!!] Failed to allocate manager object.
Exiting PID 1...

The host is a cloud VM, it was created like in the first chapter it was detailed.
What do I missing? Why is it not starting the container?

Answers

  • Posts: 10

    Nevermind...get back to it next day and it is working.
    I checked the previous steps if I missed to create anything but nothing missed. The only difference was just that for the setfacl command today I get a lot of "Operation not permitted" lines. Other than that everything was in place.
    The container is running, I continue the lab.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training