On 07/08/2014 13:10, Carsten Haitzler (The Rasterman) wrote:
> On Thu, 07 Aug 2014 12:54:00 +0200 Alan McKinnon <alan.mckin...@gmail.com> 
> said:
> 
>> On 07/08/2014 09:03, Carsten Haitzler (The Rasterman) wrote:
>>>>> is there a nice simple way to know you have a vbox virtual driver in
>>>>>>> the kernel and are a guest? i can put in something to veto it (eg
>>>>>>> something in /proc or /sys - some file that exists only inside vbox if
>>>>>>> the guest driver is there - i can put in a simple stat for it and
>>>>>>> avoid if there)?
>>>>>>>
>>>>>
>>>>> If I'm not mistaken, /proc/cpuinfo string output should say something
>>>>> to the effect that's it's a vbox, but I don't have one to check to
>>>>> know for sure... kvm vms say bochs as the vendor_id or model name
>>>>> (IIRC).
>>> something more exact - specifically something that tells me the vbox guest
>>> drivers/modules are enabled. also the above would neeed more specifics.
>>>
>>
>>
>> /proc/modules
>> /sys/modules/vboxguest
> 
> this 2nd one sounds good - so if thats there, the vbox GUEST os has it (inside
> vbox) when you load special vbox guest drivers in the kernel?


AIUI, /sys/modules/ is like an expanded $(lsmod) and subdirs exist when
the modules are loaded. So it sounds like exactly what you need.


-- 
Alan McKinnon
alan.mckin...@gmail.com


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to