Skip to content

Commit 4ef0acf

Browse files
committed
content: Add Kata on openEuler RISC-V document
Documents verification process of kata-containers on openEuler RISC-V 64-bit system. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent 7dc75ef commit 4ef0acf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Kata-Containers On openEuler RISC-V 64-bit
2+
3+
If you are verifying kata-containers' availability on openEuler RISC-V 64-bit
4+
system, using VMM except for QEMU, you will need a QEMU with version greater
5+
than or equal to v9.0.2 for that purpose.
6+
7+
## Prepare QEMU
8+
9+
```sh
10+
# Install dependencies to build and run QEMU
11+
DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \
12+
git python3 python3-pip ninja-build build-essential pkg-config curl bc jq \
13+
libslirp-dev libfdt-dev libglib2.0-dev libssl-dev libpixman-1-dev \
14+
flex bison
15+
16+
# Clone QEMU source code repository
17+
git clone --depth 1 --branch v9.1.0 https://gitlab.com/qemu-project/qemu.git
18+
19+
pushd qemu
20+
# Prepare directory to for QEMU to be installed
21+
mkdir -p /opt/qemu
22+
# Build and install QEMU
23+
./configure --prefix=/opt/qemu && make -j$(nproc)
24+
# This requires root privilege
25+
sudo make install
26+
popd
27+
# Clean up
28+
rm -rf qemu
29+
30+
# Add line below to your .bashrc (.zshrc or scripts in profile.d/ whatever)
31+
export PATH=$PATH:/opt/qemu/bin
32+
33+
. .bashrc
34+
```

0 commit comments

Comments
 (0)