Skip to content

Outdated docs on detailed steps of using 9PFS #83

@thass0

Description

@thass0

This part of the docs in the README seems to be outdated:

For 9pfs, also make sure that you configured vfscore to automatically mount a host shared filesystem: Under Library Configuration -> vfscore: Configuration select Automatically mount a root filesystem, set Default root filesystem to 9PFS, and ensure that Default root device is to fs0. This last option simplifies the use of the -e parameter of qemu-guest.

It seems to me that the quote refers to configuration options for vfscore that were replaced by this commit: a3b1eee

With the current version of Unikraft, the following steps allow booting the elfloader with the example/helloworld app again:

  • git clone https://github.com/unikraft/app-elfloader elfloader && cd elfloader && ./scripts/setup.sh
  • cd example/helloworld/ && make helloworld
  • Set up the rootfs/ matching the ldd output for the helloworld binary (as described in the README, except I also add an /etc directory)
  • UK_DEFCONFIG=$(pwd)/defconfigs/qemu-x86_64-9pfs make defconfig
  • Configure Library Configuration -> vfscore -> Compiled-in filesystem table -> Configuration and pick 9PFS
  • make -j$(nproc)
  • ./workdir/unikraft/support/scripts/qemu-guest -k workdir/build/elfloader_qemu-x86_64 -e rootfs/ -a "/helloworld"
Booting from ROM..Powered by
o.   .o       _ _               __ _
Oo   Oo  ___ (_) | __ __  __ _ ' _) :_
oO   oO ' _ `| | |/ /  _)' _` | |_|  _)
oOo oOO| | | | |   (| | | (_) |  _) :_
 OoOoO ._, ._:_:_,\_._,  .__,_:_, \___)
         Calypso 0.17.0~0502e190-custom
Hello world!

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