Installation
To install Kqemu-kmod use the following command.
# pkg_add -r kqemu-kmod
To Install Qemu use the following command.
# pkg_add -r qemu
Now load the kernel modules using the following commands.
# kldload kqemu # kldload aio
Testing the installation
Create a virtual HDD file.
# qemu-img create -f qcow2 image.img 1G
Download ISO file of a current version of linux distribution say Damn small linux.
# wget ftp://ibiblio.org/pub/Linux/distributions/damnsmall/current/dsl-4.4.10.iso
Run the following command.
# qemu -cdrom dsl-4.4.10.iso -hda image.img -m 75 -boot d -nographic -vnc :0
Now connect it using a VNC client using the VNC server address as <ipaddress>:0.