BSD Ports

emulators/qemu 11.1.2_1 FreeBSD

QEMU CPU Emulator

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
205c0c2772
License
GPLv2
Categories
emulators
Package size
109301.7 KiB, 797407.3 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDemulators/qemu11.1.2_1
OpenBSDemulators/qemu11.1.1p1
NetBSDemulators/qemu11.1.1nb1
DragonFlyemulators/qemu9.2.0_1
MidnightBSDemulators/qemu11.0.0_1
HardenedBSDemulators/qemu11.1.2
GhostBSDemulators/qemu11.1.1
OPNsenseemulators/qemu11.0.1

Install

Binary package:

pkg install qemu

From the ports tree:

cd /usr/ports/emulators/qemu/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	qemu>0:emulators/qemu

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest11.1.2_111.1.2_17.2.010.1.011.1.2_1
FreeBSD:14:quarterly11.1.2_111.1.2_1n/a10.0.211.1.2_1
FreeBSD:15:latest11.1.2_111.1.2_1n/a10.0.310.1.0
FreeBSD:15:quarterly11.1.2_111.1.2_1n/an/an/a
FreeBSD:16:latest11.1.211.1.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 4

The full lists below include those, and their dependencies in turn.

Build dependencies 179

The first 100 are listed.

Run dependencies 141

The first 100 are listed.

Configuration

Options name: emulators_qemu

OptionDefaultDescription
CAPSTONEoffDisassembly framework support
CDROM_DMAonIDE CDROM DMA
CURLonData transfer support via cURL
DEBUGoffBuild with debugging support
DOCSoffBuild and/or install documentation
GNUTLSongnutls dependency (vnc encryption)
GTK3onGTK 3 GUI toolkit support
ISCSIofflibiscsi dependency (iSCSI client for emulated drives)
JPEGonjpeg dependency (vnc lossy compression)
NCURSES_BASEoffDepend on ncurses in base
NCURSES_DEFAULTonDepend on ncurses (ports if installed, otherwise base)
NCURSES_PORToffDepend on devel/ncurses in ports
OPENGLon2D/3D rendering support via OpenGL
PNGonpng dependency (vnc compression)
SAMBAoffsamba dependency (for -smb)
SASLoncyrus-sasl dependency (vnc encryption)
STATIC_LINKoffStatically link the executables
STRIPoffStrip binaries before installation
USBREDIRoffusb device network redirection (experimental!)
VDEonvde dependency (for vde networking)
X11onX11 (graphics) support
X86_TARGETSoffBuild only x86 system targets
USES
cpe gmake gnome ninja perl5 pkgconfig python shebangfix tar:xz
Service scripts
none
Flavors
qemu-nox11-11.1.2_1, qemu-tools-11.1.2_1, qemu-guest-agent-11.1.2_1

Message after installing

FreeBSD host notes
==================

- Needs to set net.link.tap.user_open sysctl in order to use /dev/tap*
  networking as non-root.  Don't forget to adjust device node permissions in
  /etc/devfs.rules.

- Expect timer problems when guest kernel HZ is > hosts.  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.)

- 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 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"

- 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

	ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200805/7.0-STABLE-200805-i386-bootonly.iso

  and placed it here:

	http://people.freebsd.org/~nox/qemu/pxeboot-qemu

- 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.

Files

Manual pages 10
  • qemu(1)
  • qemu-block-drivers(7)
  • qemu-cpu-models(7)
  • qemu-img(1)
  • qemu-nbd(8)
  • qemu-pr-helper(8)
  • qemu-qmp-ref(7)
  • qemu-storage-daemon(1)
  • qemu-storage-daemon-qmp-ref(7)
  • qemu-vnc(1)
pkg-plist 190
  • bin/elf2dmp
  • bin/qemu-aarch64
  • bin/qemu-arm
  • bin/qemu-edid
  • bin/qemu-i386
  • bin/qemu-img
  • bin/qemu-io
  • bin/qemu-keymap
  • bin/qemu-nbd
  • bin/qemu-storage-daemon
  • bin/qemu-riscv64
  • bin/qemu-system-aarch64
  • bin/qemu-system-alpha
  • bin/qemu-system-avr
  • bin/qemu-system-arm
  • bin/qemu-system-hexagon
  • bin/qemu-system-hppa
  • bin/qemu-system-i386
  • bin/qemu-system-loongarch64
  • bin/qemu-system-m68k
  • bin/qemu-system-microblaze
  • bin/qemu-system-mips
  • bin/qemu-system-mips64
  • bin/qemu-system-mips64el
  • bin/qemu-system-mipsel
  • bin/qemu-system-or1k
  • bin/qemu-system-ppc
  • bin/qemu-system-ppc64
  • bin/qemu-system-riscv32
  • bin/qemu-system-riscv64
  • bin/qemu-system-rx
  • bin/qemu-system-s390x
  • bin/qemu-system-sh4
  • bin/qemu-system-sh4eb
  • bin/qemu-system-sparc
  • bin/qemu-system-sparc64
  • bin/qemu-system-tricore
  • bin/qemu-system-x86_64
  • bin/qemu-system-xtensa
  • bin/qemu-system-xtensaeb
  • bin/qemu-x86_64
  • include/qemu-plugin.h
  • share/man/man1/qemu.1.gz
  • share/man/man1/qemu-img.1.gz
  • share/man/man7/qemu-block-drivers.7.gz
  • share/man/man7/qemu-cpu-models.7.gz
  • share/man/man8/qemu-nbd.8.gz
  • share/man/man8/qemu-pr-helper.8.gz
  • share/man/man7/qemu-qmp-ref.7.gz
  • share/man/man1/qemu-storage-daemon.1.gz
  • share/man/man7/qemu-storage-daemon-qmp-ref.7.gz
  • share/man/man1/qemu-vnc.1.gz
  • @sample etc/qemu-ifup.sample
  • @sample etc/qemu-ifdown.sample
  • share/qemu/QEMU,tcx.bin
  • share/qemu/QEMU,cgthree.bin
  • share/qemu/ast27x0_bootrom.bin
  • share/qemu/bios-256k.bin
  • share/qemu/bios-microvm.bin
  • share/qemu/bios.bin
  • share/qemu/dtb/bamboo.dtb
  • share/qemu/dtb/canyonlands.dtb
  • share/qemu/dtb/pegasos1.dtb
  • share/qemu/dtb/pegasos2.dtb
  • share/qemu/dtb/petalogix-ml605.dtb
  • share/qemu/dtb/petalogix-s3adsp1800.dtb
  • share/qemu/edk2-aarch64-code.fd
  • share/qemu/edk2-arm-code.fd
  • share/qemu/edk2-arm-vars.fd
  • share/qemu/edk2-i386-code.fd
  • share/qemu/edk2-i386-secure-code.fd
  • share/qemu/edk2-i386-vars.fd
  • share/qemu/edk2-licenses.txt
  • share/qemu/edk2-loongarch64-code.fd
  • share/qemu/edk2-loongarch64-vars.fd
  • share/qemu/edk2-riscv-code.fd
  • share/qemu/edk2-riscv-vars.fd
  • share/qemu/edk2-x86_64-code.fd
  • share/qemu/edk2-x86_64-secure-code.fd
  • share/qemu/efi-e1000.rom
  • share/qemu/efi-e1000e.rom
  • share/qemu/efi-eepro100.rom
  • share/qemu/efi-ne2k_pci.rom
  • share/qemu/efi-pcnet.rom
  • share/qemu/efi-rtl8139.rom
  • share/qemu/efi-virtio.rom
  • share/qemu/efi-vmxnet3.rom
  • share/qemu/firmware/50-edk2-i386-secure.json
  • share/qemu/firmware/50-edk2-x86_64-secure.json
  • share/qemu/firmware/60-edk2-aarch64.json
  • share/qemu/firmware/60-edk2-arm.json
  • share/qemu/firmware/60-edk2-i386.json
  • share/qemu/firmware/60-edk2-loongarch64.json
  • share/qemu/firmware/60-edk2-riscv64.json
  • share/qemu/firmware/60-edk2-x86_64.json
  • share/qemu/hppa-firmware.img
  • share/qemu/hppa-firmware64.img
  • share/qemu/keymaps/ar
  • share/qemu/keymaps/bepo
  • share/qemu/keymaps/cz

The first 100 are listed.

distinfo 1
FileSizeSHA256
qemu/11.1.2/qemu-11.1.2.tar.xz1.41815216e+08731b5681e4bb18be313231579b8efd0296c5b015fa36dc533874b639ba838016
Master sites 1
  • https://download.qemu.org/

Commit history 6

DateCommitCreditsLog message
205c0c2772 Muhammad Moinur Rahman emulators/qemu: Disable plugins for tools and ga
Enabling plugin supports in tools and guest-agent makes it impossible to install both of them together. So disable them as they have no specific use cases in tools and guest-agent. Reported by: garga
f7d98eafc5 Muhammad Moinur Rahman emulators/qemu: Update version 11.1.1=>11.1.2
Changelog: https://wiki.qemu.org/ChangeLog/11.1
f6f6e467bd Muhammad Moinur Rahman emulators/qemu: Update version 11.1.0=>11.1.1
Changelog: https://wiki.qemu.org/ChangeLog/11.1
44342f9a9a Muhammad Moinur Rahman emulators/qemu: Update version 11.0.3=>11.1.0
Changelog: https://wiki.qemu.org/ChangeLog/11.1
c5110d62f0 Muhammad Moinur Rahman emulators/qemu: Update version 11.0.2=>11.0.3
Changelog: https://wiki.qemu.org/ChangeLog/11.0

The latest 5 of 6 in the history this site was built from.