Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Bridge problems on KVM

  1. #1
    Join Date
    Apr 2012
    Beans
    10

    Bridge problems on KVM

    I've configured the bridge using this guide https://help.ubuntu.com/community/KVM/Networking but when I connect using eth0 the host loses connection to the network. The guest machine takes all the connection. How do I configure it in a way that they both have a connection but it's still on bridge mode?

  2. #2
    Join Date
    Apr 2012
    Beans
    106

    Re: Bridge problems on KVM

    Please post the contents of your /etc/network/interfaces

  3. #3
    Join Date
    Apr 2012
    Beans
    10

    Re: Bridge problems on KVM

    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet manual

    # The bridge network interface, used by kvm
    auto br0
    iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

  4. #4
    Join Date
    Apr 2012
    Beans
    106

    Re: Bridge problems on KVM

    Quote Originally Posted by gerger09 View Post
    when I connect using eth0 the host loses connection to the network.
    Based on your interface file eth0 is not getting an IP, how are you connecting to the host over eth0?

  5. #5
    Join Date
    Apr 2012
    Beans
    10

    Re: Bridge problems on KVM

    Through LAN. I tried setting it on dhcp instead of manual but I still get the same result. For now I removed the bridge so I can connect to the internet using LAN.

  6. #6
    Join Date
    Apr 2012
    Beans
    10

    Re: Bridge problems on KVM

    I can access the router's web management interface when connected to the LAN but I am unable to access the Internet when in bridge mode. I've been trying to solve this problem for a month now.

  7. #7
    Join Date
    Jun 2007
    Beans
    Hidden!

    Re: Bridge problems on KVM

    What kind of network connection is eth0? Wired/wireless?
    Dedoimedo

  8. #8
    Join Date
    Apr 2012
    Beans
    10

    Re: Bridge problems on KVM

    eth0 is wired

  9. #9
    Join Date
    Jun 2006
    Location
    Houston, TX
    Beans
    1,333
    Distro
    Ubuntu 6.06

    Re: Bridge problems on KVM

    Your interfaces file looks good. Did you install the cap net admin and assign the users correctly? https://help.ubuntu.com/community/KV...MIN_Capability

    I am thinking this may be your issue.

    And did you see the last line at the bottom of https://help.ubuntu.com/community/KV...ge_on_the_host
    If your VM host "freezes" for a few seconds after starting or stopping a KVM guest when using bridged networking, it is because a Linux bridge will take the hardware address of the lowest numbered interface out of all of the connected interface. To work around this, add the following to your bridge configuration:

    post-up ip link set br0 address f4:6d:04:08:f1:5f

    and replace f4:6d:04:08:f1:5f with the hardware address of a physical ethernet adapter which will always be part of the bridge.
    If this does not help, post the results of "ifconfig" in a shell.

  10. #10
    Join Date
    Jun 2007
    Beans
    Hidden!

    Re: Bridge problems on KVM

    What does your route look like - route -n.
    Dedoimedo

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •