How to Install the Latest Microcode on Proxmox VE (Debian stable)
Table of Contents
In this tutorial, I will help you install the latest microcode in a upgradable way so that you can upgrade it via apt
command. Please don’t install packages except microcode packages from the unstable repository to avoid a broken system. This tutorial was tested on Proxmox VE 7.4 / 8.0.2 .
Microcode is the firmware used to fix bugs in the CPU. It should be installed only on the host instead of virtual machines because microcode updates are applied during boot. We need to install it from the Debian unstable repository because microcode packages in Proxmox (Debian stable) may be out of date.
Installation #
Add the unstable repository with only non-free-firmware
component.
|
|
To avoid installing other packages from the unstable repository, add this to /etc/apt/preferences.d/unstable-repo
.
|
|
Update all repositories and make sure no package will upgrade from the unstable repository.
|
|
Install one of the microcode packages according to your CPU manufacturer.
|
|
Reboot the Proxmox host.
|
|
Verify that microcode is loaded.
|
|
You should see similar output like this.
|
|
Note: The date displayed does not correspond to the version of the [intel-microcode] package installed. It does show the last time Intel updated the microcode that corresponds to the specific hardware being updated.
Alternative installation #
If you don’t want to add the unstable repository, you can download microcode packages from Debian website. Get the latest download link from amd64-microcode or intel-microcode according to your CPU manufacturer, download the package via wget 'link'
and install it via apt install ./filename.deb
.
Example:
|
|
Uninstallation #
To remove microcode and the unstable repository, run:
|
|
Motivation #
I installed Proxmox VE on a Beelink EQ591 N5105. I was satisfied at first, but some virtual machines froze from time to time, which bothered me very much. I found many N5105 CPU users had the same problem. One of the solutions is installing microcode, so I decided to install latest microcode. Though it doesn’t completely fix the problem, it really reduce freezing a lot. Besides, I also installed latest kernel in the Proxmox VE No-Subscription Repository.
Further reading #
- Microcode - Debian Wiki
- Microcode - ArchWiki
- Do I need CPU (or any) microcode in a QEMU/KVM virtual machine? - Unix & Linux Stack Exchange
- apt - How to install some packages from “unstable” Debian on a computer running “stable” Debian? - Unix & Linux Stack Exchange
- AptConfiguration - Debian Wiki
- DontBreakDebian - Debian Wiki
Beelink EQ59 N5105 (零刻 EQ59 N5105) is China version of Beelink U59 N5105. ↩︎
Comments powered by giscus. If comments are not loaded, giscus may be blocked by your Internet service provider.
Comments powered by Disqus. If comments are not loaded, Disqus may be blocked by your Internet service provider.