Discussion:
[Qemu-discuss] Missing "bridge.conf"
Davide Baldini
2015-07-06 20:04:56 UTC
Permalink
Hello,

with Qemu 2.3.0, I'm trying to run a bridged VM like this:

$ /usr/local/bin/qemu-system-x86_64 -hda /media/raid1/qemu-105 -m 768
-localtime -netdev bridge,id=hn0 -device virtio-net-pci,netdev=hn0,id=nic1
failed to parse default acl file `/usr/local/etc/qemu/bridge.conf'
failed to launch bridge helper
qemu-system-x86_64: -netdev bridge,id=hn0: Device 'bridge' could not
be initialized

$ /usr/local/libexec/qemu-bridge-helper --br=br0 --fd=x
failed to parse default acl file `/usr/local/etc/qemu/bridge.conf'
"bridge.conf" doesn't exist:

$ ls /usr/local/etc/qemu/bridge.conf
ls: cannot access /usr/local/etc/qemu/bridge.conf: No such file or
directory

not even a "bridge.conf.sample", searched for with "find" throughout the
filesystem.

Where can I get that file?

-- Davide
Vlad Yasevich
2015-07-06 20:24:12 UTC
Permalink
Post by Davide Baldini
Hello,
$ /usr/local/bin/qemu-system-x86_64 -hda /media/raid1/qemu-105 -m 768 -localtime -netdev
bridge,id=hn0 -device virtio-net-pci,netdev=hn0,id=nic1
failed to parse default acl file `/usr/local/etc/qemu/bridge.conf'
failed to launch bridge helper
qemu-system-x86_64: -netdev bridge,id=hn0: Device 'bridge' could not be initialized
$ /usr/local/libexec/qemu-bridge-helper --br=br0 --fd=x
failed to parse default acl file `/usr/local/etc/qemu/bridge.conf'
$ ls /usr/local/etc/qemu/bridge.conf
ls: cannot access /usr/local/etc/qemu/bridge.conf: No such file or directory
not even a "bridge.conf.sample", searched for with "find" throughout the filesystem.
Where can I get that file?
http://wiki.qemu.org/Features-Done/HelperNetworking

or

echo "allow br0" > /etc/qemu/bridge.conf

-vlad
Post by Davide Baldini
-- Davide
Davide Baldini
2015-07-07 01:09:08 UTC
Permalink
Creating bridge.conf resolved it.

The wiki at http://wiki.qemu.org/Features-Done/HelperNetworking remains
vague on it, I wasn't clear if bridge.conf was a missing important file,
or if I could just overwrite it.

-- Davide

Loading...