Physical or Virtual

Hi,

I am on an Solaris machine "SunOS 5.10 Generic_139556-08 i86pc i386 i86pc"..how do i check if I am on an physical or an virtaul server.

Thanks.

Im no solaris expert but I am sure netstat -rn should give you some clues (like if you see interface bge0:2 or ce0:3 etc...)

Using what virtualization technology ?

Just found ONE way to find if the server is an physical or virtual.. (may not always be the right one though)
If u find vm related files under /usr/bin..then its an virtual..else its not..

cd /usr/bin
ls -ltr vm*
-r-xr-xr-x  71 root     bin         5816 Jan  8  2007 vmware-user
-r-xr-xr-x  71 root     bin         5816 Jan  8  2007 vmware-toolbox
-r-xr-xr-x   1 root     bin        36224 May 19  2008 vmstat
-r-xr-xr-x   1 root     root      138279 Mar 26 06:56 vmware-uninstall-tools.pl
-r-xr-xr-x   1 root     root      336031 Mar 26 06:56 vmware-config-tools.pl

That only holds true if the server is virtualized through a VMware product & has the Tools installed.

Does your server have any swap space allocated to it? Virtual servers tend not to, physical ones nearly always do.

That's quite an unreliable method.