Commit 1b710ac5 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should configure network bridge in libvirtd

parent 58888e97
all:
all: bridge-netdev bridge-network bind-network
tar xf libvirt-5.4.0.tar.xz
patch -Np1 -d libvirt-5.4.0 < libvirt-5.4.0-run_dir_fix.patch
cd libvirt-5.4.0 && ./autogen.sh
......@@ -11,3 +11,38 @@ all:
install -v -m755 -d /etc/libvirt/secrets
install -v -m755 -d /etc/libvirt/storage
systemctl enable libvirtd.service
echo "$$BRIDGE_NETDEV" > /etc/systemd/network/br0.netdev
echo "$$BRIDGE_NETWORK" > /etc/systemd/network/br0.network
echo "$$BIND_NETWORK" > /etc/systemd/network/bind.network
bridge-netdev:
define BRIDGE_NETDEV
[NetDev]
Name=br0
Kind=bridge
endef
export BRIDGE_NETDEV
bridge-network:
define BRIDGE_NETWORK
[Match]
Name=br0
[Network]
DHCP=ipv4
[DHCP]
UseDomains=true
endef
export BRIDGE_NETWORK
bind-network:
define BIND_NETWORK
[Match]
Name=eth*
[Network]
Bridge=br0
endef
export BIND_NETWORK
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment