环境ubuntu22.04.1
clone源码
git clone https://github.com/mit-pdos/6.828-qemu.git qemu
cd qemu
配置(注意需要python2的环境,此处我用的是python2.7)
./configure --disable-kvm --disable-werror --target-list="i386-softmmu x86_64-softmmu" --python=python2.7
make && make install
make遇到错误:
/qemu/qga/commands-posix.c:633: undefined reference to `major'
/qemu/qga/commands-posix.c:634: undefined reference to `minor'
解决办法:在/qemu/qga/commands-posix.c稳健者插入
#include <sys/sysmacros.h>