<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#CCCCCC">
    <div class="moz-cite-prefix">On 01/13/2015 06:39 PM, Alexey Eromenko
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOJ6w=FkV2HE0vQo-2eER6ZJFbpN9Lg5_UtiXjt6LG65DwXRHg@mail.gmail.com"
      type="cite">
      <div class="moz-text-html" lang="x-unicode">
        <p dir="ltr">Yeah. </p>
        <p dir="ltr">To attach to custom bridge create a loopback
          interface on your host OS, then join custom bridge with
          loopback,  then bridge VBOX VM with loopback. </p>
      </div>
    </blockquote>
    <br>
    Hello Alexey,<br>
    <br>
    What exact loopback device you are referring to here ?<br>
    <br>
    Like I mentioned in the initial post, I am able to bind the VMs
    network to the host's bridge, which isn't bound to any particular
    host interface. See config below:<br>
    <br>
    # This bridge will is used to NAT LXC containers' traffic<br>
    auto lxcbr0<br>
    iface lxcbr0 inet static<br>
        bridge_fd 0<br>
        bridge_maxwait 0<br>
        address 172.16.10.1<br>
        netmask 255.255.0.0<br>
        pre-up brctl addbr lxcbr0<br>
        post-down brctl delbr lxcbr0<br>
        post-down echo 0 > /proc/sys/net/ipv4/ip_forward<br>
        post-down echo 0 > /proc/sys/net/ipv6/conf/all/forwarding<br>
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward<br>
        post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding<br>
        post-up iptables -A FORWARD -i lxcbr0 -s 172.16.10.1/16 -j
    ACCEPT<br>
        post-up iptables -A POSTROUTING -t nat -s 172.16.10.1/16 -j
    MASQUERADE<br>
        # add checksum so that dhclient does not complain.<br>
        # udp packets staying on the same host never have a checksum
    filled else<br>
        post-up iptables -A POSTROUTING -t mangle -p udp --dport bootpc
    -s 172.16.10.1/16 -j CHECKSUM --checksum-fill<br>
        pre-down iptables -D FORWARD -i lxcbr0 -s 172.16.10.1/16 -j
    ACCEPT<br>
        pre-down iptables -D POSTROUTING -t nat -s 172.16.10.1/16 -j
    MASQUERADE<br>
        # add checksum so that dhclient does not complain.<br>
        # udp packets staying on the same host never have a checksum
    filled else<br>
        pre-down iptables -D POSTROUTING -t mangle -p udp --dport bootpc
    -s 172.16.10.1/16 -j CHECKSUM --checksum-fill<br>
    <br>
    <br>
    <br>
    Can anyone shed some light on what the crash maybe ? I encountered
    the crash when trying to ssh into one of the VMs, which is when it
    lost network. Surprisingly, prior to the ssh, all ping requests
    worked fine.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ritesh Raj Sarraf
RESEARCHUT - <a class="moz-txt-link-freetext" href="http://www.researchut.com">http://www.researchut.com</a>
"Necessity is the mother of invention."
</pre>
  </body>
</html>