Giter Site home page Giter Site logo

Comments (11)

ctalledo avatar ctalledo commented on June 6, 2024 1

Hi @rubenanapu ... happy that it worked! We will update our docs to include this info in the Sysbox installation instructions.

from sysbox-ee.

ctalledo avatar ctalledo commented on June 6, 2024

from sysbox-ee.

stahnma avatar stahnma commented on June 6, 2024

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.

ctalledo avatar ctalledo commented on June 6, 2024

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.

ctalledo avatar ctalledo commented on June 6, 2024

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:

  1. 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"
}
  1. Restart Docker:
$ sudo systemctl restart docker

from sysbox-ee.

ctalledo avatar ctalledo commented on June 6, 2024

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.

ctalledo avatar ctalledo commented on June 6, 2024

Closing.

from sysbox-ee.

ikropotov avatar ikropotov commented on June 6, 2024

@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.

rubenanapu avatar rubenanapu commented on June 6, 2024

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.

ctalledo avatar ctalledo commented on June 6, 2024

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.

rubenanapu avatar rubenanapu commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.