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

Krustlet not running on Alpine Linux #29

Closed
jiayihu opened this issue Dec 17, 2020 · 4 comments
Closed

Krustlet not running on Alpine Linux #29

jiayihu opened this issue Dec 17, 2020 · 4 comments
Labels
bug Something isn't working fedra-compute

Comments

@jiayihu
Copy link
Owner

jiayihu commented Dec 17, 2020

Krustlet worked fine on Rasp with Ubuntu Server but doesn't run on Alpine. The issue seems to be caused by the required linker /lib/ld-linux-aarch64.so.1 which is not available on Alpine, which uses musl libc instead of the full GNU libc.

Trying to install the compat libs from Alpine registry doesn't seem to work.

rust-lang/rust#46651

@jiayihu jiayihu added bug Something isn't working fedra-compute labels Dec 17, 2020
@jiayihu
Copy link
Owner Author

jiayihu commented Dec 18, 2020

As workaround, I'm trying to compile krustlet-wasi with aarch64-unknown-linux-gnu target but with static linking so that it does not need the linker.

https://doc.rust-lang.org/reference/linkage.html#static-and-dynamic-c-runtimes

@jiayihu
Copy link
Owner Author

jiayihu commented Dec 19, 2020

I was able to build with aarch64-unknown-linux-musl target after applying the libc patch for wasmtime bytecodealliance/wasmtime#2133 Now I need to figure out how to compile using openssl instead of rust-tls which doesn't support IP SAN.

cross used for cross-compiling krustlet has removed built-in support for openssl cross-rs/cross#229

@jiayihu
Copy link
Owner Author

jiayihu commented Dec 19, 2020

I built a custom image based on cross image for aarch64-unknown-linux-musl and with openssl pre-installed. Now krustlet it's working again

@jiayihu jiayihu closed this as completed Dec 19, 2020
@jiayihu
Copy link
Owner Author

jiayihu commented Dec 19, 2020

Opened issue krustlet/krustlet#466 in krustlet for future tracking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fedra-compute
Projects
None yet
Development

No branches or pull requests

1 participant