Re: Is it possible to detect a virtual machine
Re: Is it possible to detect a virtual machine
- Subject: Re: Is it possible to detect a virtual machine
- From: Matthew Kozak <email@hidden>
- Date: Sat, 02 Mar 2013 13:49:48 -0500
This depends on the virtualization technology in question:
http://www.meetup.com/CocoaHeads-Stockholm/messages/boards/thread/26497882
-and-
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458
...the assumptions of which can each be their own moving targets (pardon the off-topic, but generically relevant, Windows reference):
http://stackoverflow.com/questions/1370586/detect-if-windows-is-running-from-within-parallels
Is there a more specific reason/goal, which might yield a more reliable and lasting testing method than trying to deduce a vm environment, generally?
Thanks,
-Matt
On Mar 2, 2013, at 11:58 AM, Jean Suisse wrote:
> I don't have the answer to your question, but here is a thought:
> Virtual machines, such as VMWare, present some generic hardware to the OS they run. Could you detect the available hardware, check the vendor, and then decide wether or not you are running in a virtual environment ?
>
> Jean
>
> -----------
> Jean Suisse
> Institut de Chimie Moléculaire de l’Université de Bourgogne
> (ICMUB) — UMR 6302
>
>
> On 2 mars 2013, at 17:17, Kjell Nilsson <email@hidden> wrote:
>
>> Hi
>>
>> I am wondering if it is possible to detect if my Cocoa Application is running in a virtual machine like VMWare, VirtualBox or Parallells Desktop from inside my app.
>>
>> Kind regards
>> --kerusan
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden