/etc/qemu-ifup script [it was used in older versions of qemu with tap/bridge interfaces]

2. added info about sound emulation inside qemu OS.

3. removed HACKS_CIRRUS from options [thx to scottro sugestion], reason here:

4. sometimes OS installation requires unload of kqemu. short: install without kqemu and the use with kqemu

​ 1. removed uselessscript [it was used in older versions of qemu with tap/bridge interfaces]2. added info about sound emulation inside qemu OS.3. removed HACKS_CIRRUS from options [thx tosugestion], reason here: http://forums.bsdnexus.com/viewtopic.php?pid=14036#p14036 4. sometimes OS installation requires unload of kqemu. short: install without kqemu and the use with kqemu

Code: # cd /usr/ports/emulators/qemu && make install clean

Code: Options for qemu: [X] KQEMU Build with (alpha!) accelerator module [ ] HACKS_CIRRUS Large display speedup (buggy!) [ ] RTL8139_TIMER allow use of re(4) nic with FreeBSD guests [ ] SAMBA samba dependency (for -smb) [X] SDL SDL/X dependency (graphical output) [X] CDROM_DMA IDE CDROM DMA

Code: # cd /usr/ports/security/sudo && make install clean

Code: # cat > /usr/local/etc/sudoers << EOF root ALL=(ALL) ALL username ALL=(ALL) NOPASSWD: ALL EOF

Code: # sudo kldload aio # sudo kldload kqemu

Code: % cat /dev/acd0 > ~/qemu/win2k.iso % dd bs=2048 if=/dev/acd0 of=~/qemu/win2k.iso

Code: % qemu-img create -f qcow2 ~/qemu/win2000.img 4G

Code: % qemu -boot d -hda ~/qemu/win2000.img -m 128 -cdrom ~/qemu/win2k.iso -win2k-hack -localtime

Code: % sudo kldunload kqemu % qemu -boot d -hda ~/qemu/win2000.img -m 128 -cdrom ~/qemu/win2k.iso -win2k-hack -localtime % sudo kldload kqemu

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime -snapshot

Code: kqemu support: enabled for user code

Code: kqemu support: disabled

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime -soundhw pcspk

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime -soundhw es1370,pcspk

Code: % qemu -hda ~/qemu/win2000.img -m 256 -localtime -soundhw es1370,pcspk,sb16

Code: # qemu [app] (class=SDL_App) [Workspace] {2} [Deco] {BORDER} [end]

I wrote short qemu howto install/usage on FreeBSD as host os, and in this example with Win2000 as guest os.Installinstall and configure sudo:sudo config:username is YOU.load needed modules:create Windows2000 install CD image, useorcreate qemu image for new OS:install new os, Windows2000 in our example:if You have any problems while installing the OS then unloadmodule and install again, then after install, load themodule again:typical usage of OS under qemu:typical usage of OS under qemu in snapshot mode [to commit made changes hitand type]:to switch focus between qemu mouse focus and X11 mouse focus use:to ensure that You use kqemu kernel module in user mode hitand type, if everything is ok You will see:if not You will see:if disabled it will work, but terribly slow, You will be running at Pentium 75 speed at host with CPU AthlonXP 1.66GHz.to switch between qemu console and qemu os emualtion useto go to console andto back to emulation.enabling network on emulated os, use DHCP configuration inside emulated os to get automatic IP adress 10.x.x.xafter You quit You os inside emulated os, or by qemu consoleand typeuse this command to launch again Your emulated OS:How to have sound in qemu OS, You just need to launch qemu the way I listed above, only withorto emulate Sound Blaster 16, or Sound Blaster 128. You can also enable standart annoying BEEP with. You can also enable all three of them like that:, or just BEEP + one of them:, examplesadd-on:inresources:The same schema works forand, You only do not use