Re: Configuring LXC containers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2024-03-10 at 11:13 -0700, Mike Wright wrote:
> The last two lines are key.  Add these flags: -F -o logfile.  The 
> default loglevel is ERROR.  If you want more detail include -l LEVEL.
> 
> e.g. lxc-start -n containerName -F -o containerName.log -l WARN
> 

This is what I get:

$ lxc-start -n test -F -o test.log -l WARN
lxc-start: test: cgroups/cgfsng.c: __cgfsng_delegate_controllers: 2921 Device or resource busy - Could not enable "+cpu +io +memory +pids" controllers in the unified cgroup 9
lxc-start: test: cgroups/cgfsng.c: __cgfsng_delegate_controllers: 2921 Device or resource busy - Could not enable "+cpu +io +memory +pids" controllers in the unified cgroup 9
lxc-start: test: start.c: print_top_failing_dir: 99 Permission denied - Could not access /home/poc/.local. Please grant it x access, or add an ACL for the container root
lxc-start: test: sync.c: sync_wait: 34 An error occurred in another process (expected sequence number 1)
lxc-start: test: start.c: __lxc_start: 2074 Failed to spawn container "test"
lxc-start: test: tools/lxc_start.c: main: 306 The container failed to start
lxc-start: test: tools/lxc_start.c: main: 311 Additional information can be obtained by setting the --logfile and --logpriority options
$ cat test.log
lxc-start test 20240310223702.913 ERROR    cgfsng - cgroups/cgfsng.c:__cgfsng_delegate_controllers:2921 - Device or resource busy - Could not enable "+cpu +io +memory +pids" controllers in the unified cgroup 9
lxc-start test 20240310223702.934 ERROR    cgfsng - cgroups/cgfsng.c:__cgfsng_delegate_controllers:2921 - Device or resource busy - Could not enable "+cpu +io +memory +pids" controllers in the unified cgroup 9
lxc-start test 20240310223702.944 WARN     cgfsng - cgroups/cgfsng.c:fchowmodat:1251 - No such file or directory - Failed to fchownat(15, memory.oom.group, 65536, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW )
lxc-start test 20240310223702.944 WARN     cgfsng - cgroups/cgfsng.c:fchowmodat:1251 - No such file or directory - Failed to fchownat(15, memory.reclaim, 65536, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW )
lxc-start test 20240310223702.945 ERROR    start - start.c:print_top_failing_dir:99 - Permission denied - Could not access /home/poc/.local. Please grant it x access, or add an ACL for the container root
lxc-start test 20240310223702.945 ERROR    sync - sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 1)
lxc-start test 20240310223702.945 ERROR    start - start.c:__lxc_start:2074 - Failed to spawn container "test"
lxc-start test 20240310223702.945 WARN     start - start.c:lxc_abort:1039 - No such process - Failed to send SIGKILL via pidfd 16 for process 148416
lxc-start test 20240310223702.958 ERROR    lxc_start - tools/lxc_start.c:main:306 - The container failed to start

I guess the first two lines are the key to the problem. My default config file is:

$ 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 100000 65536
lxc.idmap = g 0 100000 65536

The 'test' container is a Fedora 39 instance.

poc
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux