[Interest] Detemine Run into VM

Konstantin Tokarev annulen at yandex.ru
Wed Mar 27 20:56:15 CET 2019



27.03.2019, 22:50, "Jérôme Godbout" <godboutj at amotus.ca>:
> Thanks, I have an issue that software reset my cdc_acm device inside a VM make the xhci goes nuts (on native install it work just fine). So I will print a message box when inside a VM and ask the user to unplug and replug the device instead or software reset it. On native or Windows vm I will simply do it by software and continue without user intervention. If I ever found a cause or a real fix I will remove that popup, but until then I have something that will work at least.

Note that it will only work if user has systemd installed

>
> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org> On Behalf Of Thiago Macieira
> Sent: March 27, 2019 3:41 PM
> To: interest at qt-project.org
> Subject: Re: [Interest] Detemine Run into VM
>
> systemd-detect-virt -v if you don't want to be told about being run inside containers.
>
> Note that you can also use ConditionVirtualization in your systemd units if you need to start (or not start) a service.
>
> On Wednesday, 27 March 2019 11:37:42 PDT Jérôme Godbout wrote:
>>  Nice, thanks Thiago!
>>
>>  -----Original Message-----
>>  From: Interest <interest-bounces at qt-project.org> On Behalf Of Thiago
>>  Macieira
>>  Sent: March 27, 2019 2:05 PM
>>  To: interest at qt-project.org
>>  Subject: Re: [Interest] Detemine Run into VM
>>
>>  On Wednesday, 27 March 2019 09:11:11 PDT Jérôme Godbout wrote:
>>
>>  > Is there a way to detect the application run inside a VM from Qt?
>>
>>  Run systemd-detect-virt.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

-- 
Regards,
Konstantin




More information about the Interest mailing list