Skip to content

Commit

Permalink
content: Add Prepare openEuler RISC-V section to Kata
Browse files Browse the repository at this point in the history
Add steps to guide the preparation of openEuler RISC-V 24.09 64-bit QEMU
VM.

Signed-off-by: Ruoqing He <[email protected]>
  • Loading branch information
TimePrinciple committed Nov 22, 2024
1 parent 4ef0acf commit 4168abe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/cloud-native/kata-containers/kata-on-openEuler-riscv64.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,25 @@ export PATH=$PATH:/opt/qemu/bin

. .bashrc
```

## Prepare openEuler RISC-V

```sh
mkdir -p /opt/openEuler
pushd /opt/openEuler

# Use 24.09 for the time being, you may choose what's latest
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/RISCV_VIRT_CODE.fd
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/RISCV_VIRT_VARS.fd
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/openEuler-24.09-riscv64.qcow2.xz
wget https://repo.openeuler.org/openEuler-24.09/virtual_machine_img/riscv64/start_vm.sh

# Tune command to work with QEMU greater than v9.0.2
sed -i 's/-drive file="$drive",format=qcow2,id=hd0 \\/-drive file="$drive",format=qcow2,id=hd0,if=none \\/g' start_vm.sh

# Extract qcow2 image
unxz openEuler-24.09-riscv64.qcow2.xz

# Start VM, default account/password is root/openEuler12#$
bash start_vm.sh
```

0 comments on commit 4168abe

Please sign in to comment.