Comment on page
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 qemu
Download Source
$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ git submodule update --init --recursive
Configure 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-user
Build and Install QEMU
make -j8
make install
The make install might not work
for i in $(ls | grep user);do sudo cp $i/qemu-* /usr/bin/;done
Last modified 4yr ago