[Interest] Detemine Run into VM

Jérôme Godbout godboutj at amotus.ca
Wed Mar 27 17:20:20 CET 2019


Ok, cool, I was more looking for Linux in fact, the Windows VM doesn’t show the problems with cdc_acm (I have tons of other problems with Windows 7 and cdc_acm, but this one issue is only under Linux when it run inside a VM Virtual Box).

From: Andy <asmaloney at gmail.com>
Sent: March 27, 2019 12:15 PM
To: Jérôme Godbout <godboutj at amotus.ca>
Cc: interest <interest at qt-project.org>
Subject: Re: [Interest] Detemine Run into VM

For VMWare, I wrote this up a while ago:

  https://asmaloney.com/2018/09/code/how-to-tell-if-your-windows-application-is-running-inside-vmware/

Maybe something similar could be used for VirtualBox?

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney<https://twitter.com/asmaloney>



On Wed, Mar 27, 2019 at 12:11 PM Jérôme Godbout <godboutj at amotus.ca<mailto:godboutj at amotus.ca>> wrote:
Is there a way to detect the application run inside a VM from Qt? I have a different behavior on how I need to handle a cdc_acm under VirtualBox (and possibly VMWare, but I haven’t tested yet). I was looking at QSysInfo, but I’m nont sure I will be able to confirm this with it.

Else I can run a bash command:
grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM"

But I’m looking at a more clean way to detect I run inside VirtualBox. Any idea?


[36E56279]
une compagnie  [cid:image002.jpg at 01D4E497.70A7D970]
RAPPROCHEZ LA DISTANCE

Jérôme Godbout
Développeur Logiciel Sénior /
Senior Software Developer

p: +1 (418) 800-1073 ext.:109

amotus.ca<http://www.amotus-solutions.com/>
statum-iot.com<http://statum-iot.com/>
[cid:image003.png at 01D4E497.70A7D970]<https://www.facebook.com/LesSolutionsAmotus/> [cid:image004.png at 01D4E497.70A7D970] <https://www.linkedin.com/company/amotus-solutions/>  [cid:image005.png at 01D4E497.70A7D970] <https://twitter.com/AmotusSolutions>  [cid:image006.jpg at 01D4E497.70A7D970] <https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>





_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 6751 bytes
Desc: image001.jpg
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1016 bytes
Desc: image002.jpg
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 483 bytes
Desc: image003.png
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 506 bytes
Desc: image004.png
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 500 bytes
Desc: image005.png
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 713 bytes
Desc: image006.jpg
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190327/181bd876/attachment-0002.jpg>


More information about the Interest mailing list