Hi all,
I want to detect if machine contains virtual OS or not for linux 64.
Do VMware itself provides such a tools,
If yes, How can we get that?
Thanks in Advance ,
Welcome to the forums! - I believe the only way you can tell if the O/S is running on virtual hardware is by looking at the hardware drivers that get loaded particularly if VMware tools is loaded - I know this is the only way you can see it in windows -
If you find this or any other answer useful please consider awarding points by marking the answer helpful or correct -
Use /usr/sbin/dmidecode if you have it. Grep for VMware. Since it's virtualized hardware, it will give you the Virtual maker....
Have a lok at http://chitchat.at.infoseek.co.jp/vmware/vmtools.html#vmw - there is a linux port
> I believe the only way you can tell if the O/S is running on virtual
hardware is by looking at the hardware drivers that get loaded
particularly if VMware tools is loaded - I know this is the only way
you can see it in windows -
Nope - on Windows there are several ways to find out if you are running in a VM other than looking a the virtual hardware.
___________________________________
description of vmx-parameters:
Your discussion has been moved to the Virtualization Technology & Industry forum.
Dave Mishchenko
VMware Communities User Moderator
Hello,
The best way is to look for the VMware backdoor. This is a well known communication path that VMware Tools use. You can also look at the base hardware presented to the VM. VMs have a very distinct foot print.
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/
Blue Gears Blogs - http://www.itworld.com/ and http://www.networkworld.com/community/haletky
As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization
Hi,
As your suggestion I got the code for VMWare backdoor. But It doesn't work
on Linux 64. I mean the inline assembly code is not getting compiled.
Throwing these errors:
/tmp/ccjS8o5l.s:10: Error: suffix or operands invalid for `pusha'
/tmp/ccjS8o5l.s:10: Error: suffix or operands invalid for `push'
/tmp/ccjS8o5l.s:10: Error: suffix or operands invalid for `pop'
/tmp/ccjS8o5l.s:10: Error: suffix or operands invalid for `popa'
/tmp/ccjS8o5l.s:23: Error: suffix or operands invalid for `pusha'
/tmp/ccjS8o5l.s:23: Error: suffix or operands invalid for `push'
/tmp/ccjS8o5l.s:23: Error: suffix or operands invalid for `pop'
/tmp/ccjS8o5l.s:23: Error: suffix or operands invalid for `popa'
/tmp/ccjS8o5l.s:35: Error: suffix or operands invalid for `pusha'
/tmp/ccjS8o5l.s:35: Error: suffix or operands invalid for `push'
/tmp/ccjS8o5l.s:35: Error: suffix or operands invalid for `pop'
/tmp/ccjS8o5l.s:35: Error: suffix or operands invalid for `popa'
Is there any Linux 64 specific code, which will detect VM?
Thanks and Regards,
Bharati
Hello,
I would look at the open source vmware tools for help on this. http://open-vm-tools.sourceforge.net/
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/
Blue Gears Blogs - http://www.itworld.com/ and http://www.networkworld.com/community/haletky
As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization