sudo sed -i -e 's/enabled=0/enabled=1/' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
sudo dnf install -y git vim-enhanced yum-utils rust cargo python3 python3-virtualenv make tar gcc patch flex bison bc elfutils-libelf-devel elfutils podman dmidecode strace lsof psmisc glibc-static
mkdir /tmp/venv
virtualenv-3 /tmp/venv
. /tmp/venv/bin/activate
pip3 install pyelftools
git clone https://github.com/containers/libkrunfw
git clone https://github.com/containers/libkrun
cd libkrunfw
sed -i -e 's|@python3|@. /tmp/venv/bin/activate; python3|' Makefile
make
sudo make install
cd ../libkrun
make
sudo make install
cd examples
make
make rootfs
LD_LIBRARY_PATH=/usr/local/lib64 ./chroot_vm ./rootfs_fedora /bin/sh
Last active
March 23, 2021 01:30
-
-
Save orimanabu/b5505c8f06bfaaa7b3c211a9ed4841f6 to your computer and use it in GitHub Desktop.
libkrun on CentOS Stream 8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment