Install bcc
Installing BCC from source:
-
Install the necessary dependencies:
sudo apt-get install -y bpfcc-tools libbpfcc libbpfcc-dev linux-headers-$(uname -r)sudo apt install -y zip bison build-essential cmake flex git libedit-dev \ libllvm14 llvm-14-dev libclang-14-dev python3 zlib1g-dev libelf-dev libfl-dev python3-setuptools \ liblzma-dev libdebuginfod-dev arping netperf iperf -
Clone the BCC repository:
git clone https://github.com/iovisor/bcc.git -
Build BCC:
mkdir bcc/build && cd bcc/build cmake .. make -
Install BCC:
sudo make install -
Update the shared library cache:
sudo ldconfig -
Run kvmexit
cd /usr/share/bcc/tools && sudo ./kvmexit