Bob Hoffman
2012-Feb-03 20:41 UTC
[CentOS] network intermitent, not sure if virtualization issue
I have a computer I am using to host a virtual machine. Centos 6, for both, 64 bit. The host machine's network connection seems fine. No problems. Trying to access the virtual machine is usually fine. but then, poof, ssh, http, ftp, all lose connection for about a minute. Then they come back up. I looked in all the logs on both machines, could find nothing, but not sure where to look. My question, would this be a setting on the VM as a webserver, some new centos 6 setting that just times out network when not in use? Or something that I did when I bonded my eth ports and bridged them? The bond covers the two onboard eth ports and one port from an add on network card. It is intermittent, seems to happen whenever, but service network restart on the webserver seems to fix it immediately, but it also just fixes itself too. is there some setting with centos 6 that must be changed to allow constant 'uptime' of the network?
Digimer
2012-Feb-03 20:45 UTC
[CentOS] network intermitent, not sure if virtualization issue
On 02/03/2012 03:41 PM, Bob Hoffman wrote:> I have a computer I am using to host a virtual machine. > Centos 6, for both, 64 bit. > > The host machine's network connection seems fine. No problems. > Trying to access the virtual machine is usually fine. > > but then, poof, ssh, http, ftp, all lose connection for about a minute. > Then they come back up. > > I looked in all the logs on both machines, could find nothing, but not > sure where to look. > > My question, would this be a setting on the VM as a webserver, some new > centos 6 setting that just > times out network when not in use? Or something that I did when I bonded > my eth ports and bridged them? > > The bond covers the two onboard eth ports and one port from an add on > network card. > > It is intermittent, seems to happen whenever, but service network > restart on the webserver > seems to fix it immediately, but it also just fixes itself too. > > is there some setting with centos 6 that must be changed to allow > constant 'uptime' of the network? > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centosPlease share more information on your configuration, including configuration files. Particularly your eth, bond and bridge configurations. -- Digimer E-Mail: digimer at alteeve.com Papers and Projects: https://alteeve.com
Digimer
2012-Feb-03 21:02 UTC
[CentOS] network intermitent, not sure if virtualization issue
On 02/03/2012 03:55 PM, Bob Hoffman wrote:> On the virtual machine, which is having the issue, this is my eth0 > (I have been commenting out things to see if anything changes the issue.)Looks fine.> on the main machine which experiences no problems. > > eth0 and 1 onboard, eth 2 add on card, all are the same except > hwaddress, uuid, etc.Looks fine, assuming of course that the DEVICE and HWADDR are different. :)> (tried playing with bonding mode, but got nowhere there, again, the host > machine never has an issue)Are you bonding for performance or reliability? Bridge config looks fine, too.> not sure why vnet0 shows up in ifconfig, it is there and sometimes it is > not depending on boot....Are you using KVM? I assume so. Regardless, the 'vnetX' interface is the link between the VM and the bridge. Think of it as your virtual network cable. As such, it exists when the VM exists, and is deleted when the VM migrates or is shut down. What does 'cat /proc/net/bonding/bond0' show on either node? -- Digimer E-Mail: digimer at alteeve.com Papers and Projects: https://alteeve.com
Bob Hoffman
2012-Feb-04 03:34 UTC
[CentOS] network intermitent, not sure if virtualization issue
Continuing in my venture to resolve the network issue on the virtual machine on my centos 6 host machine. The intermittent 'closing' off all network conditions can only be solved by service network restart My last thing I am going to try is to look at the different NIC devices I can use in virtual machine manager. The one i was using is the default I guess, virtio. The other options are e1000 ne3k_pci rtl8130 hypervisor default The e1000 has thousands of pages online about issues with centos, so will try that last. Gonna try hypervisor default. Other than changing this option I can find no reason for the network services to just go missing with nothing in the logs...they just disappear from the net.
Bob Hoffman
2012-Feb-06 06:46 UTC
[CentOS] network intermitent, not sure if virtualization issue
----------------------- snip centos 6 host, centos 6 virtual machine. Network connection from outside server disappears in regards to the virtual server. snip ----------------------- Tested the heck out of it. Further testing shows the network unreachable, even if network restarted in host. A simple ping from the virtual machine going out allows full traffic both ways. Intermittent time out, it may last 5 minutes, it may last an hour, but it will disappear. I found a small config sample on an old website in the middle of nowhere. It had an addition to the /etc/sysconfig/network file of the host. it added "GATEWAY=br0" I did this and restarted the network service and I believe without me doing anything, this appeared in the virtual machine message logs, something that had never appeared before. kernel: Bridge firewalling registered so hoping that is it...not sure if I would need to do that on the virtual machine or not. I have been days at this. Literally rewrote every single ifcfg and conf file I could find. Tried hundreds of permutations. Nothing has worked. If this does not work I am willing to pay someone to end my week long battle with the virtual machine network being unreachable no matter what I do. But only if you actually know this stuff and actually have experience with the virtual machine bridging..and hopefully have seen this type of issue... <banging head on wall> <repeat> <rinse> <repeat>
Bob Hoffman
2012-Feb-07 20:58 UTC
[CentOS] network intermitent, not sure if virtualization issue- in progress
Last post on this, sorta solved. original post: ----------------------------------- I have a computer I am using to host a virtual machine. Centos 6, for both, 64 bit. The host machine's network connection seems fine. No problems. Trying to access the virtual machine is usually fine. but then, poof, ssh, http, ftp, all lose connection for about a minute. Then they come back up. I looked in all the logs on both machines, could find nothing, but not sure where to look. My question, would this be a setting on the VM as a webserver, some new centos 6 setting that just times out network when not in use? Or something that I did when I bonded my eth ports and bridged them? The bond covers the two onboard eth ports and one port from an add on network card. It is intermittent, seems to happen whenever, but service network restart on the webserver seems to fix it immediately, but it also just fixes itself too. is there some setting with centos 6 that must be changed to allow constant 'uptime' of the network? ------------------------------ I took out the bond and found that was the issue. works fine without it. However, I also brought up a second vm and found something interesting. 1- with two vms, only one failed, the other stayed up 100% of the time. 2- second NIC card was not working well, but even taken out did not solve issue. 3- pinging system I found the vm that brought up vnet0 had the exact same pings as the host, the vnet1 vm had double. 4- no matter what order the vms were brought up, whichever got assigned libvirts vnet0 would fail, the other would not fail at all. 5- the ping of the host and the vnet0 assigned VM were exactly the same every time, the vnet1 vm was a little more than double that (12ms versus 28ms). 6- the host never lost connection, but is using the same bridge and bond to connect. It has become logical in my thought process that the host and the first vm are somehow in conflict, and the host wins....via the bond software. It seems like with vms, the host should not be connected to the bond and that might work. But I am way too over this to test it out. Sharing the bridge and the bond makes me feel the first virtual machine brought up, assigned libvirt's vnet1 eventually lost some arp contest to the host. A third vm was added, never failed if not brought up first, and had the same ping rate as the vnet1, double the host and the vnet0 virtual machine. What is causing that is beyond my knowledge and is for experts on libivrt's vnet system, bond software, and possibly eth bridges. All I know is the host never failed even though it was using the same bond/bridge and maybe that is the real issue. In a vm environment maybe the host should have its on connection NOT on the bond shared by the VMs? Using physical bridges may have confused bond with that first vm coming up..... well, that is a long couple weeks work. RIght now I am just going to assign the eths direct to the bridge and forget bonding as really bad nightmare. I hope someone tests this out a bit and comes up with a brilliant yet really techy solution.