mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
sriov-enp4s0.service allocates VFs on the ixgbe ports at boot and applies persistent VF MACs via set-ixgbe-vfmacs-enp4s0.sh, so guests keep stable addresses across host reboots. The VF MAC assignments are currently all commented out. nic-performance-tweaks.service raises ring buffers and txqueuelen on the uplinks and vmbr0. unused/ holds the equivalent pair for the retired enp130s0 adapter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
10 lines
363 B
Desktop File
10 lines
363 B
Desktop File
[Unit]
|
|
Description=Script to enable SR-IOV on boot for enp4s0
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 > /sys/class/net/enp4s0f0np0/device/sriov_numvfs'
|
|
ExecStart=/usr/bin/bash -c '/usr/bin/echo 4 > /sys/class/net/enp4s0f1np1/device/sriov_numvfs'
|
|
ExecStart=/opt/ergosteur/set-ixgbe-vfmacs-enp4s0.sh
|
|
[Install]
|
|
WantedBy=multi-user.target
|