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

Warning when using an unsupported version of Linux #268

Open
ianlewis opened this issue May 31, 2019 · 3 comments
Open

Warning when using an unsupported version of Linux #268

ianlewis opened this issue May 31, 2019 · 3 comments

Comments

@ianlewis
Copy link
Contributor

@ianlewis ianlewis commented May 31, 2019

gVisor fails in unintuitive ways when run on an older version of Linux. We should print a warning or simply fail if he version of Linux used is less than the currently supported version.

@ianlewis ianlewis changed the title gVisor should provide a warning when using an unsupported version of Linux Warning when using an unsupported version of Linux May 31, 2019
@ianlewis
Copy link
Contributor Author

@ianlewis ianlewis commented May 31, 2019

Currently runsc fails with an error like the following because the kernel is missing the memfd_create syscall which was added in Linux 3.17

OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/2779a57fb4979db21996621118dd72bf58842937f0de04613184e8b68f2659bc/log.json: no such file or directory): /usr/local/bin/runsc did not terminate sucessfully: unknown.

See #100

@prattmic
Copy link
Member

@prattmic prattmic commented May 31, 2019

In theory, we do have a warning: https://github.com/google/gvisor/blob/master/pkg/sentry/memutil/memutil_unsafe.go#L34

I know the plumbing all the way up to the Docker CLI worked when that was added, but it must have regressed since then.

@fvoznika
Copy link
Member

@fvoznika fvoznika commented Jun 3, 2019

I think it broke when a synchronization point was added to sandbox.New(). It will be fixed with: https://gvisor-review.git.corp.google.com/c/gvisor/+/18260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.