3

I am probably missing something but have a KVM virtualized HOST/GUEST setup.

  • The GUEST is using a bridge (br0) on the HOST for internet connectivity.
  • When I make a "/etc/init.d/networking stop ; sleep 5 ; /etc/init.d/networking start" on the HOST the GUEST loses internet connectivity. -- When I reboot the HOST instead of doing a networking stop/start" then the GUEST is ok.

NOTE: Tried also "ifdown br0 ; sleep 5 ; ifup br0", GUEST always loses connectivity still Surely i'm missing something here that is not working either on the restart or to do with libvirt, but what?

Thanks in advance.

2

I remember noticing this on here before and the answer appears to be that:

when you restart the networking, the vnetX tap devices are not reconnected, causing the VMs to lose connectivity with the bridge

With one solution and some workarounds proposed.

KVM guests lose connectivity after networking restart

  • 2
    Thank you very much, you have pointed me in the right direction, in the end i decided to manually reconnect the vnet to the bridge which in my case was to perform the following command after the networking restart: brctl add if br0 vnet0 – Onitlikesonic Sep 15 '14 at 13:15
  • 2
    There is a typo in @Onitlikesonic's answer: It should read brctl addif br0 vnet0. – fqxp Jan 22 '16 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.