LXD 3.0.3 unprivileged containers Ubuntu 18.04-1, "An error occurred in another process(seq number 5)"
Hi, I've been trying to get an unprivileged Fedora 29 LXD container safe to use on my workplace's media server (which is the base system of Ubuntu 18.04-1) but am having absolutely zero luck with fixing one up. I've placed values in my /etc/sub{u,g}id files that are the same for both lxd and root and identical across those files,
Code:
lxd:231072:65536 However, I get "Failed to run /usr/lib/lxd/lxd forkstart cheerful-sturgeon /var/lib/lxd/containers /var/log/lxd/cheerful-sturgeon/lxc.conf. Try 'lxc info --show-log cheerful-sturgeon for more info." So I do that, and see: Code:
Script exited with status 126 Then, I set "raw.lxc: lxc.apparmor.profile=unconfined" in the container settings, followed by another restart. Still no worky. Then I try to su to the lxd user (who is set up to have access to the lxd group) and start an unprivileged container that way. No workies again. lxc set raw.idmap "both 231072 65536" where 231072 is the shared lxd/root uid that should be mapped to 0? No workies yet again, it says "Failed to get ID map: Host ID is in the range of subids." I don't know what to do short of make a sacrifice to Beelzebub, because using a privileged container is completely out of the question for my purposes. I'm hoping someone here can help, I'll be grateful. Will post my lxc.conf file once I get back to the office. |
Just a little bit late, but here it is.
/var/log/lxd/cheerful-sturgeon/lxc.conf: Code:
lxc.log.file = /var/log/lxd/cheerful-sturgeon/lxc.log I've even tried to unshare user namespaces and map root manually without LXC/D via the unshare command itself, but even that isn't working. |
Okay, so me being the sole systems administrator in our environment... I managed to solve this after constructing a test LXC installation and looking at the log files. They gave me a "permission denied" message on bind mounting /var/lib/lxcfs/proc.
That led me to check the permissions on /bin/{u}mount, and I noticed they were 4750 with group set to users. Resetting them to defaults fixed it and I can now start the container. |
All times are GMT -5. The time now is 06:03 AM. |