# ens2f2: port 2 of PCIe NetXtreme, unused
# ens2f3: port 3 of PCIe NetXtreme, unused
# enp0s29f0u2: IMM
+# ibs4: port 1 of Mellanox ConnectX-2, used for mlx1 network
+# ibs4d1: port 2 of Mellanox ConnectX-2, used for mlx2 network
INTERNAL_BOND_NAME=bondi
EXTERNAL_BRIDGE_NAME=bre
EXTERNAL_BRIDGE_DEVICE=${EXTERNAL_BRIDGE_NAME}-dev
+MLX1_CONNECTION_NAME=mlx1
+MLX1_CONNECTION_DEVICE=ibs4
+MLX2_CONNECTION_NAME=mlx2
+MLX2_CONNECTION_DEVICE=ibs4d1
+
nmcli connection delete $INTERNAL_BRIDGE_NAME
nmcli connection delete $INTERNAL_BOND_NAME
nmcli connection delete $EXTERNAL_BOND_SLAVE_1_DEVICE
nmcli connection delete $EXTERNAL_BOND_SLAVE_2_NAME
nmcli connection delete $EXTERNAL_BOND_SLAVE_2_DEVICE
+nmcli connection delete $MLX1_CONNECTION_NAME
+nmcli connection delete $MLX1_CONNECTION_DEVICE
+nmcli connection delete $MLX2_CONNECTION_NAME
+nmcli connection delete $MLX2_CONNECTION_DEVICE
nmcli connection add \
connection.slave-type bond \
connection.type 802-3-ethernet \
save yes
+
+nmcli connection add \
+ connection.autoconnect yes \
+ connection.id $MLX1_CONNECTION_NAME \
+ connection.interface-name $MLX1_CONNECTION_DEVICE \
+ connection.type infiniband \
+ ipv4.addresses "172.16.131.221/24" \
+ ipv4.method "manual" \
+ ipv6.method "auto" \
+ save yes
+
+nmcli connection add \
+ connection.autoconnect yes \
+ connection.id $MLX2_CONNECTION_NAME \
+ connection.interface-name $MLX2_CONNECTION_DEVICE \
+ connection.type infiniband \
+ ipv4.addresses "172.16.132.221/24" \
+ ipv4.method "manual" \
+ ipv6.method "auto" \
+ save yes
hostnamectl set-hostname vhost1.usr.user.hu
timedatectl set-timezone Europe/Budapest
-dnf install chrony logrotate lxc lxc-templates mercurial rsyslog screen vim-enhanced wget
+dnf install \
+ chrony \
+ infiniband-diags \
+ logrotate \
+ lxc \
+ lxc-templates \
+ mercurial-py3 \
+ opensm \
+ rdma-core \
+ rsyslog \
+ screen \
+ vim-enhanced \
+ wget
systemctl disable firewalld.service
systemctl enable logrotate.timer
systemctl enable lxc.service
+systemctl enable opensm.service
systemctl enable rsyslog.service
systemctl start logrotate.timer
systemctl start lxc.service
+systemctl start opensm.service
systemctl start rsyslog.service
systemctl stop firewalld.service