diff --git a/.gitignore b/.gitignore index f2601c038..94de6445c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ examples/boot_efi examples/external_kernel examples/nitro examples/consoles +examples/rootfs_fedora test-prefix diff --git a/README.md b/README.md index 5ac1996db..567d39fdf 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,11 @@ This is a simple example providing ```chroot```-like functionality using ```libk #### Building chroot_vm +To be able to ```chroot_vm```, you need need to build libkrun with the `virtio-block` and `virtio-net` optional features: + ``` +make BLK=1 NET=1 +sudo make BLK=1 NET=1 install cd examples make ``` @@ -244,7 +248,7 @@ If the ```libkrun``` and/or ```libkrunfw``` libraries were installed on a path t To avoid this problem, use the ```LD_LIBRARY_PATH``` environment variable to point to the location where the libraries were installed. For example, if the libraries were installed in ```/usr/local/lib64```, use something like this: ``` -LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm rootfs/ /bin/sh +LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm rootfs_fedora/ /bin/sh ``` ## Status