Using dmidecode

Hi all, quick question. I am running BalenaOS on generic x86 industrial PCs. When I was running Ubuntu on these things I used to use dmidecode in order to read some manufacturer details such as device serial number. Is there a way to read this info inside a container? dmidecode requires access to /dev/mem.

Hi @pinter. I believe that you can use dmidecode in a privileged container.

Or if you just need to run it once you can try this from the HostOS command line:

balena run --privileged debian bash -c "apt update && apt -y install dmidecode && dmidecode"
1 Like