]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: Add network bridge support
authorJoshua Watt <jpewhacker@gmail.com>
Wed, 8 Jan 2020 19:48:07 +0000 (13:48 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Jan 2020 21:11:25 +0000 (21:11 +0000)
commit9e7b38c61c6b84b7f137c733ac5da9414025693d
tree85d9a5a2539a0d600c2f404680bb363b76bdb297
parent2ce6ef29b9bb4f16ed9d78e166d455b7a6d968bf
runqemu: Add network bridge support

Qemu supports attaching the virtual machine to an existing network
bridge interface via the qemu-bridge-helper program (as long as the
system is correctly configured to give the user permissions). Add
support for runqemu to do this also via the "bridge=<INTERFACE>"
argument. Note that for this to work correctly, the host
qemu-bridge-helper must be used, not the one that might have been built
by qemu-native. In order for qemu to correctly find this program, a
qemu-oe-bridge-helper program has been added to qemu-helper-native, and
runqemu will use this helper as the bridge helper. The helper will look
for the host qemu-bridge-helper first by looking in the
QEMU_BRIDGE_HELPER environment variable, then by search common paths
where the helper is installed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper [new file with mode: 0755]
scripts/runqemu