Total Pageviews

Friday, 28 December 2012

Virtual machine in FreeBSD

In FreeBSD ports supplies many tools for you to emulate other operating system. First i try to uses vmware 2 (built successful but have some trouble, it's not well support as in Linux), vmware 3 built with error (to get over it must be reconfig and rebuilt kernel). I found bochs with simple branch emulator. It easy config with .bochsrc but in the first time i'm not successed install winxp in Bochs. What a shame !. But now, i try with Qemu. On seem better than Bochs, easier to use and config than vmware.
1. Install emulator/kqemu-kmod to support qemu accelerator kernel module on x86/amd64.
2. Load qemu.ko in kernel before build qemu.
$ kldload qemu
3. Build qemu with kqemu accelerate modul support with add this line in /etc/make.conf
WITH_KQEMU=yes
# to build with samba
WITH_SAMBA=yes
# to try some hack tricks
WITH_HACKS=yes
If you need some front-end for qemu, i recommend use emulator/qemu-launcher with GNOME libs.
4. Run Qemu. (Detail about use in man qemu).