Example binary "chroot_vm" can't find libkrun.so on Fedora 32
mgamal opened this issue · comments
Compiled libkrunfw and libkrun with the instructions in the README file. However, when trying:
$ ./chroot_vm rootfs/ /bin/sh
./chroot_vm: error while loading shared libraries: libkrun.so: cannot open shared object file: No such file or directory
It's possible that the libraries where installed into /usr/local/lib
or /usr/local/lib64
, and that location is not configured in your distribution's /etc/ld.so.conf
. Could you please try with something like this:
$ LD_LIBRARY_PATH=/usr/local/lib ./chroot_vm rootfs/ /bin/sh
or
$ LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm rootfs/ /bin/sh
Using
$ LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm rootfs/ /bin/sh
solves the problem.
Thanks
Using
$ LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm rootfs/ /bin/sh
solves the problem.
Thanks
Great! I'm going to document this problem in README.md