Skip to content

Commit 4168abe

Browse files
committed
content: Add Prepare openEuler RISC-V section to Kata
Add steps to guide the preparation of openEuler RISC-V 24.09 64-bit QEMU VM. Signed-off-by: Ruoqing He <[email protected]>
1 parent 4ef0acf commit 4168abe

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/cloud-native/kata-containers/kata-on-openEuler-riscv64.md

+22
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,25 @@ export PATH=$PATH:/opt/qemu/bin
3232

3333
. .bashrc
3434
```
35+
36+
## Prepare openEuler RISC-V
37+
38+
```sh
39+
mkdir -p /opt/openEuler
40+
pushd /opt/openEuler
41+
42+
# Use 24.09 for the time being, you may choose what's latest
43+
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/RISCV_VIRT_CODE.fd
44+
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/RISCV_VIRT_VARS.fd
45+
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/openEuler-24.09-riscv64.qcow2.xz
46+
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/start_vm.sh
47+
48+
# Tune command to work with QEMU greater than v9.0.2
49+
sed -i 's/-drive file="$drive",format=qcow2,id=hd0 \\/-drive file="$drive",format=qcow2,id=hd0,if=none \\/g' start_vm.sh
50+
51+
# Extract qcow2 image
52+
unxz openEuler-24.09-riscv64.qcow2.xz
53+
54+
# Start VM, default account/password is root/openEuler12#$
55+
bash start_vm.sh
56+
```

0 commit comments

Comments
 (0)