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

generic sandbox: build a sandbox by available toolchain #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mahaase
Copy link
Contributor

@mahaase mahaase commented Jun 16, 2022

sandbox architecture can be different to host architecture by
using qemu binfmt. tested with >= Ubuntu 18 LTS including WSL2.

  • install qemu binfmt-support qemu-user-static
  • install qemu-user-static >= 5 manually by Ubuntu packages (has no dependencies)
  • may a workaround for WSL2 necessary:
    • update-binfmts --unimport
    • update-binfmts --import
  • restart binfmts-support service
  • check that update-binfmts --display shows interpreter /usr/libexec/qemu-binfmt/
    instead of /usr/bin/qemu-*-static

check the example in tests directory.

NOTE: may build without --sandbox will fail of course, if sandbox isn't host architecuture

sandbox architecture can be different to host architecture by
using qemu binfmt. tested with >= Ubuntu 18 LTS including WSL2.

- install qemu binfmt-support qemu-user-static
- install qemu-user-static >= 5 manually by Ubuntu packages (has no dependencies)
- may a workaround for WSL2 necessary:
  - update-binfmts --unimport
  - update-binfmts --import
- restart binfmts-support service
- check that update-binfmts --display shows interpreter /usr/libexec/qemu-binfmt/
  instead of /usr/bin/qemu-*-static

check the example in tests directory.

NOTE: may build without --sandbox will fail of course, if sandbox isn't host architecuture
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

Successfully merging this pull request may close these issues.

1 participant