Skip to main content
Community Scripts logo
Skip to Content
Tools & Add-onsPVE Tools

PBS Processor Microcode

Download and install an Intel or AMD CPU microcode package from the Debian archive on a bare-metal Proxmox Backup Server.

pbs-microcode.sh is the Proxmox Backup Server variant of PVE Processor Microcode. It detects the CPU vendor, lists the microcode packages in Debian's non-free-firmware pool and installs the one you pick.

Website entry: pbs-microcode. Source: tools/pve/pbs-microcode.sh.

Run

In the shell of a bare-metal Proxmox Backup Server, as root:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/pbs-microcode.sh)"

Checks

CheckResult if not met
systemd-detect-virt returns none"This script must be run on bare metal", exit 232. A PBS in a VM or container cannot load microcode.
/etc/proxmox-backup/user.cfg exists"Proxmox Backup Server not detected!", exit
Architecture is not arm64Exit

Prompts

DialogChoicesEffect
"This script searches for CPU microcode packages and offers the option to install them. Proceed?"Yes / NoThe answer is not evaluated; the script continues in both cases. Leave at the next dialog instead.
"Select a microcode package to install:" (radio list; the title shows the current revision)One .deb fileDownloads and installs it. Selecting nothing or Cancel shows "No Microcode Selected" and exits without changes.

What it does

CPU vendor (lscpu)Package list fromExtra step
GenuineIntelhttps://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/Installs iucode-tool with apt-get if missing.
AuthenticAMDhttps://ftp.debian.org/debian/pool/non-free-firmware/a/amd64-microcode/None.
other"is not supported", exit.

The chosen amd64.deb is downloaded into the current directory, installed with dpkg -i and deleted. Reboot to load the new microcode, then check:

journalctl -k | grep -E "microcode" | head -n 1

Undo

The script offers none. Run it again and choose an older package, or remove the package (intel-microcode or amd64-microcode) with apt and reboot.

Environment variables

VariableDefaultPurpose
COMMUNITY_SCRIPTS_CORE_URLhttps://raw.githubusercontent.com/community-scripts/core/mainBase URL the script loads api/api.func from.

Limits

  • The list shows every package version in the Debian pool, including ones built for other Debian releases than the host's.
  • The package is installed with dpkg -i directly; APT sources are not changed.