Ken Moffat wrote:
On Wed, Dec 03, 2014 at 05:22:54PM -0600, Bruce Dubbs wrote:
Ken Moffat wrote:

  I was just searching for something else, and came across
http://wiki.qemu.org/Features-Done/HelperNetworking - not sure if
the 'Setup' section there [ /etc/qemu/bridge.conf ] will help.

That's interesting.  Checking the man page, I see an entry for that, but
there a couple of issues I see.

First there doesn't seem to be much difference between -net and -netdev


-netdev bridge,id=id               [,br=bridge][,helper=helper]
-net    bridge[,vlan=n][,name=name][,br=bridge][,helper=helper]

(my formatting)

I'm not sure what id and name are supposed to be.  I suspect the vlan is
only necessary if you have multiple instances that you want to keep on
separate lan instances.

  For that point, I have no idea.

The man pages says

"The default network helper executable is /path/to/qemu-bridge-helper"

That's not helpful.  I searched the source to find

include/net/net.h:#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR
"/qemu-bridge-helper"

but I couldn't find where CONFIG_QEMU_HELPERDIR is defined.  It might be
nice to not have to explicitly define the helper.  Perhaps it looks at the
PATH variable, but I don't know.

Ah, found it.  In configure, echo "qemu_helperdir=$libexecdir" >>
$config_host_mak, so it would be for us /usr/libexec/qemu-bridge-helper.

I'm not sure what the qemu-bridge-helper script does.  Is it just the same
as qemu-ifup?  It's not clear.

  It appears to be a binary:
file /usr/libexec/qemu-bridge-helper
/usr/libexec/qemu-bridge-helper: ELF 64-bit LSB shared object,
x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for
GNU/Linux 2.6.32, stripped

I didn't look!  I jsut assumed it was a script.

  qemu-bridge-helper.c in the top level of the source.  On a quick
look, it appears to correlate to what that earlier link says about
an ACL.

  Examples at
https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper
no idea if they are current or correct.  Like any big wiki, there
are good things and also wrong or outdated things.

  There is also an example in
https://www.suse.com/documentation/sles11/book_kvm/data/cha_qemu_running_networking.html
('Connecting to a Bridge with qemu-bridge-helper') but the details
of bridging are outside my competencies.

Great links. I'll test after bit. I'm currently rebuilding LFS on my qemu test system so I need to wait till that is done. It's currently running the gcc tests. I don't want to throw off the timing measurements.

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to