Never got a reply on this.
On Wed, Dec 24, 2008 at 11:47:23AM -0600, Marco Peereboom wrote:
> I always spend 30 minutes re-figuring out how to get qemu running. I
> know folks like thib and some others have the same issue. We simply
> aren't smart enough to understand the rest of the README. Here is a
> diff to the README to make it useful for people who don't know how to
> get this working quickly.
>
> ok
>
> --- /usr/ports/emulators/qemu/files/README.OpenBSD Thu Dec 11 03:17:33 2008
> +++ /usr/local/share/doc/qemu/README.OpenBSD Wed Dec 24 11:40:58 2008
> @@ -12,7 +12,35 @@ README for OpenBSD users
> 5. qemu -m 32 -monitor stdio virtual.hd
> (normal boot from hard drive)
>
> +==> Even quicker start with access to the outside world
>
> +1. Get a CDROM image:
> + ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/cd44.iso
> +2. Create a virtual disk image:
> + qemu-img create boot.img 1G
> +3. First run with network access (replace nfe0 with the nic that is attached
> + to the physical network):
> + ETHER=nfe0 BRIDGE=bridge0 qemu -no-fd-bootchk -hda boot.img \
> + -cdrom cd44.iso -net nic,model=rtl8139 -net tap
> +4. Install OS as usual and use re0 for external network access; optionally
> + select serial console.
> +5. Create runqemu script with the following:
> + #!/bin/ksh
> + export ETHER=nfe0
> + export BRIDGE=bridge0
> + qemu -no-fd-bootchk -hda boot.img -net nic,model=rtl8139 -net tap
> +
> + In serial console mode do this:
> + #!/bin/ksh
> + export ETHER=nfe0
> + export BRIDGE=bridge0
> + qemu -no-fd-bootchk -nographic -serial stdio -hda boot.img \
> + -net nic,model=rtl8139 -net tap
> + 6. Make the script runable:
> + chmod +x runqemu
> + 7. Run it!
> + ./runqemu
> +
> ==> Networking
>
> 1. Default Settings
>