On Sunday 29 October 2006 12:06, Stephen J. Roznowski wrote:
> [I've searched for the answers, but have come up empty....]
>
> I'm running FreeBSD 6.2-PRERELEASE and Qemu 0.8.2_2.
>
> I've gotten Windows 98 running inside of the emulator, but I'm having
> trouble getting the network to work.
>
> Basically, I'm interested in setting it up so that my Windows98 system
> can get to the Internet via my FreeBSD system.
>
> Can anyone provide me some simple step-by-step directions, or point me
> to a web page that has them???

Here are the scripts I use:

###win98.sh###
#!/bin/sh

VMGUEST="win98"
OPTS="-m 80 -net nic -net 
tap,script=/usr/scratch/qemu/${VMGUEST}-ifup.sh -local
time -vnc 2 -monitor stdio -usb -usbdevice tablet"
CDOPTS="-cdrom /usr/ftproot/RescueCD/rescue.iso -boot d"
DEVICE="/usr/scratch/qemu/${VMGUEST}.dsk"

case $1 in
        cd)
                qemu ${OPTS} ${CDOPTS} ${DEVICE}
                ;;
        *)
                qemu ${OPTS} ${DEVICE}
                ;;
esac

if [ -r /var/run/qemuif.${VMGUEST} ] ; then
        ifconfig bridge0 deletem `cat /var/run/qemuif.${VMGUEST}`
        rm /var/run/qemuif.${VMGUEST}
fi

###win98-ifup.sh###
#!/bin/sh
ifconfig ${1} 0.0.0.0
ifconfig bridge0 addm ${1}
echo ${1} > /var/run/qemuif.win98

###rc.conf snippet###
cloned_interfaces="bridge0"
ifconfig_xl0="inet internal.network.address/24"
ifconfig_bridge0="up addm xl0"


I can provide more commentary on any or all of the above if needed; just 
ask.

JN
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to