12 lines
672 B
Bash
12 lines
672 B
Bash
#!/bin/bash
|
|
# install-bench.sh — install the #709 benchmark toolset (fio + iperf3 + jq)
|
|
# on a Debian-based guest or LXC. Idempotent. Not for Proxmox hosts directly:
|
|
# on hosts, create the bench LXC (see lxc-bench-setup.sh) and run this inside.
|
|
set -eu
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update -qq
|
|
apt-get install -y -qq fio iperf3 jq >/dev/null
|
|
# libaio package name differs: libaio1 (bookworm) vs libaio1t64 (trixie+)
|
|
apt-get install -y -qq libaio1 2>/dev/null || apt-get install -y -qq libaio1t64 >/dev/null
|
|
echo "bench toolset installed: fio=$(fio --version 2>/dev/null | awk '{print $3}') iperf3=$(iperf3 --version 2>/dev/null | awk 'NR==1{print $2}')"
|