uname -i for xvm shows different output. (At least for paravirtualized
domains.)
VirtualBox is probably not distinguishable easily.
Not sure about zones, but I suspect certain key devices may be absent
(/dev/mem) as a clue.
-- Garrett
Johan Hartzenberg wrote:
> Are you referring to any specific kind of VM? (xvm, Zones, Ldoms,
> VirtualBox?)
>
> What does "prtdiag" tell you when run in a VM?
>
> Sorry, I have never run Solaris in a VM long enough to check this.
>
> Other commands which may give hints:
> uname -X (Look at the Machine line)
> prtconf (Look at the System Configuration line)
>
> If all else fails, look at the messages from dmesg for something
> distinctive about your hardware.
>
> For zones specifically the command hostname and zonename will
> *usually) match in a Zone. In the global zone, zonename returns "global"
>
> _J
>
>
>
> On Sat, Aug 9, 2008 at 10:24 AM, Paresh Devalekar
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi,
>
> I have one requirement, where I have to check, whether machine is
> physical or VM (virtual machine)?
>
> Anyone have idea, how to know it? Is there is any command or
> function which can give me this info?
>
> Regards,
> Paresh
>
>
> This message posted from opensolaris.org <http://opensolaris.org>
> _______________________________________________
> networking-discuss mailing list
> [email protected]
> <mailto:[email protected]>
>
>
>
>
> --
> Any sufficiently advanced technology is indistinguishable from magic.
> Arthur C. Clarke
>
> Afrikaanse Stap Website: http://www.bloukous.co.za
>
> My blog: http://initialprogramload.blogspot.com
>
> ICQ = 193944626, YahooIM = johan_hartzenberg, GoogleTalk =
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>, AIM = JohanHartzenberg
> ------------------------------------------------------------------------
>
> _______________________________________________
> networking-discuss mailing list
> [email protected]
_______________________________________________
networking-discuss mailing list
[email protected]