Johan Hartzenberg wrote:
> Are you referring to any specific kind of VM? (xvm, Zones, Ldoms, 
> VirtualBox?)
For PV Solaris domains running on top of Xen, you'll see 'i86xpv' as the 
output of 'uname -i'.
If you'd like to probe further about whether you're running as dom0 or 
domU, you should read /dev/xen/domcaps as described in xVM(5).

I'm not sure how to tell if you're running as a full-virtualized VM. 
But, in that case, maybe you are not supposed to know that you're a VM :).

Max
>
> 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]

Reply via email to