Record of some of the computer tech I deal with so that it's documented at least somewhere.

Thursday, 26 February 2009

Qemu installation

I aptituded
Setting up kqemu-common (1.3.0~pre11-8) and qemu (0.9.1-10)

and it added a load of extras, vde2 included

I had to add kqemu-source
It depended gcc et al and kernel headers

cd /usr/src

tar -jxvf kqemu-source.tar.bz2
cd modules/kqemu
aptitude linux-headers-2.6.26-686 and dependents
./configure
make
make install
insmod kqemu.ko

echo keqmu >> /etc/modules


add tap0 to /etc/network/interfaces

auto lo eth0 eth1 tap0

iface tap0 inet static
address 192.168.254.254
netmask 255.255.255.0
network 192.168.254.0
broadcast 192.168.254.255

echo tun >> /etc/modules

maht@slap:~/storm_bin$ cat /etc/service/w2k/run

#!/usr/local/plan9/bin/rc

vdeq qemu -boot c -m 256 -hda /home/qemus/w2k -localtime -k en-us -net 'nic,macaddr=00:99:99:99:02:01,vlan=0' -net 'vde,vlan=0' -vnc 10.0.0.1:21 -win2k-hack -usbdevice tablet -snapshot

so, all done

No comments: