summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/doc/host-setup.txt156
1 files changed, 83 insertions, 73 deletions
diff --git a/share/doc/host-setup.txt b/share/doc/host-setup.txt
index efd4077..17328dd 100644
--- a/share/doc/host-setup.txt
+++ b/share/doc/host-setup.txt
@@ -5,7 +5,7 @@ compute-tools: Host Setup
1. Debian Packages
-------------------
-apt install ifenslave vlan openvswitch-switch
+apt install openvswitch-switch
2. Boot Parameters
@@ -45,98 +45,108 @@ parameter (see #881813 for more information):
3.1.1 Bridge: 1 Interface, standalone, DHCP
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
-allow-bridge0 eno1
-iface eno1 inet manual
- ovs_bridge bridge0
- ovs_type OVSPort
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
-allow-ovs bridge0
-iface bridge0 inet dhcp
- ovs_type OVSBridge
- ovs_ports eno1
+[Network]
+DHCP=ipv4
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-port bridge0 eno1
+
3.1.2 Bridge: 1 Interface, standalone, static
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
-
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
-allow-bridge0 eno1
-iface eno1 inet manual
- ovs_bridge bridge0
- ovs_type OVSPort
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
-allow-ovs bridge0
-iface bridge0 inet static
- address 10.0.0.2
- gateway 10.0.0.1
- netmask 24
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
- ovs_type OVSBridge
- ovs_ports eno1
+[Network]
+DHCP=no
+Address=10.0.0.2/24
+Gateway=10.0.0.1
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-port bridge0 eno1
+
3.2.3 Bridge: 3 physical Interfaces, vlan, bonding, static
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
-
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
-
-allow-hotplug eno1
-iface eno1 inet dhcp
-
-allow-bond0 eno2
-iface eno2 inet manual
- ovs_type OVSPort
- ovs_bonds bond0
-
-allow-bond0 eno3
-iface eno3 inet manual
- ovs_type OVSPort
- ovs_bonds bond0
-
-allow-bridge0 bond0
-iface bond0 inet manual
- ovs_bridge bridge0
- ovs_type OVSBond
- ovs_bonds eno2 eno3
- ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast other_config:bond-detect-mode=miimon other_config:bond-miimon-interval=100 other_config:bond_updelay=200
-
-allow-ovs bridge0
-iface bridge0 inet manual
- ovs_type OVSBridge
- ovs_ports bond0 bridge-100
-
-# fake bridge for vlan 100
-allow-bridge0 bridge-100
-iface bridge-100 inet static
- ovs_type OVSBridge
- ovs_options bridge0 100
- address 10.100.0.2
- netmask 24
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
+
+[Network]
+DHCP=ipv4
+EOF
+
+cat > /etc/systemd/network/eno2.network << EOF
+[Match]
+Name=eno2
+
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/eno3.network << EOF
+[Match]
+Name=eno3
+
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
+
+[Network]
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/bridge-100.network << EOF
+[Match]
+Name=bridge-100
+
+[Network]
+Address=10.100.0.2/24
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-bond bridge0 bond0 eno2 eno3 \
+ bond_mode=balance-tcp \
+ lacp=active \
+ other_config:lacp-time=fast \
+ other_config:bond-detect-mode=miimon \
+ other_config:bond-miimon-interval=100 \
+ other_config:bond_updelay=200
+ trunks=100 \
+ovs-vsctl add-br bridge-100 bridge0 100
4. Enabling user namespace for unprivileged containers
------------------------------------------------------