3

On a virtual machine there is no temperature information for my CPU.

In some case, some software match this temperature For experience purpose I need to "mock" a temperature How can I do that ? (I'm using virtual box)

Dave
  • 25,405
Meds
  • 359
  • 2
    I don think so. In a VM the OS is seeing virtualized hardware only, not the actual hardware. –  Nov 11 '18 at 01:11
  • 4
    It might be helpful to better understand what software you are attempting to use in a virtual machine that needs to get temperature data. – Giacomo1968 Nov 11 '18 at 01:47

1 Answers1

0

You don't specify your virtualization product and operating system, but my answer probably relates to all of them: Not possible.

All virtualization products support a virtual CPU model that was common many years ago and supported by almost all operating systems at that time, and there is no way to pass-through the computer's real CPU.

Therefore the VM cannot access the physical CPU (or motherboard) for reading sensors. Actually, letting the VM break out into the physical machine is an enormous security risk that no virtualization product could ever allow.

The only possibility I have found is under ESX/Vsphere, as detailed in the post How to monitor CPU heat inside VM inside ESX?, but this is probably not relevant for you.

harrymc
  • 480,290