Skip to content
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

Regression in 'create': fails to start on Silverblue because it tries to bind-mount /usr from the host as read-write #277

Closed
Zlopez opened this issue Sep 27, 2019 · 3 comments

Comments

@Zlopez
Copy link

Zlopez commented Sep 27, 2019

Hi,

I recently updated to Fedora 31 Silverblue beta and I'm not able to enter toolbox anymore. I tried to delete the F30 toolbox and created a new one with F31.

When trying toolbox -v enter I ended up with:

toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user zlopez
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: checking if 'podman system migrate' exists
toolbox: migration not needed: 1.5.1 is unchanged
toolbox: Fedora generational core is f31
toolbox: base image is fedora-toolbox:31
toolbox: container is fedora-toolbox-31
toolbox: checking if container fedora-toolbox-31 exists
toolbox: calling org.freedesktop.Flatpak.SessionHelper.RequestSession
toolbox: starting container fedora-toolbox-31
toolbox: /etc/profile.d/toolbox.sh already mounted in container fedora-toolbox-31
Error: unable to start container "fedora-toolbox-31": error reading container (probably exited) json message: EOF
toolbox: failed to start container fedora-toolbox-31
@rajveermalviya
Copy link

Experiencing the same error on my Silverblue 31 beta machine.

@juhp
Copy link
Contributor

juhp commented Sep 29, 2019

Sadly toolbox is not working with current F31 podman.
Best bet in my opinion for SB31 is to try podman-1.6.0-0.2.rc2.git9181c65.fc31 from koji, but even that tends to surface problems, like this:

$ toolbox -v enter -r 31
:
:
Error: unable to start container "fedora-toolbox-31": remount '/var/home/petersen/.local/share/containers/storage/overlay/b0a3ed174ba2143628674a8dffa1859017ef8726d10465fea23345c1f710e825/merged/run/host/usr': Operation not permitted: OCI runtime permission denied error

I am not sure if this can be fixed in Toolbox or Podman..
Though with recent podman-1.6-dev it works fine in Fedora 31 Workstation.

@debarshiray
Copy link
Member

Yes, this was a regression in the create command introduced by https://github.com/debarshiray/toolbox/pull/264.

This should be fixed by https://github.com/debarshiray/toolbox/pull/276 but since the bug was in create, you will have to recreate the container.

(There's a more detailed discussion of this in containers/podman#4061)

@debarshiray debarshiray changed the title toolbox: failed to start container on Fedora 31 Silverblue beta Regression in 'create': fails to start on Silverblue because it tries to bind-mount /usr from the host as read-write Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants