#!/bin/bash -e set -euo pipefail instances="${instances:-20}" bridge="${bridge:-"br1"}" ethernet="${ethernet:-"eth0"}" zypper -n in openvswitch os-autoinst-openvswitch firewalld ovs-vsctl add-br $bridge echo "OS_AUTOINST_USE_BRIDGE=$bridge" > /etc/sysconfig/os-autoinst-openvswitch cat > /etc/sysconfig/network/ifcfg-$bridge < /etc/sysconfig/network/ifcfg-tap0 <> /etc/sysconfig/network/ifcfg-$bridge; done cat > /etc/firewalld/zones/trusted.xml < Trusted All network connections are accepted. EOF systemctl reload firewalld zypper -n in libcap-progs setcap CAP_NET_ADMIN=ep /usr/bin/qemu-system-x86_64 cat > /etc/wicked/scripts/gre_tunnel_preup.sh < EOF chmod +x /etc/wicked/scripts/gre_tunnel_preup.sh systemctl enable --now openvswitch os-autoinst-openvswitch firewalld