xv6-riscv requires the RISC-V versions of QEMU (7.2+), GDB (8.3+), GCC,
and Binutils. You can set this up natively or via Docker.
Option A: Native Installation
Installation guides for Linux, Windows, and Mac are provided here:
MIT Tools Page.
Note: If using Linux, you likely need Ubuntu 24.04 (or later) for
apt-get to install a recent enough version of QEMU.
Option B: Docker (Containerized)
To avoid dependency issues, you can run QEMU inside a container that has
all dependencies pre-installed.
1. First,
Install Docker.
2. Run the following commands to pull the image and start the environment: