gVisor on Linux 5.15

43 views
Skip to first unread message

Wenhui Zhang

unread,
Nov 6, 2022, 3:15:36 PM11/6/22
to gVisor Users [Public]
Hi, everyone:

Anyone tried to run gVisor on 5.15 please?

If I would like to get it work on 5.15, what engineering work should I make please?

Ayush Ranjan

unread,
Nov 6, 2022, 9:21:05 PM11/6/22
to Wenhui Zhang, gVisor Users [Public]
Hi Wenhui,
What platform are you using to run runsc on Linux 5.15? And what issues are you having?

--
You received this message because you are subscribed to the Google Groups "gVisor Users [Public]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gvisor-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gvisor-users/0f3d4ca1-4ac4-4489-9518-26460835886bn%40googlegroups.com.

Wenhui Zhang

unread,
Nov 6, 2022, 10:19:58 PM11/6/22
to Ayush Ranjan, gVisor Users [Public]
When building through docker commands (make copy TARGETS=runsc DESTINATION=bin/), I met no errors, however after I switched to golang native compilation[2], I encountered some errors shown below:

~/gvisor# echo "module runsc" > go.mod

~/gvisor# GO111MODULE=on go get gvisor.dev/gvisor/runsc@go
go: finding gvisor.dev/gvisor go
build gvisor.dev/gvisor/runsc: cannot find module for path embed

~/gvisor# CGO_ENABLED=0 GO111MODULE=on sudo -E go build -o /usr/local/bin/runsc gvisor.dev/gvisor/runsc
build gvisor.dev/gvisor/runsc: cannot find module for path embed

Etienne Perot

unread,
Nov 9, 2022, 11:48:10 PM11/9/22
to Wenhui Zhang, Ayush Ranjan, gVisor Users [Public]
I haven't been able to reproduce this.
Can you provide more information, like which version of Go you are using, which Linux distribution version? Are your packages up-to-date?
Do you have Go-related environment variables set beyond the ones shown in the command-lines?
Are you running this from a checked-out repository of the gVisor repo, and if so, which commit hash?
Have you tried compiling it through the Makefile instead, and what output do you get for that?
From the master branch:
$ mkdir -p bin
$ make copy TARGETS=runsc DESTINATION=bin/
$ sudo cp ./bin/runsc /usr/local/bin


Ian Lewis

unread,
Nov 10, 2022, 2:49:25 AM11/10/22
to Etienne Perot, Wenhui Zhang, Ayush Ranjan, gVisor Users [Public]
Etienne,

This may be some kind of issue with the go branch which contains a go gettable version of gvisor project. Perhaps the "embed" package is not being exported properly?

Ian



--

Ian Lewis | Developer Advocate | ianl...@google.com | +81 (03)4540-2465

Michael Pratt

unread,
Nov 10, 2022, 2:33:32 PM11/10/22
to Ian Lewis, Etienne Perot, Wenhui Zhang, Ayush Ranjan, gVisor Users [Public]
What version of Go are you using? Does the same issue occur with Go 1.19?

Reply all
Reply to author
Forward
0 new messages