Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2006 14:32:23 -0400
From:      John Nielsen <john@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        "Stephen J. Roznowski" <sjr@comcast.net>
Subject:   Re: qemu networking help with windows98
Message-ID:  <200610291332.25265.john@jnielsen.net>
In-Reply-To: <200610291706.k9TH6lXK047214@istari.comcast.net>
References:  <200610291706.k9TH6lXK047214@istari.comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610291332.25265.john>