qemu on Debian/sid

qemu runs out of the box on a debian sid. However kernel accelleration (kqemu) and Networking require some tweaking…

qemu CVS: http://savannah.nongnu.org/cvs/?group=qemu

Command Line Spells

start NAT:

modprobe tun
chgrp qemu /dev/net/tun 
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -s 172.20.0.0/24 -j MASQUERADE

start qemu:

qemu-make-debian-root 600 sarge ftp://ftp.nl.debian.org/debian qemu
sudo qemu -net nic -net tap -m 256 -boot d -cdrom ~/Desktop/Downloads/timos_rescue_cd_set-0.9.12r2.iso qemu

start two qemu's

qemu -boot c -net nic,vlan=0 -net tap,vlan=0,ifname=tap0  -net nic,vlan=1,macaddr=52:54:00:12:34:60 -net socket,vlan=1,listen=:1234 sonoserver.dsk

qemu -net nic,vlan=1,macaddr=52:54:00:12:34:61 -net socket,vlan=1,connect=127.0.0.1:1234  -m 256 -boot c qwinXP.dsk

/etc/qemu-ifup

#!/bin/sh
sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1
echo "Bringing up $1 for qemu.."
 
wiki/qemu.txt · Last modified: 11.03.2013 00:26 by rgareus