meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vm:proxmox:lxc:issues [2021/03/25 17:03] – niziak | vm:proxmox:lxc:issues [2023/07/28 12:13] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LXC Issues ====== | ====== LXC Issues ====== | ||
| + | |||
| + | ===== lxc_init: Failed to run lxc.hook.pre-start for container ===== | ||
| + | |||
| + | After upgrade guest system from Debian 12.0 to 12.1. | ||
| + | |||
| + | <code bash> | ||
| + | lxc-start -lDEBUG -o error.log -F -n < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | PVE ('' | ||
| + | |||
| + | |||
| + | ===== apply caps: operation not permitted: unknown. ===== | ||
| + | |||
| + | BalenaOS Build inside privileged LXC: | ||
| + | < | ||
| + | docker: Error response from daemon: OCI runtime create failed: container_linux.go: | ||
| + | </ | ||
| + | |||
| + | Solution (not secure!): | ||
| + | <file container.conf> | ||
| + | lxc.apparmor.profile: | ||
| + | lxc.cgroup.devices.allow: | ||
| + | lxc.cap.drop: | ||
| + | </ | ||
| + | |||
| + | Source: [[https:// | ||
| + | |||
| + | |||
| + | ===== Slow login into container ===== | ||
| + | |||
| + | see below | ||
| + | |||
| + | ===== Failed at step NAMESPACE spawning / | ||
| + | |||
| + | Debian Bullseye in unprivileged container: | ||
| + | |||
| + | < | ||
| + | systemd[579]: | ||
| + | systemd[579]: | ||
| + | </ | ||
| + | SOLUTION: enable container nesting. | ||
| + | |||
| + | |||
| ===== cannot stop container ===== | ===== cannot stop container ===== | ||
| Line 5: | Line 51: | ||
| Normal commands to stop or reboot doesn' | Normal commands to stop or reboot doesn' | ||
| + | |||
| + | **CAUSE:** Container was freezed for snapshot. All processess are in ' | ||
| + | **SOLUTION: | ||
| + | <code bash> | ||
| + | echo THAWED > / | ||
| + | </ | ||
| + | |||
| + | **Info**: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ==== Investigation ==== | ||
| + | |||
| So killing container is solution: | So killing container is solution: | ||
| <code bash> | <code bash> | ||
| Line 14: | Line 75: | ||
| kill -9 3747514 | kill -9 3747514 | ||
| </ | </ | ||
| + | |||
| Now it is not possible to start LXC container again. Debugging: | Now it is not possible to start LXC container again. Debugging: | ||
| Line 36: | Line 98: | ||
| ps axl | awk '$10 ~ /D/' | ps axl | awk '$10 ~ /D/' | ||
| </ | </ | ||
| + | |||
| + | <code bash> | ||
| + | echo w > / | ||
| + | |||
| + | [587314.999001] smbd D 0 1181293 | ||
| + | [587314.999002] Call Trace: | ||
| + | [587314.999004] | ||
| + | [587314.999005] | ||
| + | [587314.999007] | ||
| + | [587314.999009] | ||
| + | [587314.999011] | ||
| + | [587314.999013] | ||
| + | [587314.999014] | ||
| + | [587314.999016] | ||
| + | [587314.999018] | ||
| + | [587314.999020] | ||
| + | |||
| + | </ | ||
| + | |||
| + | So it looks like whole container cgroup was freezed for snapshot and problem happens. | ||