I am following some tutorials for writing Windows drivers and testing my results on a VirtualBox guest. One of the tutorials involves using the Win32 IOCTL to pass basic information about CPU core temperature to a user-mode application. I don't want to run this WIP demo driver on my bare metal to test if it can communicate in real time correctly, so how can I manually adjust the cpu temperature reported by VirtualBox?
Asked
Active
Viewed 802 times
1 Answers
1
Per the answer SuperUser question below, it is not possible to fake a temperature:
Not sure how you're even getting a temp on a VirtualBox guest, as WMI (at least) under VirtualBox returns "not supported" for temp sensor queries.

Erik Knowles
- 999
- 7
- 15
-
That questions answer doesn't really fit either of our questions. His answer is stating that it's not possible to pass information about the bare cpu through to the guest OS, but our questions are asking how can we modify the sample information on the VM's virtual CPUs. – JSON Brody Oct 26 '20 at 15:11
-
@JSONBrody You're correct that the summary I posted didn't answer the OP's question, so I've deleted it. The answer given in the link, however, is germane. – Erik Knowles Oct 26 '20 at 20:44
-
I disagree. His answer simply states that the virtual environment is not allowed to read from the physical sensors (paraphrased). When I init the driver I wrote, I do not get any indication for a lack of support. Rather, an unchanging constant is reported. It is due to this that I believe it is a set property of the virtual environment that should be trivial to set from some obscure VirtualBox configuration. – JSON Brody Oct 26 '20 at 21:04