1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-30 00:21:17 +00:00
Files
meta-arm/meta-arm-autonomy/documentation/xenguest-network-bridge.md
T
Bertrand Marquis df189a806b arm-autonomy: Create xenguest network bridge
Add a xenguest-network-bridge script to create a network bridge with the
host interfaces.
Add a xenguest init script to create a xen network interface connected
to the bridge
Add a network interfaces configuration file to have dhcp configuration
on the network bridge
Add xenguest-network-bridge to the default host image
Add XENGUEST_IMAGE_NETWORK_BRIDGE parameter to xenguest-image to let
user setup if a guest should be or not connected to the bridge

Change-Id: Id15fde234386376e89c2562e1ffa935c51affa5b
Issue-Id: SCM-767
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2020-04-07 23:32:32 -04:00

1.9 KiB

xenguest network bridge

Introduction

xenguest-network-bridge is creating a network bridge to allow some guests to have a direct connection to the external network. To do this, a bridge is created on the host using brctl with the network interfaces added to it so that the bridge is connected to the external network. It is also adding a guest init script which will, for guests configured to use it, create a virtual network interface for the guest and connect it to the network bridge on the host.

Usage

On the host the package xenguest-network-bridge must be included in your image.

On the xenguest image of your guest, the parameter NETWORK_BRIDGE must be set to 1 (using xenguest-mkimage --set-param=NETWORK_BRIDGE=1).

Bitbake parameters

Several parameters are available to configure the xenguest network bridge during Yocto project compilation (those can be set in your project local.conf, for example).

The following parameters are available:

  • XENGUEST_NETWORK_BRIDGE_NAME: This variable defines the name of the network bridge that is created on the host during init. This is set by default to "xenbr0".

  • XENGUEST_NETWORK_BRIDGE_MEMBERS: This variable defines the list of network interfaces that are added to the bridge when it is created on the host during init. This is set by default to "eth0".

  • XENGUEST_NETWORK_BRIDGE_CONFIG: This variable defines the configuration file to use to configure the bridge network. By default it points to have file configuring the network using dhcp. You can provide a different file using a bbappend and make this variable point to it if you want to customize your network configuration.

  • XENGUEST_IMAGE_NETWORK_BRIDGE: This variable can be set to 0 or 1 on guest projects to enable or not the connection of the guest to the host bridge. This is set by default to "1".