ProcMon-for-Linux icon indicating copy to clipboard operation
ProcMon-for-Linux copied to clipboard

WSL2 Ubuntu 20.04: Exception is thrown

Open valsamis-d opened this issue 3 years ago • 4 comments

Hi,

I followed the steps below:

wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

and then

sudo apt-get update
sudo apt-get install procmon

but when I do sudo procmon I get the following runtime error:

image

Thank you Dimitrios

valsamis-d avatar Aug 02 '22 08:08 valsamis-d

Hey @valsamis-d, please try the following and rerun procmon: sudo mount -t debugfs nodev /sys/kernel/debug

MarioHewardt avatar Aug 02 '22 15:08 MarioHewardt

@MarioHewardt tried the above, and now I get the following RTE:

image

valsamis-d avatar Aug 02 '22 17:08 valsamis-d

Ah, with WSL2 it looks like you will need to enable kernel headers. Please look over at https://github.com/microsoft/WSL2-Linux-Kernel for build instructions.

MarioHewardt avatar Aug 02 '22 21:08 MarioHewardt

try this to fix the kernel headers: https://gist.github.com/nopa12/c216d12d7ae0180d14307df3d95f37e4#easy-solution

nopa12 avatar Sep 21 '22 14:09 nopa12