From VNX
Revision as of 14:34, 21 January 2012 by David (talk | contribs)
Jump to: navigation, search

Connecting a Virtual Machine to a external network

  • Create a virtual bridge associated with external interface (eth0 in this example). For example, for an Ubuntu host you have to edit /etc/network/interfaces file and :
  • auto lo
    iface lo inet loopback
    auto br0
    iface br0 inet static
            bridge_ports eth0
            bridge_stp on
            bridge_maxwait 0
            bridge_fd 0

    This will create a new bridge, br0, connected to the host interface eth0 and assign the

    IMPORTANT: be aware that you are modifying the network configuration of your host interfaces and in case of problem you will connectivity to the host. This modifications should be done from the host console to avoid problems.

    • Define a VNX <net> using that bridge:
       <net name="Net0" mode="virtual_bridge"/>
    • Configure VM interface on that net:
       <vm name="vm1" type="libvirt" subtype="kvm" os="linux">

    <if id="1" net="net0"> <ipv4></ipv4> </if>


    == Description ==