[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/NGINX PATCH 3/3] README.md: Update with info about building and running
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> --- README.md | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3cfcdd..a2026f9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,48 @@ -Nginx for Unikraft -============================= - +# Nginx for Unikraft This is the port of Nginx for Unikraft as external library. +## Build +Nginx depends on the following libraries, that need to +be added to `Makefile` in this order: + +* `pthreads`, e.g. `pthread-embedded` +* `libc`, e.g. `newlib` +* network stack, e.g. `lwip` + +Before you proceed to writing your own application, you can use the `main()` +function provided in the Nginx glue code by enabling it in its configuration +menu. + +## Root filesystem +### Creating the filesystem +Nginx needs a filesystem which should contain its configuration files, HTML +files and log files. Therefore, the filesystem needs to be created before +running the VM. You may find such an example in `nginx-rootfs-example/` +subdirectory. + +### Using the filesystem +Mounting the filesystem is a transparent operation. All you have to do +is to provide the right Qemu parameters in order for Unikraft to mount +the filesystem. We will use the 9pfs support for filesystems and for +this you will need to use the following parameters: + +```bash +-fsdev local,id=myid,path=<some directory>,security_model=none \ +-device virtio-9p-pci,fsdev=myid,mount_tag=test,disable-modern=on,disable-legacy=off +``` + +You should also use `vfs.rootdev=test` to specify the 9pfs mounting +tag to Unikraft. To enable 9pfs, you'll need to select the following +menu options, all under `Library Configuration`: + +* `uk9p: 9p client` +* `vfscore: VFS Core Interface` + → `vfscore: Configuration` + → `Automatically mount a root filesysytem` + → `Default root filesystem` + → `9PFS` +* `uk library parameter` + +## Further information Please refer to the `README.md` as well as the documentation in the `doc/` subdirectory of the main unikraft repository. -- 2.20.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |