I have an openbsd on an old P2 computer. I use this box as a nfs and dns server for myself and some friends on my network. Because my friends have windows pcs I was in search of a way of sharing my music and files on this box. I found mt-daapd (now called firefly media server) as a solution. It works fine for sharing music with DAAP a protocol used by IPods. On windows there are programs Songbird(with an extesion), Itunes which are able to understand DAAP. For sharing files and many other things I knew FreeNAS is a nice solution but I didnt have chance to try. I thought it is time to try it and planned using it with QEMU. I compiled QEMU from the ports of my openbsd 4.1 without any problems.Then I created an image file for FreeNAS by this
$ qemu-img create FreeNas.img 1GB
Then I used FreeNas iso file downloaded from www.freenas.org and used it to install by this
$ qemu -localtime -hda FreeNas.img -cdrom /path/FreeNas.iso -boot d
After installing FreeNas as described in its manual, I closed FreeNas and started the virtual machine by this
$ qemu -localtime -hda FreeNas.img -net user -net nic
and configured ethernet device with dhcp to enable port forwarding. Then close and start the virtual machine with this
$ sudo qemu -localtime -hda FreeNas.img -net user -net nic -redir tcp:80::80
and voila. Now it is configured and works like a charm. Now it is enough to point browser to ip adress of my openbsd box to reach the admin web gui.