New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lxc-copy of user containers fails. #1370
Comments
|
possibly duplicated in: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845014 |
|
"Operation not permitted" here suggests that the issue is that overlayfs in your kernel cannot be mounted by unprivileged users. I believe Ubuntu's kernel carries or at least used to carry a patch to enable this. If your kernel doesn't allow it, there's not much lxc can do about it, though maybe we can show a clearer error message when we get the EPERM from the kernel (rather than just surface it as was done above). |
|
Thanks. Hmm. I can confirm that the following does not work: it should have; it does work on ubuntu trusty. strace shows its the mount system call: Its a recent kernel: googling for It is possible that the reason that the above "obvious" mount fails might be due to some effort to patch these CVE's .. or not. Its hard to tell. There seems to be multiple, similar but different reports, and a variety of patches. So, yes, it seems its not an lxc issue per-se, but an overlayfs issue. So perhaps this issue should closed. |
|
As @stgraber pointed out mounting overlay filesystems as an unprivileged user requires a patched overlayfs module. To my knowledge, a plain Debian system does not carry this patch whereas Ubuntu does. So I'm closing this as there is nothing we can do about it. :) |
|
OK. A status report for user-ns support in the kernel block layer is here: https://www.spinics.net/lists/linux-fsdevel/msg105877.html -- apparently a big patchset was accepted into kernel 4.8 Maybe more work is needed in fuse. I haven't tried the newer kernel. |
|
For the record: The patch that Ubuntu adds is this one. It is not present in upstream until at least 4.9. |
|
For the record: whatever patches are in 4.8, its not enough: I just booted and get the same error message as before. |
I am unable to make snapshot copies of user-land containers.
gives:
Attempts to hack around this by changing the ownership and permissions on
/usr/lib/x86_64-linux-gnu/lxc/rootfsdoes not resolve the problem. For example:System: Debian unstable, as of today's date. So
The text was updated successfully, but these errors were encountered: