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

Error running the Elf Loader #36

Open
lavanyamenon15 opened this issue Sep 24, 2023 · 0 comments
Open

Error running the Elf Loader #36

lavanyamenon15 opened this issue Sep 24, 2023 · 0 comments

Comments

@lavanyamenon15
Copy link

lavanyamenon15 commented Sep 24, 2023

We encountered a few errors when following the instructions to set up of the Elf Loader.

When we ran the following commands:

  1. curl --proto '=https' --tlsv1.2 -sSf https://get.kraftkit.sh | sudo sh
  2. git clone https://github.com/unikraft/app-elfloader elfloader
    cd elfloader/
  3. kraft build (then choosing elfloader-qemu-x86_64-initrd-strace)
  4. git clone https://github.com/unikraft/dynamic-apps
  5. kraft run --target elfloader-qemu-x86_64-initrd-strace --plat qemu --initrd ../dynamic-apps/lang/c/helloworld/:/ -- /helloworld

We received a "path does not exist" error.

When we tried to fix this by running the following commands:

  1. curl --proto '=https' --tlsv1.2 -sSf https://get.kraftkit.sh | sudo sh
  2. git clone https://github.com/unikraft/app-elfloader elfloader
    cd elfloader/
  3. kraft build (then chose elfloader-qemu-x86_64-initrd-strace)
  4. git clone https://github.com/unikraft/dynamic-apps
  5. kraft run (then chose elfloader-qemu-x86_64-initrd-strace)

We received "Init function at 0x16e7e0 returned error -1"

When we followed the "Quick Setup (aka TLDR)" everything worked except we had to use sudo in front of the last line below.

Sudo qemu-system-x86_64
-fsdev local,id=myid,path="/",security_model=none
-device virtio-9p-pci,fsdev=myid,mount_tag=fs1,disable-modern=on,disable-legacy=off
-kernel workdir/build/elfloader_qemu-x86_64 -nographic
-enable-kvm -cpu host
-append /bin/ls

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

1 participant