All pastes #886364 Raw Edit

Something

public text v1 · immutable
#886364 ·published 2008-01-31 16:51 UTC
rendered paste body
root@neutrino:/SPACE/VMS# cat qemu-ifup
#!/bin/sh
echo "Executing /etc/qemu-ifup"
echo "Bringing up $1 for bridged mode..."
/sbin/ifconfig $1 0.0.0.0 promisc up
echo "Adding $1 to br0..."
sudo /usr/sbin/brctl addif br0 $1
sleep 2
root@neutrino:/SPACE/VMS# cat START-WINXP-VM-networking.sh
#First, take the the main IF down, create a bridge, add the main IF to the bridge, setup IP info. then run this:
#PS: Doesn't seem to work with a wireless main IF...

qemu-system-x86_64 -net nic,vlan=0,model=ne2k_pci,macaddr=00:00:00:33:22:11 \
-net tap,vlan=0,ifname=tap0,script=qemu-ifup -hda vdisk.img -m 400
root@neutrino:/SPACE/VMS#