M
M
Michael2022-01-13 17:50:28
Virtualization
Michael, 2022-01-13 17:50:28

Motherboard sensors are not recognized in KVM machine, where to dig?

Run a virtual machine with sites, everything is fine.
Only not a single sensor is detected, although on the same host machine any LXC container sees them
. Where to dig into the KVM settings? Maybe some privileges should be given to Wirth machine?
It's about lm-sensors
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2022-01-13
@happy-cat

No way, this is the original goal of virtualization - to put up a barrier between hardware and software.
At least in a direct way, but you can cheat:
if information on sensors is collected by running the sensor utility and not reading the /sys/ file system, then you can replace standard applications with scripts for calling them via ssh but already at the host.
those. create file /usr/bin/sensors: of course, you need to configure passwordless authentication for [email protected]_machine upd. to get the temperature of hard drives, you need to use smartctl (also make a script running via ssh) this is a utility from the smartmontools package or the hdparm utility , but they both require root access, so you will also have to configure the host to run them via sudo
ssh [email protected]_machine /usr/bin/sensors [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question