Building QEMU on Ubuntu
This guide is stolen from http://logan.tw/posts/2018/02/18/build-qemu-user-static-from-source-code/
Install dependencies
$ sudo apt-get build-dep qemuDownload Source
$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ git submodule update --init --recursiveConfigure QEMU
./configure \
--prefix=$(cd ..; pwd)/qemu-user-static \
--static \
--disable-system \
--enable-linux-user
### Or
./configure \
--prefix=$(cd ..; pwd)/qemu-user-static \
--disable-system \
--enable-linux-userBuild and Install QEMU
make -j8
make installThe make install might not work
for i in $(ls | grep user);do sudo cp $i/qemu-* /usr/bin/;doneLast updated
Was this helpful?