[Bug 584048] Re: kvm images losing connectivity w/bridged network
Serge Hallyn
584048 at bugs.launchpad.net
Thu Jul 22 14:55:47 BST 2010
I can't reproduce this on my lucid testbox. Do you have networkmanager
or wicd installed? Leaving wicd installed, for instance, caused my
box to frequently add a duplicate default route, which stopped my
network.
Can you gather the output, both when network is up, and while it is
paused, of:
netstat -nr
ifconfig -a
brctl show
ps -ef
====
To show precisely how I tried to reproduce, I did:
apt-get remove network-manager
apt-get remove wicd
cat > /etc/network/interfaces << EOF
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
EOF
(rebooted)
Then I cloned two working lucid server images
qemu-img create -f qcow2 -b s1.img s2.img
qemu-img create -f qcow2 -b s1.img s3.img
MACADDR1=`ifconfig br0 | head -2 | tail -1 | awk -F: '{ print $2 '}| awk '{ print $1 '}`
MACADDR2=`ifconfig br0 | head -2 | tail -1 | awk -F: '{ print $2 '}| awk '{ print $1 '}`
I started the first with kvm:
kvm -drive file=s2.img,if=scsi,index=0,boot=on -m 1G -smp 2 -net nic,macaddr=$MACADDR1,model=virtio -net tap,ifname=tap1,script=no,downscript=no
and hooked up its interface on the host:
ifconfig tap1 0.0.0.0 up
brctl addif br0 tap1
then ran dhclient on the guest.
Then I started the second host the same way (with s3.img, tap2, and
$MACADDR2).
The whole time I left a terminal open with 'ping google.com', and
never saw any hiccoughs.
Please let me know if any of this gives you an idea of what else I should
do to reproduce.
--
kvm images losing connectivity w/bridged network
https://bugs.launchpad.net/bugs/584048
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.
More information about the Ubuntu-server-bugs
mailing list