Port details |
- qemu-sbruno QEMU CPU Emulator - github bsd-user branch
- 2.11.50.g20191211_4 emulators
=3 2.11.50.g20191211_4Version of this port present on the latest quarterly branch.
- DEPRECATED: Port will be removed in favor of emulators/qemu
This port expired on: 2020-10-01
- Maintainer: emulation@FreeBSD.org
- Port Added: 2014-12-30 23:50:43
- Last Update: 2020-10-02 20:19:38
- SVN Revision: 551231
- People watching this port, also watch:: openjdk8, screen
- License: GPLv2
- WWW:
- https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
- 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. 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: http://wiki.qemu.org/Main_Page
This is building sbruno's bsd-user github branch:
WWW: https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
-
cgit ¦ GitHub ¦ GitHub ¦ GitLab ¦
- Manual pages:
-
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- qemu-sbruno>0:emulators/qemu-sbruno
- Conflicts:
- CONFLICTS_INSTALL:
- No installation instructions:
- This port has been deleted.
- PKGNAME: qemu-sbruno
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: amd64 powerpc powerpc64
- distinfo:
- TIMESTAMP = 1576119749
SHA256 (qemu/2.11.50.g20191211/seanbruno-qemu-bsd-user-2.11.50.g20191211-d587db6_GH0.tar.gz) = f7810f4b8754b2e051ac498fd784b5a55e1b3496cdb9df9371c785355d017739
SIZE (qemu/2.11.50.g20191211/seanbruno-qemu-bsd-user-2.11.50.g20191211-d587db6_GH0.tar.gz) = 15512736
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- libfdt.so : sysutils/dtc
- texi2html : textproc/texi2html
- bison : devel/bison
- gmake : devel/gmake
- pkgconf>=1.3.0_1 : devel/pkgconf
- python2.7 : lang/python27
- sdl-config : devel/sdl12
- msgfmt : devel/gettext-tools
- makeinfo : print/texinfo
- perl5>=5.30.r1<5.31 : lang/perl5.30
- xorgproto>=0 : x11/xorgproto
- pixman-1.pc : x11/pixman
- Runtime dependencies:
-
- pixman-1.pc : x11/pixman
- Library dependencies:
-
- libgnutls.so : security/gnutls
- libsasl2.so : security/cyrus-sasl2
- libpng.so : graphics/png
- libcurl.so : ftp/curl
- libatk-1.0.so : accessibility/atk
- libglib-2.0.so : devel/glib20
- libintl.so : devel/gettext-runtime
- libgtk-x11-2.0.so : x11-toolkits/gtk20
- libpango-1.0.so : x11-toolkits/pango
- libvte.so : x11-toolkits/vte
- libSDL.so : devel/sdl12
- libintl.so : devel/gettext-runtime
- libjpeg.so : graphics/jpeg-turbo
- libGLU.so : graphics/libGLU
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for qemu-sbruno-2.11.50.g20191211_4:
BSD_USER=off: Also build bsd-user targets (for testing)
CDROM_DMA=on: IDE CDROM DMA
CURL=on: Data transfer support via cURL
DOCS=on: Build and/or install documentation
GNUTLS=on: gnutls dependency (vnc encryption)
GTK2=on: GTK+ 2 GUI toolkit support
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!)
X11=on: X11 (graphics) support
X86_TARGETS=off: Don't build non-x86 system targets
===> Use 'make config' to modify these settings
- Options name:
- N/A
- USES:
- bison compiler:c11 gmake perl5 pkgconfig python:2.7,build xorg gnome sdl gettext gnome jpeg gl makeinfo xorg
- pkg-message:
- For install:
- 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.
- slirp (usermode networking) is fixed now in cvs, on FreeSBIE 1.0 guests you
still have to manually do: echo nameserver 10.0.2.3 >/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 10.0.2.2 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> redhat.com>:
http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183
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
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.
- (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
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.
)
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
2.4.50.g20151206 14 Dec 2015 02:52:14 |
eadler |
Reset maintainer |
2.4.50.g20151206 06 Dec 2015 16:15:06 |
sbruno |
Bump qemu-sbruno to capture commits in upstream project.
- Fix build on freebsd9 (rakuco)
- When using readlink(1) to read /proc/curproc/file, return the emulated
program name, not qemu. (jkim) |
2.4.50.g20151011 08 Nov 2015 19:14:13 |
sbruno |
Add the man page for qemu-ga to the plist.
Fixes build under poudriere testport.
Submitted by: amdmi3@amdmi3.ru |
2.4.50.g20151011 15 Oct 2015 14:55:14 |
mat |
Drop 8 support.
With hat: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3694 |
2.4.50.g20151011 11 Oct 2015 22:11:52 |
sbruno |
Update qemu-sbruno to track my github repo.
- Update MIPS user target to work on head after svn r286871
- Bump UPDATING as this makes the current pkg incompatible with current
prior to this revision.
Submitted by: kan |
2.4.50.g20150814 03 Sep 2015 18:27:45 |
sbruno |
Fix Makefile so that those who want to use this port directly can still
build.
PR: 202536 |
2.4.50.g20150814 01 Sep 2015 17:38:30 |
sbruno |
Build fix:
- Remove etc/qemu/target-x86_64.conf.sample dropped by upstream
- Add vgabios-virtio.bin |
2.4.50.g20150814 16 Aug 2015 19:13:31 |
sbruno |
Update qemu-sbruno to track bsd-user branch on github. I *am* the
upstream of this port and maintainer notified developers on 07/17/15 to
update his ports while he is AFK.
Sync's to pre-release 2.4.0
Differential Revision: https://reviews.freebsd.org/D3385 |
2.3.50.g20150713 15 Jul 2015 17:38:28 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150710 10 Jul 2015 17:05:08 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150709 09 Jul 2015 19:42:20 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150708 08 Jul 2015 18:45:43 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150629 02 Jul 2015 15:41:52 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
PR: 201168 |
2.3.50.g20150628 28 Jun 2015 15:17:15 |
nox |
Catch up with github tree, fixing bug caused by struct kinfo_proc typo -
changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150618_1 26 Jun 2015 19:14:41 |
nox |
- Apply fixes for pcnet guest to host escape vulnerability - CVE-2015-3209.
- Bump PORTREVISIONs.
PR: 201064
Submitted by: koobs
Security: https://vuxml.FreeBSD.org/freebsd/acd5d037-1c33-11e5-be9c-6805ca
1d3bb1.html |
2.3.50.g20150618 22 Jun 2015 18:33:22 |
antoine |
Convert to USES=jpeg |
2.3.50.g20150618 19 Jun 2015 18:43:12 |
nox |
Catch up with github tree, adding bsd-user aarch64 fixes - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150616 17 Jun 2015 20:15:35 |
nox |
Catch up with github tree, adding setsockopt handling for IPV6 - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
PR: 200680 |
2.3.50.g20150613 13 Jun 2015 17:27:11 |
nox |
- Catch up with github tree, adding IP_OPTIONS support sockopt syscalls -
changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
PR: 200703 |
2.3.50.g20150613 13 Jun 2015 11:33:25 |
nox |
- Catch up with github tree, adding more bsd-user ppc fixes - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
- Add aarch64 to qemu-user-static rc.d script. |
2.3.50.g20150612 12 Jun 2015 20:59:00 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150608 08 Jun 2015 16:18:22 |
nox |
Catch up with github tree, adding translation of struct kinfo_proc -
changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
PR: 200615 |
2.3.50.g20150529 30 May 2015 00:51:54 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150528 29 May 2015 18:23:30 |
nox |
Catch up with github tree, fixing bsd-user pthread crashes among
other things - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
PR: 200485 |
2.3.50.g20150517 17 May 2015 16:46:19 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.3.50.g20150501_1 17 May 2015 10:09:37 |
nox |
- Apply fixes for "BENOM" vulnerability - CVE-2015-3456 .
- Bump PORTREVISIONs.
PR: 200255
PR: 200256
PR: 200257
Submitted by: venture37@geeklan.co.uk
Obtained
from: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e907746266721f305d67bc0718795fedee2e824c
Security: http://vuxml.FreeBSD.org/freebsd/2780e442-fc59-11e4-b18b-6805ca1d3bb1.html |
2.3.50.g20150501 01 May 2015 19:10:16 |
nox |
- Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
- Switch to new USE_GITHUB syntax. |
2.2.50.g20150310_1 03 Apr 2015 11:26:50 |
mat |
Remove OSVERSION checks that do not make sense any more.
For example (${OSVERSION} >= 900000 && ${OSVERSION} < 900021) is always true,
as is (${OSVERSION} > 900002 || ${OSVERSION} < 900000 && ${OSVERSION} > 800107).
Regarding patches, when an EXTRA_PATCHES is no longer needed, I remove it, when
it is always needed, I renamed it, in one case, I merged two patches.
Differential Revision: https://reviews.freebsd.org/D2209 |
2.2.50.g20150310_1 26 Mar 2015 21:40:34 |
bdrewery |
Revert my change from r381978.
The reason for it did not pan out. |
2.2.50.g20150310_1 23 Mar 2015 04:04:58 |
bdrewery |
Use BSDMAKE rather than MAKE here to ensure using /usr/bin/make.
With hat: portmgr |
2.2.50.g20150310_1 19 Mar 2015 16:44:59 |
bdrewery |
Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag. This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.
The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
GH -> GHL
GITHUB -> GITHUB_LEGACY
Differential Revision: https://reviews.freebsd.org/D748
Submitted by: amdmi3
Reviewed by: mat, swills, antoine, bdrewery
With hat: portmgr |
2.2.50.g20150310_1 17 Mar 2015 21:59:33 |
nox |
- Fix procctl check.
- Bump PORTREVISION.
PR: 198667
Submitted by: garga |
2.2.50.g20150310 10 Mar 2015 19:30:16 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.2.50.g20150215_1 01 Mar 2015 15:16:43 |
nox |
- Add rc.d script to emulators/qemu-user-static to (optinally) setup
imgact_binmisc configs on systems where that exists.
- Bump PORTREVISION.
Submitted by: linimon (with some changes by me) |
2.2.50.g20150215 16 Feb 2015 21:25:38 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user
(Looks like aarch64-bsd-user starts becoming usable...) |
2.2.50.g20150213 15 Feb 2015 20:03:07 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.2.50.g20150211 12 Feb 2015 17:47:58 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.2.50.g20150205 07 Feb 2015 20:04:53 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.2.50.g20150123 27 Jan 2015 21:33:14 |
nox |
Fix bsd-user build on older head that doesn't have the reaper stuff yet.
PR: 197134
Submitted by: amdmi3 |
2.2.50.g20150123 24 Jan 2015 11:32:58 |
nox |
Catch up with github tree - changelog:
https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |
2.2.50.g20150106 06 Jan 2015 19:47:29 |
nox |
- Update emulators/qemu-sbruno to latest github snapshot, fixing
the bsd-user targets on 8 and 9.
- Switch emulators/qemu-user-static to be slave of emulators/qemu-sbruno.
- Update emulators/qemu-devel to latest upstream release 2.2.0, now
w/o bsd-user patches and knob again. (Or at least until the
patches are merged upstream...) [1]
- Add appropriate CONFLICTS to emulators/qemu too and bump its
PORTREVISION.
Suggested by: andrew [1] (for the benefit of testing aarch64 guests) |
2.2.50.g20141230 01 Jan 2015 12:38:18 |
nox |
(Attempt to) fix build on 9.1/i386.
Submitted by: beefy1 via pkg-fallout |
2.2.50.g20141230 30 Dec 2014 23:50:21 |
nox |
Add new port emulators/qemu-sbruno, to be used for qemu-user-static
once it builds again on 8 and 9:
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. 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.
http://wiki.qemu.org/Main_Page
This is building sbruno's bsd-user github branch:
WWW: https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user |