Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Last active October 10, 2025 11:04
Show Gist options
  • Select an option

  • Save sogaiu/1f20323ffa67ce2ffd320e614c5fa47e to your computer and use it in GitHub Desktop.

Select an option

Save sogaiu/1f20323ffa67ce2ffd320e614c5fa47e to your computer and use it in GitHub Desktop.
build qemu from source

commands

git clone https://gitlab.com/qemu-project/qemu.git
cd qemu
git checkout v10.1.1
./configure --prefix=$HOME/.local
# a little more than 35 minutes here
time make

linux mint bits

may want to remove some of the following:

$ sudo apt search qemu | grep ^i
i A ipxe-qemu                       - PXE boot firmware - ROM images for qemu   
i A ipxe-qemu-256k-compat-efi-roms  - PXE boot firmware - Compat EFI ROM images 
i A qemu-block-extra                - extra block backend modules for qemu-syste
i A qemu-system-common              - QEMU full system emulation binaries (commo
i A qemu-system-data                - QEMU full system emulation (data files)   
i A qemu-system-gui                 - QEMU full system emulation binaries (graph
i A qemu-system-modules-opengl      - QEMU full system emulation binaries (OpenG
i A qemu-system-modules-spice       - QEMU full system emulation binaries (spice
i   qemu-system-x86                 - QEMU full system emulation binaries (x86) 
i A qemu-utils                      - QEMU utilities   

things that look like they got installed via make install:

qemu-system-common # found qemu-bridge-helper and others?
qemu-system-data # found many files
qemu-system-x86 # found qemu-system-i386
qemu-utils # found qemu-img, qemu-io, and qemu-nbd

not found (possibly not built):

ipxe-qemu
ipxe-qemu-256k-compat-efi-roms
qemu-system-gui
qemu-system-modules-opengl 
qemu-system-modules-spice

used dpkg -L <package-name> to see which files were installed for a particular package

install log

allegedly make uninstall should work, but fwiw:

~/src/qemu/build$ make install
[1/114] Generating subprojects/dtc/version_gen.h with a custom command
[2/114] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
[2/3] Installing files
Installing subprojects/dtc/libfdt/libfdt.a to /home/user/.local/lib/x86_64-linux-gnu
Installing trace/trace-events-all to /home/user/.local/share/qemu
Installing qemu-aarch64 to /home/user/.local/bin
Installing qemu-aarch64_be to /home/user/.local/bin
Installing qemu-alpha to /home/user/.local/bin
Installing qemu-arm to /home/user/.local/bin
Installing qemu-armeb to /home/user/.local/bin
Installing qemu-hexagon to /home/user/.local/bin
Installing qemu-hppa to /home/user/.local/bin
Installing qemu-i386 to /home/user/.local/bin
Installing qemu-loongarch64 to /home/user/.local/bin
Installing qemu-m68k to /home/user/.local/bin
Installing qemu-microblaze to /home/user/.local/bin
Installing qemu-microblazeel to /home/user/.local/bin
Installing qemu-mips to /home/user/.local/bin
Installing qemu-mips64 to /home/user/.local/bin
Installing qemu-mips64el to /home/user/.local/bin
Installing qemu-mipsel to /home/user/.local/bin
Installing qemu-mipsn32 to /home/user/.local/bin
Installing qemu-mipsn32el to /home/user/.local/bin
Installing qemu-or1k to /home/user/.local/bin
Installing qemu-ppc to /home/user/.local/bin
Installing qemu-ppc64 to /home/user/.local/bin
Installing qemu-ppc64le to /home/user/.local/bin
Installing qemu-riscv32 to /home/user/.local/bin
Installing qemu-riscv64 to /home/user/.local/bin
Installing qemu-s390x to /home/user/.local/bin
Installing qemu-sh4 to /home/user/.local/bin
Installing qemu-sh4eb to /home/user/.local/bin
Installing qemu-sparc to /home/user/.local/bin
Installing qemu-sparc32plus to /home/user/.local/bin
Installing qemu-sparc64 to /home/user/.local/bin
Installing qemu-x86_64 to /home/user/.local/bin
Installing qemu-xtensa to /home/user/.local/bin
Installing qemu-xtensaeb to /home/user/.local/bin
Installing qemu-system-aarch64 to /home/user/.local/bin
Installing qemu-system-alpha to /home/user/.local/bin
Installing qemu-system-arm to /home/user/.local/bin
Installing qemu-system-avr to /home/user/.local/bin
Installing qemu-system-hppa to /home/user/.local/bin
Installing qemu-system-i386 to /home/user/.local/bin
Installing qemu-system-loongarch64 to /home/user/.local/bin
Installing qemu-system-m68k to /home/user/.local/bin
Installing qemu-system-microblaze to /home/user/.local/bin
Installing qemu-system-microblazeel to /home/user/.local/bin
Installing qemu-system-mips to /home/user/.local/bin
Installing qemu-system-mips64 to /home/user/.local/bin
Installing qemu-system-mips64el to /home/user/.local/bin
Installing qemu-system-mipsel to /home/user/.local/bin
Installing qemu-system-or1k to /home/user/.local/bin
Installing qemu-system-ppc to /home/user/.local/bin
Installing qemu-system-ppc64 to /home/user/.local/bin
Installing qemu-system-riscv32 to /home/user/.local/bin
Installing qemu-system-riscv64 to /home/user/.local/bin
Installing qemu-system-rx to /home/user/.local/bin
Installing qemu-system-s390x to /home/user/.local/bin
Installing qemu-system-sh4 to /home/user/.local/bin
Installing qemu-system-sh4eb to /home/user/.local/bin
Installing qemu-system-sparc to /home/user/.local/bin
Installing qemu-system-sparc64 to /home/user/.local/bin
Installing qemu-system-tricore to /home/user/.local/bin
Installing qemu-system-x86_64 to /home/user/.local/bin
Installing qemu-system-xtensa to /home/user/.local/bin
Installing qemu-system-xtensaeb to /home/user/.local/bin
Installing qga/qemu-ga to /home/user/.local/bin
Installing qemu-keymap to /home/user/.local/bin
Installing qemu-img to /home/user/.local/bin
Installing qemu-io to /home/user/.local/bin
Installing qemu-nbd to /home/user/.local/bin
Installing storage-daemon/qemu-storage-daemon to /home/user/.local/bin
Installing qemu-edid to /home/user/.local/bin
Installing qemu-bridge-helper to /home/user/.local/libexec
Installing qemu-pr-helper to /home/user/.local/bin
Installing qemu-vmsr-helper to /home/user/.local/bin
Installing pc-bios/edk2-aarch64-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-arm-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-arm-vars.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-riscv-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-riscv-vars.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-i386-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-i386-secure-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-i386-vars.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-x86_64-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-x86_64-secure-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-loongarch64-code.fd to /home/user/.local/share/qemu
Installing pc-bios/edk2-loongarch64-vars.fd to /home/user/.local/share/qemu
Installing pc-bios/keymaps/ar to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/bepo to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/cz to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/da to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/de to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/de-ch to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/en-gb to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/en-us to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/es to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/et to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fi to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fo to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fr to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-be to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-ca to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-ch to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/hr to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/hu to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/is to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/it to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/ja to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/lt to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/lv to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/mk to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/nl to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/no to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/pl to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/pt to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/pt-br to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/ru to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/th to /home/user/.local/share/qemu/keymaps
Installing pc-bios/keymaps/tr to /home/user/.local/share/qemu/keymaps
Installing po/bg/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/bg/LC_MESSAGES
Installing po/de_DE/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/de_DE/LC_MESSAGES
Installing po/fr_FR/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/fr_FR/LC_MESSAGES
Installing po/hu/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/hu/LC_MESSAGES
Installing po/it/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/it/LC_MESSAGES
Installing po/sv/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/sv/LC_MESSAGES
Installing po/tr/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/tr/LC_MESSAGES
Installing po/uk/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/uk/LC_MESSAGES
Installing po/zh_CN/LC_MESSAGES/qemu.mo to /home/user/.local/share/locale/zh_CN/LC_MESSAGES
Installing /home/user/src/qemu/subprojects/dtc/libfdt/fdt.h to /home/user/.local/include
Installing /home/user/src/qemu/subprojects/dtc/libfdt/libfdt.h to /home/user/.local/include
Installing /home/user/src/qemu/subprojects/dtc/libfdt/libfdt_env.h to /home/user/.local/include
Installing /home/user/src/qemu/include/qemu/qemu-plugin.h to /home/user/.local/include
Installing new directory /home/user/.local/var/run
Installing /home/user/src/qemu/build/meson-private/libfdt.pc to /home/user/.local/lib/x86_64-linux-gnu/pkgconfig
Installing /home/user/src/qemu/ui/icons/qemu_16x16.png to /home/user/.local/share/icons/hicolor/16x16/apps
Installing /home/user/src/qemu/ui/icons/qemu_24x24.png to /home/user/.local/share/icons/hicolor/24x24/apps
Installing /home/user/src/qemu/ui/icons/qemu_32x32.png to /home/user/.local/share/icons/hicolor/32x32/apps
Installing /home/user/src/qemu/ui/icons/qemu_48x48.png to /home/user/.local/share/icons/hicolor/48x48/apps
Installing /home/user/src/qemu/ui/icons/qemu_64x64.png to /home/user/.local/share/icons/hicolor/64x64/apps
Installing /home/user/src/qemu/ui/icons/qemu_128x128.png to /home/user/.local/share/icons/hicolor/128x128/apps
Installing /home/user/src/qemu/ui/icons/qemu_256x256.png to /home/user/.local/share/icons/hicolor/256x256/apps
Installing /home/user/src/qemu/ui/icons/qemu_512x512.png to /home/user/.local/share/icons/hicolor/512x512/apps
Installing /home/user/src/qemu/ui/icons/qemu_32x32.bmp to /home/user/.local/share/icons/hicolor/32x32/apps
Installing /home/user/src/qemu/ui/icons/qemu.svg to /home/user/.local/share/icons/hicolor/scalable/apps
Installing /home/user/src/qemu/ui/qemu.desktop to /home/user/.local/share/applications
Installing /home/user/src/qemu/pc-bios/ast27x0_bootrom.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/bios.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/bios-256k.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/bios-microvm.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/qboot.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-cirrus.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-stdvga.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-vmware.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-qxl.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-virtio.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-ramfb.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-bochs-display.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vgabios-ati.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/openbios-sparc32 to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/openbios-sparc64 to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/openbios-ppc to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/QEMU,tcx.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/QEMU,cgthree.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-e1000.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-eepro100.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-ne2k_pci.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-pcnet.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-rtl8139.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pxe-virtio.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-e1000.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-eepro100.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-ne2k_pci.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-pcnet.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-rtl8139.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-virtio.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-e1000e.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/efi-vmxnet3.rom to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/qemu-nsis.bmp to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/multiboot.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/multiboot_dma.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/linuxboot.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/linuxboot_dma.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/kvmvapic.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pvh.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/s390-ccw.img to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/slof.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/skiboot.lid to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/pnv-pnor.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/palcode-clipper to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/u-boot.e500 to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/u-boot-sam460-20100605.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/qemu_vga.ndrv to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/edk2-licenses.txt to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/hppa-firmware.img to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/hppa-firmware64.img to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/opensbi-riscv64-generic-fw_dynamic.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/npcm7xx_bootrom.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/npcm8xx_bootrom.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vof.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/pc-bios/vof-nvram.bin to /home/user/.local/share/qemu
Installing /home/user/src/qemu/build/pc-bios/descriptors/50-edk2-i386-secure.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/50-edk2-x86_64-secure.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-aarch64.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-arm.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-i386.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-x86_64.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-loongarch64.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/build/pc-bios/descriptors/60-edk2-riscv64.json to /home/user/.local/share/qemu/firmware
Installing /home/user/src/qemu/pc-bios/dtb/bamboo.dtb to /home/user/.local/share/qemu/dtb
Installing /home/user/src/qemu/pc-bios/dtb/canyonlands.dtb to /home/user/.local/share/qemu/dtb
Installing /home/user/src/qemu/pc-bios/dtb/petalogix-ml605.dtb to /home/user/.local/share/qemu/dtb
Installing /home/user/src/qemu/pc-bios/dtb/petalogix-s3adsp1800.dtb to /home/user/.local/share/qemu/dtb
Installing /home/user/src/qemu/pc-bios/keymaps/sl to /home/user/.local/share/qemu/keymaps
Installing /home/user/src/qemu/pc-bios/keymaps/sv to /home/user/.local/share/qemu/keymaps

references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment