OPNsense Forum

English Forums => 24.7, 24.10 Series => Topic started by: DEC670airp414user on September 15, 2024, 04:05:52 PM

Title: have you updated your os-cpu-microcode for your select processor?
Post by: DEC670airp414user on September 15, 2024, 04:05:52 PM
https://forum.opnsense.org/index.php?topic=42355.msg209137#msg209137

its been available for almost a month.

I just updated my AMD Dec670.  so far no issues after the reboot. 
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: julsssark on September 15, 2024, 06:38:23 PM
Yes, on my Protectli FW4B with Intel Celeron J3160. No problems.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: nodakbarnes on September 16, 2024, 12:09:18 AM
Yes, working fine on Protectli FW2B with Intel Celeron J3060.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: computeralex92 on September 16, 2024, 10:01:29 PM
I used the microcode-package before the official plugin, no problems so far with both options.

CPU: Intel N100
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: troplin on September 17, 2024, 09:52:15 PM
I also installed it without problems but I'm not sure I understand how the plugin works exactly. Is it a one-time installation or does it keep installing microcode updates in the future?

Also, is there a way to find out if there was actually something installed? As far as I can tell, there's a single plugin for all intel CPUs, how do I know if it applies to my specific model?
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: computeralex92 on September 18, 2024, 07:32:19 AM
Quote from: troplin on September 17, 2024, 09:52:15 PM
I also installed it without problems but I'm not sure I understand how the plugin works exactly. Is it a one-time installation or does it keep installing microcode updates in the future?

Also, is there a way to find out if there was actually something installed? As far as I can tell, there's a single plugin for all intel CPUs, how do I know if it applies to my specific model?

The Plug-In installs basically the FreeBSD microcode package (specific for intel or AMD CPUs) and setup some config.
Therefore, with every reboot the update will be applied if for the used CPU there is an update included.

You can check if there was an update applied if you connect via SSH and run the dmesg command.
Quite early in the output there is a line saying "Microcode was updated from x to y".

And no, there is no further maintenance etc. needed, because if there is a newer microcode package merged from FreeBSD base, you will get it with the next opnsense update.
After that, automatically the next reboot use a maybe included newer microcode.

And btw.: as long you want to use the newer microcode, you need to have the plugin installed.
As usual, this microcode plugin is only able to update the CPU on runtime, so no permanent update within the CPU is happening (only a BIOS update can do that)
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: troplin on September 18, 2024, 05:26:50 PM
Oh wow thanks a lot for the detailed answer, that clears it up. Especially the last paragraph.

Not being familiar with FreeBSD in general I just assumed it was a permanent update and it didn't even cross my mind that it could work the way it does.
I might even have removed it at some point in the future not knowing that this would undo it completely.

This might be common knowledge but I think it wouldn't hurt to add a short explanation to the plugin description @franco
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: franco on September 18, 2024, 08:08:42 PM
If anything is missing from https://docs.opnsense.org/manual/cpu-microcode.html that might be good to add.


Cheers,
Franco
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: vk2him on September 25, 2024, 10:14:45 AM
Quote from: nodakbarnes on September 16, 2024, 12:09:18 AM
Yes, working fine on Protectli FW2B with Intel Celeron J3060.

I have a Protectli VP2410 with a Intel Celeron J4125 - which os-cpu-microcode should I select as the OPNsense version architecture is AMD64 while it has Intel CPU? Thanks
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: Seimus on September 25, 2024, 10:50:14 AM
Quote from: vk2him on September 25, 2024, 10:14:45 AM
Quote from: nodakbarnes on September 16, 2024, 12:09:18 AM
Yes, working fine on Protectli FW2B with Intel Celeron J3060.

I have a Protectli VP2410 with a Intel Celeron J4125 - which os-cpu-microcode should I select as the OPNsense version architecture is AMD64 while it has Intel CPU? Thanks

Its per CPU as written, yours is Intel so the Intel os-cpu-microcode-intel.

Regards,
S.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: kevindd992002 on October 15, 2024, 12:25:27 PM
Is this microcode update beneficial if opnsense is running on a proxmox vm?
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: Patrick M. Hausen on October 15, 2024, 12:59:45 PM
On the Proxmoxhost? Probably. You cannot update the CPU microcode from a VM.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: kevindd992002 on October 15, 2024, 01:01:57 PM
No, I mean from the plugins page in opnsense that's on a proxmox vm. So that's a no then. I have the microcode updated on the host already.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: Patrick M. Hausen on October 15, 2024, 01:03:45 PM
The microcode update updates the microcode in the processor hardware itself. That does not make sense in a VM at all. The VM does not have access to the CPU. Only the hypervisor host does.
Title: Re: have you updated your os-cpu-microcode for your select processor?
Post by: kevindd992002 on October 15, 2024, 01:08:18 PM
Got it. Thanks.