[CentOS] qemu

Eduardo Grosclaude eduardo.grosclaude at gmail.com
Wed Sep 29 07:19:38 EDT 2010

On Wed, Sep 29, 2010 at 5:39 AM, mattias <mj at mjw.se> wrote:
> No i can start qemu but no network
> I have a bridge br0 with ta0 on it
> My start line
> qemu debian.5-0.x86.20100901.qcow --curses -net nic -net
> tap,ifname=tap0,script=no

I have something running along these lines, maybe it can help -
There are several things to check up when it comes to qemu networking

/usr/sbin/brctl addbr br0
/sbin/ifconfig eth0
/usr/sbin/brctl addif br0 eth0
/sbin/ifconfig br0 netmask up
/sbin/route add -net netmask br0
/sbin/route add default gw br0
/usr/sbin/tunctl -b -u $USER
/sbin/ifconfig tap0 up
/usr/sbin/brctl addif br0 tap0
/sbin/iptables -I RH-Firewall-1-INPUT -i br0 -j ACCEPT
/usr/bin/qemu -hda $DISK -no-acpi -m 2000 \
        -nographic -daemonize \
        -net nic,macaddr=52:54:00:11:22:33 \
                -net tap,ifname=tap0,script=no &

Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina

More information about the CentOS mailing list