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

Outdated docs on detailed steps of using 9PFS #83

Open
thass0 opened this issue Jul 8, 2024 · 0 comments
Open

Outdated docs on detailed steps of using 9PFS #83

thass0 opened this issue Jul 8, 2024 · 0 comments

Comments

@thass0
Copy link
Member

thass0 commented Jul 8, 2024

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!
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