WSL 中的 xv6 安装(Ubuntu 20.04 LTS)

xv6 installation in WSL (Ubuntu 20.04 LTS)

我一直在尝试使用以下命令安装 xv6:

sudo apt-get install qemu
sudo apt-get install libc6-dev-i386
tar xzvf xv6-rev11.tar.gz
cd xv6-public
make
make qemu

我在 运行 make qemu 命令

时收到以下错误
qemu-system-i386 -serial mon:stdio -drive file=fs.img,index=1,media=disk,format=raw -drive file=xv6.img,index=0,media=disk,format=raw -smp 2 -m 512
make: qemu-system-i386: Command not found
make: *** [Makefile:225: qemu] Error 127

根据不同地方的建议,我在执行 make qemu

之前取消了 makefile 中第 54 行 QEMU = qemu-system-i386 的注释

请帮我修正错误。提前致谢...

您需要安装包含 qemu-system-i386 的软件包。 在 https://packages.ubuntu.com, you can find the right package: qemu-system-x86.

上稍作搜索后

要安装缺少的包,请键入

sudo apt install qemu-system-x86