28.6 Declaring the KVM Bridged Network
At this point, the bridge connection is present on the system but is not visible to the KVM environment. Running the virsh command should still list the default network as being the only available network option:
# virsh net-list --all
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
Before the bridge can be used by a virtual machine it must be declared and added to the KVM network configuration. This involves the creation of a definition file and, once again, the use of the virsh command-line tool.
Begin by creating a definition file for the bridge network named bridge.xml that reads as follows:
<network>
<name>br0</name>
<forward mode="bridge"/>
<bridge name="br0" />
</network>
Next, use the...