Re: [Bug 616064] Re: Broken networking in kvm guests
Serge, On Fri, Sep 10, 2010 at 12:56 PM, Serge Hallyn <616...@bugs.launchpad.net> wrote: > Quoting Brian Fallik (616...@bugs.launchpad.net): >> 6. apt-add-repository ppa:kernel-ppa/pre-proposed > > Did you do an apt-get update here? If not, then you didn't get the > updated kernels. Yes, I just missed adding it to my notes. I manually verified that new versions of the packages with versions matching the PPAs were actually installed. > Ok, let's see if using just the bridge without kvm can reproduce the problem. > If you can, please try the following: > > 1. Get a usable ns_exec: > > git clone git://git.sr71.net/~hallyn/cr_tests.git > cd cr_tests > git checkout ns_exec > make ns_exec > cp ns_exec /bin/ > > 2. Create a veth tunnel > > sudo ip link add type veth > > 3. Open two root terminals to configure a network namespace for our test > > terminal 1: > ip link add type veth > terminal 2: > /bin/ns_exec -cmn /bin/bash > echo $$ # call this $pid henceforth > terminal 1: > ifconfig veth0 0.0.0.0 up > brctl addif virbr0 veth0 > ip link set veth1 netns $pid # use pid from above > terminal 2: > ifconfig veth1 up > dhclient veth1 > > Now, on either the host or on an external host, do > > nc -4 -k -l > > And from terminal 2 start dumping data > while [ 1 ]; do > echo ab | nc ipaddr 999 > sleep 0.5s > done > > where ipaddr is the host or external host's ip address. > > Does that eventually lock up too? I'll try and test this soon but it may fall to next week. Thanks, brian -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 616064] Re: Broken networking in kvm guests
Quoting Brian Fallik (616...@bugs.launchpad.net): > 6. apt-add-repository ppa:kernel-ppa/pre-proposed Did you do an apt-get update here? If not, then you didn't get the updated kernels. > 7. apt-get install linux-headers-server linux-image-server linux-server > 8. rebooted the machine > 9. reproduced the issue again > > I did not test new kernel + stock KVM due to time constraints. Yeah that wouldn't be worth it. > Please let me know if there are any other tests you'd like me to try and > I'll try to schedule more maintenance time. Ok, let's see if using just the bridge without kvm can reproduce the problem. If you can, please try the following: 1. Get a usable ns_exec: git clone git://git.sr71.net/~hallyn/cr_tests.git cd cr_tests git checkout ns_exec make ns_exec cp ns_exec /bin/ 2. Create a veth tunnel sudo ip link add type veth 3. Open two root terminals to configure a network namespace for our test terminal 1: ip link add type veth terminal 2: /bin/ns_exec -cmn /bin/bash echo $$ # call this $pid henceforth terminal 1: ifconfig veth0 0.0.0.0 up brctl addif virbr0 veth0 ip link set veth1 netns $pid # use pid from above terminal 2: ifconfig veth1 up dhclient veth1 Now, on either the host or on an external host, do nc -4 -k -l And from terminal 2 start dumping data while [ 1 ]; do echo ab | nc ipaddr 999 sleep 0.5s done where ipaddr is the host or external host's ip address. Does that eventually lock up too? -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 616064] Re: Broken networking in kvm guests
On Mon, Aug 30, 2010 at 2:04 PM, Serge Hallyn <616...@bugs.launchpad.net> wrote: >> Side question: every time I switch networking times, the guest bumps >> ethernet device number (eth0, eth1, ...). This makes it annoying to >> reset networking to switch static/dhcp on the next reboot. Is there a >> method to ensure that the guest always uses eth0? > > I'm nto sure what you mean by 'switch networking times' - but I assume > you are talking about the guest's ethN? If so, libvirt is probably > assigning it new MAC addresses, and udev in the guest is trying to be > smart and helpful. Edit > > /etc/udev/rules.d/70-persistent-net.rules > > and put the latest mac address in place of the one for eth0, and delete > the eth1..ethN entries. Yes, I meant "every time I switch the networking" the guests ethN keeps increasing. I'll take a look at /etc/udev/rules.d/70-persistent-net.rules. brian -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 616064] Re: Broken networking in kvm guests
Quoting Brian Fallik (616...@bugs.launchpad.net): > Serge, > > I've gotten the bridge configuration set up and everything seems stable > and working after a few hours of testing. Obviously we'll keep watching > it over the next few days. Thanks for the suggestion for the > workaround. It'd be nice to understand the issue with the original > configuration but it looks like bridging guests with the host's physical > Ethernet device gives us a path forward. In your bridging setup, do you have STP on or off? ('brctl show' should tell you for sure) Without a doubt, if using bridging is a workaround, we still need to figure out why NATing is breaking for you. Actually, hm. Can you also paste the output of iptables -L on the host? -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 616064] Re: Broken networking in kvm guests
On Thu, Aug 26, 2010 at 9:01 AM, Serge Hallyn <616...@bugs.launchpad.net> wrote: > 2. you said > >> In the scenario you suggested which seemed to work, tap1 was bridged >> directly to eth0 and used an IP address from the host's actual subnet. This >> is similar to: >> http://wiki.libvirt.org/page/Networking#Bridge > > Exactly, that was the guide I originally got the config from. So it's a > good idea to test the setup in http://wiki.libvirt.org/page/Networking#Bridge > on your machine. Makes sense. I'm going to work on that right now. brian -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 616064] Re: Broken networking in kvm guests
Quoting Brian Fallik (616...@bugs.launchpad.net): > Serge - my uploads in comment #5 and comment #6 should have been while > guest #1 (Lucid) was running. This problem occurs regardless of 1 or 2 > guests are running. I've stopped launching the second guest (Hardy) > since the number of guests seemed irrelevant. But I don't see a tap0 or tap1 in the output. I for some reason thought I"d seen you say you were using 10.04.1 as guest as well. Let me try a hardy guest! -- Broken networking in kvm guests https://bugs.launchpad.net/bugs/616064 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs