This is the shell script I use to start a Qemu instance. This will not work without modification on your system, it will rather wreak havoc on it, you have been warned!

During installation you will need "-cdrom /dev/cdrom -boot d" as additional commandline parameters

cat -> qemu_plan9 <<EOF
brctl delbr br0
ifdown eth0
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0 promisc up
brctl addbr br0
brctl stp br0 on
brctl addif br0 eth0
ifconfig br0 netmask broadcast
route add default gw
modprobe tun
umount /dev/shm
mount -t tmpfs -o size=528m none /dev/shm
rm -f $device
mknod $device c 250 0
chmod 666 $device
modprobe kqemu
/usr/local/bin/qemu -net tap,1 -net nic,1  -hda /plan9/c.img -k de -m 512