From e2df50fe37f7eaf88fd8b8ef31fed826e3154f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20Tr=C3=A9gan?= Date: Thu, 13 Nov 2025 08:23:18 +0100 Subject: [PATCH 1/3] README: fix the rootfs path in required `LD_LIBRARY_PATH` case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabien Trégan --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ac1996db..7b5bfd577 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,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 From ae032e1286726656bbe1b9e96b303e287931e985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20Tr=C3=A9gan?= Date: Thu, 13 Nov 2025 08:23:18 +0100 Subject: [PATCH 2/3] README: add requiried optional features for chroot_vm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabien Trégan --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7b5bfd577..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 ``` From a20c4d467487405c14f514936a171cf41c9c3f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20Tr=C3=A9gan?= Date: Thu, 13 Nov 2025 08:23:18 +0100 Subject: [PATCH 3/3] .gitignore: add missing examples/rootfs_fedora directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabien Trégan --- .gitignore | 1 + 1 file changed, 1 insertion(+) 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