2004-06-03 04:12:52 +02:00
|
|
|
====
|
|
|
|
FreeBSD host notes:
|
|
|
|
- needs to run as root in order to use /dev/tap* networking (why?)
|
2005-09-10 19:04:42 +02:00
|
|
|
(actually RELENG_6 and above now has a sysctl net.link.tap.user_open
|
|
|
|
to allow users to use it too. don't forget to adjust device node
|
|
|
|
permissions in /etc/devfs.rules.)
|
2005-01-08 17:21:01 +01:00
|
|
|
- slirp (usermode networking) is fixed now in cvs, on FreeSBIE 1.0 guests
|
2004-06-07 01:13:15 +02:00
|
|
|
you still have to manually do:
|
2004-06-05 14:28:31 +02:00
|
|
|
echo nameserver 10.0.2.3 >/etc/resolv.conf
|
2005-01-08 17:21:01 +01:00
|
|
|
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
|
2006-07-23 02:04:01 +02:00
|
|
|
1000 by default btw (changed to 250 recently). Enabling /dev/rtc doesn't
|
|
|
|
seem to help either (not included since it needs a patch to emulators/rtc.)
|
2004-06-03 04:12:52 +02:00
|
|
|
- using physical media doesn't work on 4.x hosts (missing DIOCGMEDIASIZE
|
2005-01-08 17:21:01 +01:00
|
|
|
ioctl.)
|
2006-09-02 21:50:47 +02:00
|
|
|
- the -smb option (smb-export local dir to guest) needs the net/samba3
|
2005-05-01 09:39:11 +02:00
|
|
|
port/package installed in addition to qemu.
|
2005-09-10 19:04:42 +02:00
|
|
|
- RELENG_6 and up guests often crash while accessing the emulated cdrom
|
|
|
|
(see kern/84102, http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/84102),
|
|
|
|
using a kernel without PREEMPTION has been reported to fix this problem.
|
|
|
|
(or do an ftp install instead of installing from the emulated cdrom, and
|
2005-12-03 04:18:40 +01:00
|
|
|
then make a new kernel.) [fixed since 6.0-R.]
|
2005-10-15 01:47:48 +02:00
|
|
|
- 6.0-RC1 was released with an ed driver that doesn't like qemu's emulated
|
|
|
|
RTL8029 nic, this has been fixed in the meantime but if for some reason
|
|
|
|
you need to use that version as a guest you can temporarily add the patch
|
|
|
|
in this message: http://docs.freebsd.org/cgi/mid.cgi?200510131428.21211.jkim
|
|
|
|
(not included in the port since the used VIA VT86C926 PCI ID does not
|
|
|
|
really match the emulated nic exactly, it just `happens' to work with
|
|
|
|
6.0-RC1's driver.)
|
2006-03-18 22:23:42 +01:00
|
|
|
- if you want to use usb devices connected to the host in the guest
|
|
|
|
(usb_add host:... monitor command) you need to make sure the host isn't
|
|
|
|
claiming them, e.g. for umass devices (like memory sticks or external
|
|
|
|
harddrives) make sure umass isn't in the kernel (you can then still load it
|
|
|
|
as a kld when needed), 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"
|
2006-08-07 18:10:27 +02:00
|
|
|
- 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.
|
|
|
|
- to avoid panics or non-working re(4) nics with FreeBSD guests if you
|
|
|
|
use qemu -net nic,model=rtl8139 -net user or tap ... enable the emulated
|
2006-10-31 23:55:34 +01:00
|
|
|
rtl8139 timer by building the port with RTL8139_TIMER enabled.
|
2006-08-07 18:10:27 +02:00
|
|
|
(the rtl8139c+ that model=rtl8139 emulates needs less cpu than qemu's
|
|
|
|
default ne2k nic which is driven by ed(4), it has not been made default
|
2008-01-20 18:16:05 +01:00
|
|
|
only because it may not work with all guests yet. btw qemu now also can
|
|
|
|
emulate a few intel eepro100 nics which seem to be a tad more efficient
|
|
|
|
even, and at least i82557b works without tweaks for FreeBSD guests - driven
|
|
|
|
by fxp(4) - and Linux guests too.)
|
2006-10-31 23:55:34 +01:00
|
|
|
- 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.
|
2006-11-29 21:58:35 +01:00
|
|
|
- if you build qemu wihout SDL and then get crashes running it try
|
|
|
|
passing it -nographic. This should probably be default in that case...
|
2007-02-07 00:49:01 +01:00
|
|
|
- slirp (-net user) seems to be unstable on amd64 hosts, if this affects
|
|
|
|
you please use tuntap for now. Scott Robbins posted a tap howto for
|
|
|
|
-current here:
|
2007-01-18 00:12:01 +01:00
|
|
|
http://forums.bsdnexus.com/viewtopic.php?id=1563
|
2007-02-07 00:49:01 +01:00
|
|
|
and one for 6 and 5(?) is here:
|
|
|
|
http://acidos.bandwidth-junkies.net/index.php?Sect=qemu
|
2008-01-20 18:16:05 +01:00
|
|
|
- perhaps it should be noted that if you want to use qemu with -m 512
|
|
|
|
or larger on i386 hosts you need to increase the kern.maxdsiz tunable
|
|
|
|
in loader.conf(5) since the default is 512 MB, and qemu needs memory for
|
|
|
|
itself also.
|
2008-05-13 20:29:38 +02:00
|
|
|
- if you use kqemu make sure your kqemu.ko is always in sync with your
|
|
|
|
kernel (like with any kld installed outside of base), i.e. rebuild its
|
|
|
|
port whenever you update the kernel - especially if you are switching
|
|
|
|
branches or are following a -stable or even -current branch!
|
|
|
|
- you can enable autoloading of kqemu (and aio) at boot by adding a line
|
|
|
|
kqemu_enable=YES
|
|
|
|
to /etc/rc.conf
|
|
|
|
- kqemu liked to panic the host on amd64 SMP until before 1.3.0.p11_6
|
|
|
|
(revision 1.25 of /usr/ports/emulators/kqemu-kmod/Makefile), so if your
|
|
|
|
host is such you might want to make sure your kqemu-kmod port is new enough.
|
|
|
|
(and don't forget to reload it...)
|
|
|
|
- also remember that on amd64 you need to run the amd64 (x86_64) system
|
|
|
|
emulation if you want to use kqemu, i.e. run qemu-system-x86_64 instead of
|
|
|
|
qemu (the latter only emulates a 32 bit system.) Unfortunately there can
|
|
|
|
still be guests that don't run correctly in the amd64 emulation even when
|
|
|
|
they do run in the 32 bit one, the same is true about kqemu and -kernel-kqemu
|
|
|
|
on amd64 - not much you can do about that other than help debugging (k)qemu's
|
|
|
|
amd64 emulation... (well or falling back to unaccellerated, possibly 32 bit
|
|
|
|
qemu/leaving out -kernel-kqemu if its that what's causing the problems.)
|
2007-02-07 00:49:01 +01:00
|
|
|
- qemu now uses aio at least for ide dma, so if you get `Invalid system call'
|
2006-11-29 21:58:35 +01:00
|
|
|
crashes that is because aio is not (kld)loaded.
|
2008-04-03 22:18:40 +02:00
|
|
|
- The default configuration location (qemu-ifup script etc.) has been
|
|
|
|
changed from /etc to PREFIX/etc (usually /usr/local/etc). Move your
|
|
|
|
files accordingly.
|
2004-06-03 04:12:52 +02:00
|
|
|
====
|