Talk:KVM

Could the section on br0 sysctl forwarding be moved from a separate init file to postup and postdown in /etc/conf.d/net?

This modification as well as the runscript in the article are unnecessary in my opinion. I simply added "net.ipv4.conf.br0.forwarding = 1" to /etc/sysctl.conf and the network works. The entries in sysctl.conf are persistent. OpenRC complains on startup that br0 could not be found, but still everything works. Note: I am running the direct bridging setup without NAT/Masquerading. If there are no objections, I will remove the runscript bridge_forward -- Hailstorm
 * With the setup as-stated in the document, I'm pretty sure that sysctl might try to run before br0 is even plumbed and pinned up. So the technique provided is, regrettably, useful.  An alternative would be net.ipv4.ip_forward=1 in /etc/sysctl.conf.  -- AngelKnight

Wiki page says: And finally, we bring tap0 up with the "promisc" mode: ifconfig tap0 up 0.0.0.0 promisc

Why we need `promisc' here? I tried masquerade variant without promisc mode and all worked.

The instruction suggests to explicitly provide a MAC-address to the tap interface

> mac_tap0="00:00:00:00:00:00"

This did not work with me. Thanks to AngelKnight over at forums.gentoo.org I now know that the MAC should only be given as a parameter to qemu-kvm. See  and the discussion there.