Hi Andres,
I now noticed that all the suggested 'linux-tools' packages that popped
up in the warning message when I attempted to run "perf top" and
referencing Azure, are already displayed as installed in Synaptic
Package Manager. I guess it makes sense the packages and likely the
kernel of my machine are for Azure, as it is a Windows Hyper-V virtual
machine with the Microsoft provided Ubuntu install option.
However, if the packages are installed, why can't I run perf, or do I
need a 'linux-tools' specific command for that instead of perf?
Marco
Op 6-10-2025 om 19:09 schreef Andres Freund:
> Hi,
>
> On 2025-10-06 19:01:37 +0200, Marco Boeringa wrote:
>> Thanks for the suggestion, this seems a useful option.
>>
>> However, when I attempt to run "perf top" in a Terminal window, I get the
>> following warning:
>>
>> WARNING: perf not found for kernel 6.14.0-1012
>>
>> I also see a suggestion to install the Azure linux-tools. However, if I type
>> 'linux-tools' as search keyword in Synaptic Package Manager, I see a whole
>> bunch of 'linux-tools', e.g. azure/aws/gcp/gke, which also include kernel
>> version build numbers (at least that is what I assume they are).
>>
>> What version do you suggest I install for an ordinary locally running Ubuntu
>> 24.04 VM?
> There are meta-packages to install linux-tools for the right
> version. E.g. linux-tools-virtual. Unfortunately ubuntu has multiple "kernel
> variants" (like -virtual) that you still have to choose between.
>
> You can figure out which base kernel you have with "dpkg -l|grep linux" or
> such.
>
> Greetings,
>
> Andres