blob: 2faff8f48842a89cbeca1e22ebac80e5beb3ab5a [file] [log] [blame]
brctl addbr br0
tunctl -u rminnich -t tap0
ifconfig tap0 0.0.0.0 up
brctl addif br0 tap0
# need to rebuild tap0 and br0 each time, ifconfig tap0 up, or give
#it an /etc/init (and config_tap0("null")) init.d br0, dnsmasq, iptables
#(currently in default RL) iptables is set to masq to either eth0 or
#wlan0. if you ever add wlan0 to br0, this probably needs changing echo
#1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_dynaddr
sudo qemu-system-x86_64 -s -cpu phenom -smp 8 -m 6024 -nographic -net nic,model=rtl8139 -netdev tap,id=mynet0 mnt/hdd268mb.img -kernel mnt/hdd/kernel $*
# -S -s -gdb tcp::1234