qemu30 - QEMU CPU Emulator

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename qemu30-3.0.1.txz
Package name qemu30
Package version 3.0.1
Package release -
Package architecture amd64
Package type txz
Category emulators
Homepage http://wiki.qemu.org/Main_Page
License GPLv2
Maintainer bofh@FreeBSD.org
Download size 51.22 MB
Installed size 313.16 MB
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
As QEMU requires no host kernel patches to run, it is very safe and easy to use.
See also the preconfigured system images on http://oszoo.org/
Many live cd isos also work.
WWW: http://wiki.qemu.org/Main_Page
- CURL: on
- DOCS: on
- GNUTLS: on
- GTK3: on
- JPEG: on
- OPENGL: on
- PCAP: on
- PNG: on
- SAMBA: off
- SASL: on
- VDE: on
- X11: on
- X86_TARGETS: off
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
- 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
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.
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:
add path 'ugen*' mode 660 group operator
corresponding rc.conf line:
- 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> redhat.com>:
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
- 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:
http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00713.html -
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
- 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


Package Version Architecture Repository
qemu30-3.0.1.txz 3.0.1 i386 FreeBSD Ports Latest
qemu30-3.0.1.txz 3.0.1 i386 FreeBSD Ports Quarterly
qemu30-3.0.1.txz 3.0.1 amd64 FreeBSD Ports Quarterly
qemu30 - - -


Name Value
atk = 2.28.1
cairo = 1.16.0,2
curl = 7.65.3
cyrus-sasl = 2.1.27
fontconfig = 2.12.6,1
freetype2 = 2.10.1
gdk-pixbuf2 = 2.38.1
gettext-runtime = 0.20.1
glib = 2.56.3_6,1
gnutls = 3.6.9
gtk3 = 3.24.10_1
jpeg-turbo = 2.0.2
libGLU = 9.0.0_3
libSDL2-2.0.so.0 -
libX11 = 1.6.8,1
libX11.so.6 -
libXext = 1.3.4,1
libatk-1.0.so.0 -
libcairo-gobject.so.2 -
libcairo.so.2 -
libcurl.so.4 -
libepoxy = 1.5.2
libepoxy.so.0 -
libgbm.so.1 -
libgdk-3.so.0 -
libgdk_pixbuf-2.0.so.0 -
libgio-2.0.so.0 -
libglib-2.0.so.0 -
libgnutls.so.30 -
libgobject-2.0.so.0 -
libgthread-2.0.so.0 -
libgtk-3.so.0 -
libintl.so.8 -
libnettle.so.7 -
libpango-1.0.so.0 -
libpangocairo-1.0.so.0 -
libpcre2-8.so.0 -
libpixman-1.so.0 -
libpng16.so.16 -
libvte-2.91.so.0 -
libxkbcommon = 0.8.4
libxkbcommon.so.0 -
libxml2.so.2 -
mesa-libs = 18.3.2_1
nettle = 3.5.1_1
pango = 1.42.4_3
pcre2 = 10.32_2
png = 1.6.37
sdl2 = 2.0.10
vde2 = 2.3.2_3
vte3 = 0.52.2_3


Type URL
Mirror pkg.freebsd.org
Binary Package qemu30-3.0.1.txz
Source Package emulators/qemu30

Install Howto

Install qemu30 txz package:

# pkg install qemu30

See Also

Package Description
qemu31- QEMU CPU Emulator - 3.1.X version
qemu40-4.0.1.txz QEMU CPU Emulator - 4.0.X version
qgis-3.8.2_1.txz Free and Open Source Geographic Information System
qgis-ltr-3.4.11_2.txz Free and Open Source Geographic Information System
qgit-2.9.txz Graphical interface to git repositories
qhttpengine- HTTP server for Qt applications
qhull-7.2.1,1.txz Qhull computes convex hulls, Delaunay triangulations, and halfspaces
qhull5-1.0_3.txz Qhull computes convex hulls, Delaunay triangulations, and halfspaces
qico-0.59.1.txz FidoNet Technology Network (FTN) compatible mailer for Unix systems
qimageblitz-0.1.0_1.txz Graphical effects and filters library for Qt5
qiv-2.3.1_1.txz Small, fast GDK/Imlib2 image viewer
qjackctl-0.6.0.txz Qt interface for JACK Audio Connection Kit
qjail-5.4.txz Utility to quickly deploy and manage jails
qjson-qt5-0.9.0_6.txz Library to manage JSON objects with Qt
qlas-1.93.txz Qico FIDO mailer log analyzer and statistic builder