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

PVE Processor Microcode

Download and install an Intel or AMD CPU microcode package from the Debian archive on a Proxmox VE host.

microcode.sh detects the CPU vendor, lists the microcode packages in Debian's non-free-firmware pool and installs the one you pick.

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

Run

In the Proxmox VE host shell, as root:

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

The script exits if pveversion is missing ("No PVE Detected!") or on ARM64.

Prompts

DialogChoicesEffect
"This will check for CPU microcode packages with the option to install. 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.

The current revision in the title comes from the kernel log (microcode: Current revision:); if no such line exists it reads "Not found."

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. The new microcode is loaded at the next boot, so reboot the host.

Check after the reboot:

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

Undo

The script offers none. Run it again and choose an older package from the list, 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.
  • Run it on the physical host. For Proxmox Backup Server use PBS Processor Microcode.