1

How to identify a Solaris machine as either virtual or physical?

view story
linux-howto

http://serverfault.com – I need to design a script that needs to identify whether its running on physical box or virtual box. I have figured out some methods to help myself but possibilities are getting immense. 1)"zonename" : if the output is "Global then it is a global zone i.e physical machine and if it returns its hostname then its a local zone or virtual machine. 2) But, H/w virtualization can also be done in Solaris via Logical Domains (Ldoms). I know by running "virtinfo" I can reach out to I/O controller or service controller. But, Please can you help me figuring out exactly which machine is configured wi (HowTos)