Twilight Box

HomeInstructionsDownloadsForum

Getting Started

In order to play you need to do a couple of things:

Qemu Tips

If you are not familiar to qemu you can use the script I use to boot the system.

qemu-ifup

 #!/bin/sh

echo "Executing /qemu-ifup.host-only"
echo "Bringing up $1 for bridged mode..."
sudo /sbin/ifconfig $1 0.0.0.0 promisc up
echo "Adding $1 to br1..."
sudo /usr/sbin/brctl addif br1 $1
sleep 2

start.sh

#!/bin/sh
/sbin/modprobe kqemu

tunctl -t tap1
tunctl -t tap2
ifconfig tap1 up

brctl addbr br1
brctl addif br1 tap1
ifconfig br1 192.168.0.2 


qemu -net nic,vlan=0 -net tap,vlan=0,script=qemu-ifup -net nic,vlan=2 -net user,vlan=2 -hda base.img -hdb lvl0 $@ 


ifconfig br1 down 
brctl delbr br1

make both files executable. Put them in the same directory as the base and the lvl. create a symlink between lvl0 and lvl "ln -s lvl0 lvl" and then run ./start.sh

NOTE:doing this way you are actually creating 2 network interfaces. eth0 will be in bridge with the machine actually running qemu. eth1 is down by default: it is used only to make it simplier to update/create new levels. Eth0 will get its IP from DHCP (if you have a local one on the same machine running Qemu). If it cannot get an address it will default to 169.254.1.2

QEmu on Windows To install qemu on windows I suggest Qemu Manager. It comes with an easy to use interface. I tested and the image is working fine, you should set as network a TAP device (see OpenVPN . It creates a TAP device when you install it).

Hope this is clear enough. If you have any problem go to the Forum


Last Update: 15-01-2010 08:19:25 GMT+1