Skip to content

Error running the Elf Loader #36

@lavanyamenon15

Description

@lavanyamenon15

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions