编译qemu
安装编译环境和必要的附加组件
1 | $ sudo apt install dkms build-essential pkg-config libglib2.0-dev libpixman-1-dev libusb-dev libusbredirparser-dev libfdt-dev libbz2-dev flex bison |
下载解压源代码
1 | $ wget https://download.qemu.org/qemu-4.0.0.tar.xz |
配置并编译
只编译x86_64架构
1 | $ cd qemu-4.0.0 |
安装
1 | $ sudo make install |
目标程序安装在/usr/local/