notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
All times are UTC
Port details on branch 2022Q2
qemu42 QEMU CPU Emulator - 4.2.X branch
4.2.1_1 emulators Deleted on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 4.2.1_1Version of this port present on the latest quarterly branch.
Deprecated DEPRECATED: Use emulators/qemu or emulators/qemu-devel
Expired This port expired on: 2022-01-10
Maintainer: search for ports maintained by this maintainer
Port Added: 2020-09-30 02:05:09
Last Update: 2022-01-10 09:00:56
Commit Hash: ff8ff0d
License: GPLv2
QEMU is a FAST! processor emulator using dynamic translation to achieve good emulation speed. QEMU has two operating modes: * Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including a processor and various peripherials. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. * User mode emulation (Linux host only). In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. It can be used to launch the Wine Windows API emulator or to ease cross-compilation and cross-debugging. As QEMU requires no host kernel patches to run, it is very safe and easy to use. WWW:
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (183 items)
Collapse this list.
  1. /usr/local/share/licenses/qemu42-4.2.1_1/
  2. /usr/local/share/licenses/qemu42-4.2.1_1/LICENSE
  3. /usr/local/share/licenses/qemu42-4.2.1_1/GPLv2
  4. bin/elf2dmp
  5. @comment bin/ivshmem-client
  6. @comment bin/ivshmem-server
  7. bin/qemu-edid
  8. bin/qemu-ga
  9. bin/qemu-i386
  10. bin/qemu-img
  11. bin/qemu-io
  12. bin/qemu-keymap
  13. bin/qemu-nbd
  14. bin/qemu-sparc
  15. bin/qemu-sparc64
  16. bin/qemu-system-aarch64
  17. bin/qemu-system-alpha
  18. bin/qemu-system-arm
  19. bin/qemu-system-cris
  20. bin/qemu-system-hppa
  21. bin/qemu-system-i386
  22. bin/qemu-system-lm32
  23. bin/qemu-system-m68k
  24. bin/qemu-system-microblaze
  25. bin/qemu-system-microblazeel
  26. bin/qemu-system-mips
  27. bin/qemu-system-mips64
  28. bin/qemu-system-mips64el
  29. bin/qemu-system-mipsel
  30. bin/qemu-system-moxie
  31. bin/qemu-system-nios2
  32. bin/qemu-system-or1k
  33. bin/qemu-system-ppc
  34. bin/qemu-system-ppc64
  35. bin/qemu-system-riscv32
  36. bin/qemu-system-riscv64
  37. bin/qemu-system-s390x
  38. bin/qemu-system-sh4
  39. bin/qemu-system-sh4eb
  40. bin/qemu-system-sparc
  41. bin/qemu-system-sparc64
  42. bin/qemu-system-tricore
  43. bin/qemu-system-unicore32
  44. bin/qemu-system-x86_64
  45. bin/qemu-system-xtensa
  46. bin/qemu-system-xtensaeb
  47. bin/qemu-x86_64
  48. man/man1/qemu.1.gz
  49. man/man1/qemu-img.1.gz
  50. man/man7/qemu-block-drivers.7.gz
  51. man/man7/qemu-cpu-models.7.gz
  52. man/man7/qemu-ga-ref.7.gz
  53. man/man7/qemu-qmp-ref.7.gz
  54. man/man8/qemu-ga.8.gz
  55. man/man8/qemu-nbd.8.gz
  56. @sample etc/qemu-ifup.sample
  57. @sample etc/qemu-ifdown.sample
  58. share/qemu/QEMU,tcx.bin
  59. share/qemu/QEMU,cgthree.bin
  60. share/qemu/bios-256k.bin
  61. share/qemu/bios-microvm.bin
  62. share/qemu/bios.bin
  63. share/qemu/canyonlands.dtb
  64. share/qemu/edk2-aarch64-code.fd
  65. share/qemu/edk2-arm-code.fd
  66. share/qemu/edk2-arm-vars.fd
  67. share/qemu/edk2-i386-code.fd
  68. share/qemu/edk2-i386-secure-code.fd
  69. share/qemu/edk2-i386-vars.fd
  70. share/qemu/edk2-licenses.txt
  71. share/qemu/edk2-x86_64-code.fd
  72. share/qemu/edk2-x86_64-secure-code.fd
  73. share/qemu/efi-e1000.rom
  74. share/qemu/efi-e1000e.rom
  75. share/qemu/efi-eepro100.rom
  76. share/qemu/efi-ne2k_pci.rom
  77. share/qemu/efi-pcnet.rom
  78. share/qemu/efi-rtl8139.rom
  79. share/qemu/efi-virtio.rom
  80. share/qemu/efi-vmxnet3.rom
  81. share/qemu/firmware/50-edk2-i386-secure.json
  82. share/qemu/firmware/50-edk2-x86_64-secure.json
  83. share/qemu/firmware/60-edk2-aarch64.json
  84. share/qemu/firmware/60-edk2-arm.json
  85. share/qemu/firmware/60-edk2-i386.json
  86. share/qemu/firmware/60-edk2-x86_64.json
  87. share/qemu/hppa-firmware.img
  88. share/qemu/linuxboot.bin
  89. share/qemu/linuxboot_dma.bin
  90. share/qemu/multiboot.bin
  91. share/qemu/openbios-ppc
  92. share/qemu/openbios-sparc32
  93. share/qemu/openbios-sparc64
  94. share/qemu/opensbi-riscv32-virt-fw_jump.bin
  95. share/qemu/opensbi-riscv64-sifive_u-fw_jump.bin
  96. share/qemu/opensbi-riscv64-virt-fw_jump.bin
  97. share/qemu/palcode-clipper
  98. share/qemu/petalogix-ml605.dtb
  99. share/qemu/ppc_rom.bin
  100. share/qemu/pxe-e1000.rom
  101. share/qemu/pxe-eepro100.rom
  102. share/qemu/pxe-ne2k_pci.rom
  103. share/qemu/pxe-rtl8139.rom
  104. share/qemu/pxe-pcnet.rom
  105. share/qemu/pxe-virtio.rom
  106. share/qemu/qemu-nsis.bmp
  107. share/qemu/qemu_vga.ndrv
  108. share/qemu/s390-ccw.img
  109. share/qemu/s390-netboot.img
  110. share/qemu/slof.bin
  111. share/qemu/u-boot-sam460-20100605.bin
  112. share/qemu/vgabios.bin
  113. share/qemu/vgabios-ati.bin
  114. share/qemu/vgabios-cirrus.bin
  115. share/qemu/vgabios-qxl.bin
  116. share/qemu/vgabios-stdvga.bin
  117. share/qemu/vgabios-virtio.bin
  118. share/qemu/vgabios-vmware.bin
  119. share/qemu/sgabios.bin
  120. share/qemu/skiboot.lid
  121. share/qemu/trace-events-all
  122. share/qemu/petalogix-s3adsp1800.dtb
  123. share/qemu/bamboo.dtb
  124. share/qemu/kvmvapic.bin
  125. share/qemu/u-boot.e500
  126. share/qemu/keymaps/ar
  127. share/qemu/keymaps/bepo
  128. share/qemu/keymaps/cz
  129. share/qemu/keymaps/da
  130. share/qemu/keymaps/de
  131. share/qemu/keymaps/de-ch
  132. share/qemu/keymaps/en-gb
  133. share/qemu/keymaps/en-us
  134. share/qemu/keymaps/es
  135. share/qemu/keymaps/et
  136. share/qemu/keymaps/fi
  137. share/qemu/keymaps/fo
  138. share/qemu/keymaps/fr
  139. share/qemu/keymaps/fr-be
  140. share/qemu/keymaps/fr-ca
  141. share/qemu/keymaps/fr-ch
  142. share/qemu/keymaps/hr
  143. share/qemu/keymaps/hu
  144. share/qemu/keymaps/is
  145. share/qemu/keymaps/it
  146. share/qemu/keymaps/ja
  147. share/qemu/keymaps/lt
  148. share/qemu/keymaps/lv
  149. share/qemu/keymaps/mk
  150. share/qemu/keymaps/nl
  151. share/qemu/keymaps/no
  152. share/qemu/keymaps/pl
  153. share/qemu/keymaps/pt
  154. share/qemu/keymaps/pt-br
  155. share/qemu/keymaps/ru
  156. share/qemu/keymaps/sl
  157. share/qemu/keymaps/sv
  158. share/qemu/keymaps/th
  159. share/qemu/keymaps/tr
  160. share/qemu/pvh.bin
  161. share/qemu/vgabios-bochs-display.bin
  162. share/qemu/vgabios-ramfb.bin
  163. share/icons/hicolor/128x128/apps/qemu.png
  164. share/icons/hicolor/16x16/apps/qemu.png
  165. share/icons/hicolor/24x24/apps/qemu.png
  166. share/icons/hicolor/256x256/apps/qemu.png
  167. share/icons/hicolor/32x32/apps/qemu.bmp
  168. share/icons/hicolor/32x32/apps/qemu.png
  169. share/icons/hicolor/48x48/apps/qemu.png
  170. share/icons/hicolor/512x512/apps/qemu.png
  171. share/icons/hicolor/64x64/apps/qemu.png
  172. share/icons/hicolor/scalable/apps/qemu.svg
  173. share/applications/qemu.desktop
  174. share/locale/bg/LC_MESSAGES/
  175. share/locale/de_DE/LC_MESSAGES/
  176. share/locale/fr_FR/LC_MESSAGES/
  177. share/locale/hu/LC_MESSAGES/
  178. share/locale/it/LC_MESSAGES/
  179. share/locale/tr/LC_MESSAGES/
  180. share/locale/zh_CN/LC_MESSAGES/
  181. @owner
  182. @group
  183. @mode
Collapse this list.
Dependency lines:
  • qemu42>0:emulators/qemu42
No installation instructions:
This port has been deleted.
PKGNAME: qemu42
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: amd64 i386 powerpc powerpc64 powerpc64le
TIMESTAMP = 1594330010 SHA256 (qemu/4.2.1/qemu-4.2.1.tar.xz) = 7e331163b72e7bcf63bd35cb85cba87b48d12fab3f264b94c23f7d3991094207 SIZE (qemu/4.2.1/qemu-4.2.1.tar.xz) = 62225124

Packages (timestamps in pop-ups are UTC):
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. sphinx-build : textproc/py-sphinx@py38
  2. texi2html : textproc/texi2html
  3. bison : devel/bison
  4. gmake>=4.3 : devel/gmake
  5. pkgconf>=1.3.0_1 : devel/pkgconf
  6. python3.8 : lang/python38
  7. makeinfo : print/texinfo
  8. msgfmt : devel/gettext-tools
  9. sdl2-config : devel/sdl20
  10. perl5>=5.32.r0<5.33 : lang/perl5.32
  11. xorgproto>=0 : x11/xorgproto
  12. pixman-1.pc : x11/pixman
  13. x11.pc : x11/libX11
  14. xext.pc : x11/libXext
  15. x11.pc : x11/libX11
  16. xext.pc : x11/libXext
  17. pixman-1.pc : x11/pixman
  18. x11.pc : x11/libX11
Runtime dependencies:
  1. pixman-1.pc : x11/pixman
  2. x11.pc : x11/libX11
  3. xext.pc : x11/libXext
  4. x11.pc : x11/libX11
  5. xext.pc : x11/libXext
  6. pixman-1.pc : x11/pixman
  7. x11.pc : x11/libX11
Library dependencies:
  1. : graphics/libepoxy
  2. : sysutils/dtc
  3. : x11-fonts/fontconfig
  4. : print/freetype2
  5. : security/nettle
  6. : devel/pcre2
  7. : ftp/curl
  8. : security/gnutls
  9. : x11/libxkbcommon
  10. : graphics/png
  11. : security/cyrus-sasl2
  12. : net/vde2
  13. : print/harfbuzz
  14. : accessibility/atk
  15. : graphics/cairo
  16. : graphics/gdk-pixbuf2
  17. : devel/glib20
  18. : devel/gettext-runtime
  19. : x11-toolkits/gtk30
  20. : textproc/libxml2
  21. : x11-toolkits/pango
  22. : x11-toolkits/vte3
  23. : converters/libiconv
  24. : devel/gettext-runtime
  25. : graphics/libglvnd
  26. : graphics/mesa-libs
  27. : graphics/jpeg-turbo
  28. : devel/sdl20
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for qemu42-4.2.1_1: CAPSTONE=off: Disassembly framework support CDROM_DMA=on: IDE CDROM DMA CURL=on: Data transfer support via cURL DEBUG=off: Build with debugging support DOCS=on: Build and/or install documentation GNUTLS=on: gnutls dependency (vnc encryption) GTK3=on: GTK+ 3 GUI toolkit support ISCSI=off: libiscsi dependency (iSCSI client for emulated drives) JPEG=on: jpeg dependency (vnc lossy compression) OPENGL=on: 2D/3D rendering support via OpenGL PCAP=on: pcap dependency (networking with bpf) PNG=on: png dependency (vnc compression) SAMBA=off: samba dependency (for -smb) SASL=on: cyrus-sasl dependency (vnc encryption) STATIC_LINK=off: Statically link the executables USBREDIR=off: usb device network redirection (experimental!) VDE=on: vde dependency (for vde networking) X11=on: X11 (graphics) support X86_TARGETS=off: Build only x86 system targets ====> Console (text) interface support: you have to select exactly one of them NCURSES_DEFAULT=on: Depend on ncurses (ports if installed, otherwise base) NCURSES_BASE=off: Depend on ncurses in base NCURSES_PORT=off: Depend on devel/ncurses in ports ===> Use 'make config' to modify these settings
Options name:
bison compiler:c11 cpe gmake gnome iconv:wchar_t perl5 pkgconfig python:build tar:xz xorg makeinfo gettext gl jpeg ncurses gl sdl xorg
For install:
FreeBSD host notes ================== - Needs to set sysctl in order to use /dev/tap* networking as non-root. Don't forget to adjust device node permissions in /etc/devfs.rules. - slirp (usermode networking) is fixed now in cvs, on FreeSBIE 1.0 guests you still have to manually do: echo nameserver >/etc/resolv.conf but i've been told that that's normal. (fixed on FreeSBIE 1.1.) And you have to wait a bit for dhclient to do its thing; traffic to address is routed to 127.1 on the host. - Expect timer problems when guest kernel HZ is > hosts, for example time sleep 1 takes 49 seconds and booting sleeps for minutes at the acd0 probe with a FreeSBIE 1.0 guest, thats because its kernel is built with HZ=5000, and FreeBSD's default is 100... (no longer a problem with FreeSBIE 1.1.) The linux 2.6 kernel uses 1000 by default btw. (changed to 250 later, and recent linux kernels now no longer have a fixed HZ, aka `tickless kernel'...) Enabling /dev/rtc doesn't seem to help either (not included since it needs a patch to emulators/rtc.) - Update: the above problem has gotten worse with FreeBSD guests somewhere before 8.0, mainly since the kernel now usually wants double or even quadruple number of timer irqs compared to HZ if it detects an apic (and at least early versions of FreeBSD 8 had a bug that essentially halved qemu's clock rate too); the only reason you usually don't see symptoms of this with FreeBSD 8 guests is they automatically reduce their HZ to 100 when running in a VM while the default for the host kernel is still HZ=1000. Workaround: you can disable the apic clock in the guest by setting hint.apic.0.clock="0" in loader.conf(5) (or manually at the loader prompt), if that doesn't work the only things you can do is either reduce the guest's HZ to, say, 100 by setting e.g. kern.hz="100" from the loader as above (which usually is a good idea in a VM anyway and FreeBSD 8 now does by itself as mentioned), or otherwise increase the host's HZ to 2000 or even 4000 from the loader in the same way. - The -smb option (smb-export local dir to guest using the default slirp networking) needs the samba port/package installed in addition to qemu. (SAMBA knob.) - If you want to use usb devices connected to the host in the guest yot need either recent 10-current (not tested yet much) or you can use usbredir over the network (see below); also unless you are running qemu as root you then need to fix permissions for /dev/ugen* device nodes: if you are on 5.x or later (devfs) put a rule in /etc/devfs.rules, activate it in /etc/rc.conf and run /etc/rc.d/devfs restart. Example devfs.rules: [ugen_ruleset=20] add path 'ugen*' mode 660 group operator corresponding rc.conf line: devfs_system_ruleset="ugen_ruleset" - If you want to test the new (in 0.15.0) usb network redirection (USBREDIR option) see this thread by Hans de Goede <hdegoede <at>>: Quote: Example usage: 1) Start usbredirserver for a usb device: sudo usbredirserver 045e:0772 2) Start qemu with usb2 support + a chardev talking to usbredirserver + a usb-redir device using this chardev: qemu -usb \ -readconfig docs/ich9-ehci-uhci.cfg \ -chardev socket,id=usbredirchardev,host=localhost,port=4000 \ -device usb-redir,chardev=usbredirchardev,id=usbredirdev ... [you would replace docs/ich9-ehci-uhci.cfg with e.g. /usr/local/share/doc/qemu/docs/ich9-ehci-uhci.cfg, but turns out ehci was broken for me here with FreeBSD guests and the previous qemu version at least, I got: FETCHENTRY: entry at 22C5484 is of type 2 which is not supported yet processing error - resetting ehci HC Assertion failed: (0), function ehci_advance_state, file /data/ports/emulators/qemu-devel/work/qemu-0.15.0/hw/usb-ehci.c, line 2045. The new qemu version works better tho.] - Still usb: since the hub is no longer attached to the uchi controller and the wakeup mechanism, resume interrupt is not implemented yet linux guests will suspend the bus, i.e. they wont see devices usb_add'ed after its (linux') uhci module got loaded. Workaround: either add devices before linux loads the module or rmmod and modprobe it afterwards. [Not sure if this still applies to the new libusb host code used on recent 10-current.] - If you get repeated `atapi_poll called!' console messages with FreeBSD guests or other weird cdrom problems then thats probably because the guest has atapicam loaded, which for reasons still to be determined has problems with qemu's now by default enabled cdrom dma. You can build the port with CDROM_DMA disabled to disable it. [Looks like this is fixed in recent FreeBSD guest versions.] - If you build qemu wihout SDL and then get crashes running it try passing it -nographic. This should probably be default in that case... - qemu's network boot roms (-boot n) have a bug when bootfiles sizes are a multiple of blksize, if this affects you (like with FreeBSD's /boot/pxeboot) you can do like cp /boot/pxeboot pxeboot-qemu && chmod +w pxeboot-qemu && echo >>pxeboot-qemu and then use pxeboot-qemu. Actually you need recent btx code (from after 7.0 was released) because of the real mode boot problem, so use at least pxeboot from there. And I just did that for the pxeboot extracted out of and placed it here: - If you use slirp (usernet, the default) and want to mount nfs into the guest and you are not running qemu as root, then mountd(8) on the exporting box needs to be run with -n in order to accept requests from ports >= 1024. - (not FreeBSD-specific:) There have been reports of qcow2 corruption with (at least) win2k guests on recent kvm (which uses similar qcow2 code than qemu now, see this thread: - the consensus on that thread seems to be that qcow(2) code has always been experimental and you should use raw images if you want reliability; raw is also usually faster.) You should be able to migrate existing images to raw using qemu-img(1)'s convert function; raw doesn't support advanced features like snapshots tho. [a few important qcow2 bugfixed have been committed in the meantime so this _might_ be less of an issue now; and meanwhile there also is the new qed format - I don't know how stable that one is.] - (also not FreeBSD-specific:) It is recommended to pass raw images using the new -drive syntax, specifying format=raw explicitly in order to avoid malicious guests being able to exploit the format autodetection thats otherwise getting used. (Not that you should run malicious guests anyway, but this eleminates at least a known attack vector.) - qemu now has improved physical cdrom support, but still there is at least one known problem: you need to have the guest eject the disc if you want to change it/take it out, or otherwise the guest may continue using state (like size) of the old disc. (You can also do like `change ide1-cd0 /dev/acd0' in the monitor after taking out the disc if a guest cannot eject it itself.) - The default configuration location (qemu-ifup script etc.) has been changed from /etc to PREFIX/etc (usually /usr/local/etc). Move your files accordingly. - The pcap code (-net nic... -net pcap,ifname=...) should work properly now, with only one exception: Advanced features like TSO used on the host interface can cause oversize packets which now do get truncated to avoid confusing/panicing guests but of course still will cause retransmissions. So if you see slow throughput and `pcap_send: packet size > ..., truncating' messages on qemu's tty try disabling TSO etc on the host interface at least while using pcap. - kqemu is no longer supported in qemu upstream after the 0.11 branch was created, which means also not in this version. (Linux has moved on to kvm now for qemu(-like) virtualization needs, so if you want qemu to go faster and don't want to switch to virtualbox or stick to the older emulators/qemu port which is at 0.11.1 atm and as such still supports kqemu you should help getting the FreeBSD kvm port updated and completed: )
Master Sites:
Expand this list (1 items)
Collapse this list.
Collapse this list.

There are no commits on branch 2022Q2 for this port