Installing from a bootable OpenBSD i386 install CD
Create the QEMU Image, e.g.:
qemu-img create -f qcow2 ob.img 20G
Boot the OpenBSD install CD on QEMU, e.g.:
qemu -hda ob.img -cdrom /dev/cdrom -boot d -net nic,model=pcnet -net user (if using standard qemu) qemu -hda ob.img -cdrom /tmp/cd43.iso -boot d -net nic,model=pcnet -net user (if using standard qemu and an install-iso) qemu -hda ob.img -cdrom /dev/cdrom -boot d -no-kqemu -net nic,model=pcnet -net user (if using qemu+kqemu)
If you run qemu without any "-net" you get the default which is "-net nic,model=ne2k_pci -nic user". OpenBSD don't work "inside" of QEMU with that card, the pcnet card works better.
Install OpenBSD as per normal.
Run OpenBSD on QEMU, e.g.:
qemu ob.img -net nic,model=pcnet -net user (if using standard qemu) qemu -no-kqemu ob.img -net nic,model=pcnet -net user (if using qemu+kqemu)
NOTE: You can obtain the latest OpenBSD i386 bootable install CD (unofficial) using BitTorrent software. The torrent file is available for download from here.
NOTE2: You don't need to search for any unoffical CD, use the normal boot-isos like cd43.iso which you could find if you go to any ftp site on http://openbsd.org/ftp.html
NOTE3: I don't know if it's any problems anymore with kqemu and newer releases of OpenBSD (I installed a snapshot of 4.3+) and didn't found anything strange except the lack of support for ne2k!