Comments (11)
Hi @rubenanapu ... happy that it worked! We will update our docs to include this info in the Sysbox installation instructions.
from sysbox-ee.
from sysbox-ee.
I'm on Ubuntu 19.04. 5.0.0-1026-gcp
architecture => "amd64",
distro => {
codename => "disco",
description => "Ubuntu 19.04",
id => "Ubuntu",
release => {
full => "19.04",
major => "19.04"
}
},
family => "Debian",
hardware => "x86_64",
name => "Ubuntu",
release => {
full => "19.04",
major => "19.04"
},
selinux => {
enabled => false
}
}```
from sysbox-ee.
I'm on Ubuntu 19.04. 5.0.0-1026-gcp
Thanks; looks like this is a very recent Ubuntu image for GCP (per the info in this site), but for some reason it does not include the Ubuntu shiftfs module (which is present in their latest server and desktop kernel images). We will dig around a bit to see what's going on.
from sysbox-ee.
As mentioned earlier, you can try upgrading the kernel with:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ reboot
Or alternatively you can configure the Docker daemon in userns-remap mode. To do this:
- After installing sysbox, edit the
/etc/docker/daemon.json
file to add the "userns-remap" entry:
{
"runtimes": {
"sysbox-runc": {
"path": "/usr/local/sbin/sysbox-runc"
}
},
"userns-remap": "sysbox"
}
- Restart Docker:
$ sudo systemctl restart docker
from sysbox-ee.
Michael,
Hopefully you were able to get past the error you were seeing; let us know if you need any help with this please. Otherwise we can close this issue.
Thanks!
-Cesar
from sysbox-ee.
Closing.
from sysbox-ee.
@ctalledo I was poking the same issue, and it turned out that ubuntu-2004-focal-*
images and even ubuntu-2010-groovy-v20201022a
does not include the shiftfs
module (I also tested AWS focal images, they have not got it as well)
However the ubuntu-1804-bionic-*
ones has got it and works charmly, after sudo modprobe shiftfs
from sysbox-ee.
I am testing Amazon's Ubuntu 20.04 and this problem is still happening:
$ uname -rs
Linux 5.8.0-1041-aws
The error is
ERROR: for CONTAINERNAME Cannot start service CONTAINERNAME: OCI runtime create failed: error in the container spec: this container requires user-ID shifting but the kernel does not support it. Upgrade your kernel to include the shiftfs module, or alternatively enable Linux user-namespace support in the the container manager (e.g., Docker userns-remap, CRI-O userns annotation, etc). Refer to the Sysbox troubleshooting guide for more info.: unknown
ERROR: Encountered errors while bringing up the project.
And if I run sudo modprobe shiftfs
I have:
modprobe: FATAL: Module shiftfs not found in directory /lib/modules/5.8.0-1041-aws
from sysbox-ee.
Hi @rubenanapu ,
Thanks for trying Sysbox.
The AWS Ubuntu 20.04 images do not carry the shiftfs module required by Sysbox (the Ubuntu desktop and server images do).
However, it's pretty easy to build & install the module as described here:
https://github.com/toby63/shiftfs-dkms/tree/k5.8#howto
For example:
git clone -b k5.8 https://github.com/toby63/shiftfs-dkms.git shiftfs-k58
cd shiftfs-k58
./update1
sudo make -f Makefile.dkms
modinfo shiftfs
Please follow these steps and let me know if you hit any issues.
Once shiftfs is installed, you can try docker run --runtime=sysbox-runc -it nestybox/ubuntu-focal-systemd-docker
and it should work without problem.
from sysbox-ee.
Hi @ctalledo,
thank you very much for replying.
The commands you suggested did the trick:
git clone -b k5.8 https://github.com/toby63/shiftfs-dkms.git shiftfs-k58
cd shiftfs-k58
./update1
sudo make -f Makefile.dkms
modinfo shiftfs
Thank you very much for this great sysbox project.
from sysbox-ee.
Related Issues (11)
- ubuntu 19.04 server: runtime not found HOT 3
- How to limit resources on a system container? HOT 4
- Error when pulling openjdk images HOT 5
- connection refused after running docker with sysbox-runc HOT 5
- License HOT 3
- Bind mount of `/run` or `/var/run` into container causes host network to become unresponsive HOT 13
- Unsupported linux distribution: Pop!_OS 20.04 HOT 1
- proc-sys-fs-binfmt_misc.automount: Failed to initialize automounter: Operation not permitted HOT 4
- The 'command' section in docker-compose.yml do nothing HOT 2
- Issues running a Rancher container inside a Sysbox container HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysbox-ee.