Physical and virual server difference


 
Thread Tools Search this Thread
Operating Systems Solaris Physical and virual server difference
# 1  
Old 11-13-2013
Physical and virual server difference

Hi,

i am trying to find whether any particular solaris server is physical or virtual....are there any commands or set of commands which only runs (or provide specific pattern ) on physical machines and provides different pattern or error on virtual one...

Is this the correct approach to find whether the machine is physical or virtual...

for VMware based virtualization its easy to find as i am using below method :
Code:
 
#!/bin/bash
prtdiag -v | grep -i "System Configuration" | grep -i virtual
if [[ $? -eq 0 ]]
then
echo "virtual machine"
else
echo "physical machine"
fi

Please suggest some better meothods or way by which i can distinguish between physical and virtual machine.
# 2  
Old 11-13-2013
For LDOMs virtualization, you can use:
Code:
virtinfo -a

# 3  
Old 11-13-2013
thanks a lot for the command..but are there any commands or set of commands which can be run only on physical or only on virtual machines...basically i am trying to find a way by which i can distingwish between physical or virtual server
# 4  
Old 11-13-2013
There is no such command at the OS level. There are plenty of ways to virtualize a Solaris server (physical domains, logical domains, zones, ovm for x86, virtualbox, VMWare, and the likes), and each one has its own more or less reliable method to identify itself.
# 5  
Old 11-13-2013
can you please help me in identifying the type of virtualization techinque used on particular machine..it will be of great help..
i am able to grab information about VMware but not aware about others..could you please guide with commands or small scripts which can determine the virtualization technology is being used on particular server Smilie
# 6  
Old 11-13-2013
Well, you already have the way to check if it is LDOMs virtualization. To check if the server is a zone, you can try running:
Code:
pgrep init

If you receive anything other than "1", it means it is a Solaris zone (this is the only situation that I know of that results in init process PID on Solaris to be other than "1").
# 7  
Old 11-14-2013
thanks a lot "bartus11"...so you mean to say if i get output of command " pgrep init" other than one that means the zone is installed..
I have machine which is virtual one based on VMware.output is as below :
Code:
bash-3.2# pgrep init
1
235

so if i run this command on any of the physical solaris server will give output as "1"? .. correct me if i am wrong somewhere..

i am trying to run command
Code:
#zoneadm list -cvv

on VMware machine output is as below:
Code:
 
bash-3.2# zoneadm list -cvv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared

Does this command output differs or has any peculiar pattern(for eg : ID filed will be nonzero) on virtualized machine done through zoning.

Is this the right approach i am taking to find out zone based virtual machine...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Run level process when Physical server goes down

Need inputs when physical server is coming down (ex- init 0) . We have a physical server in that there are couple of LDOM's and in LDOM's there are couple of Zones . In zones there are applications running . Physical Server (T4 Server) -> LDOM -> ZONES -> applications There are scripts... (1 Reply)
Discussion started by: ajayram_arya
1 Replies

2. UNIX for Dummies Questions & Answers

VM v Physical Server Speeds

HI We have been asked by our IT department to move from our current physical solution to a VM environment. I am not that clued up on VM. I looked from some benchmark tests to run so i can see a comparison between our live and new VM we have been presented. Please see below for results. To me the... (3 Replies)
Discussion started by: treds
3 Replies

3. Shell Programming and Scripting

Vm versus physical linux server

Does anyone have a script that can be run to tell you if you are on either a VM Linux or a physical Linux server? (15 Replies)
Discussion started by: bigbenn
15 Replies

4. UNIX for Advanced & Expert Users

Server is virtual or physical?

Hi All, How can I know whether the server I am connecting to is a virtual or physical one? The server might be having any Unix OS (Linux/Solaris/HP-UX etc.). Is there any system files / commands which can show these concrete information? Thanks in advance for the replies. sanzee (1 Reply)
Discussion started by: sanzee007
1 Replies

5. AIX

AIX on Virual Machine

Hello, could I install AIX on virtual machine on my desktop with Windows OS? If so how to do it? Thanks and regards, p (2 Replies)
Discussion started by: pitmod
2 Replies

6. IP Networking

I can't get access by physical name to server

Hi all I have connected new server to LAN but when I use rlogin command by server name it dose not work but by IP adderss it works. can any one tell the reason? (4 Replies)
Discussion started by: bintaleb
4 Replies

7. AIX

Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine

Hello All, Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time? Thanks, Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies

8. UNIX for Advanced & Expert Users

NMON Physical Averages display for multi CPU Server

We have some AIX Unix Servers with 4 or 6 CPU and when type this command “c” in nmon always displays each cpu % with Averages on buttom. However we have several Servers with 18 CPU's and it only shows 16 17 on main page. Does nmon have some command that would show remaining with totals for Physical... (3 Replies)
Discussion started by: groosha
3 Replies

9. Solaris

List all resources on physical host LDOM server

Hello, I have a SUN T5240 running Solaris 10 with Logical Domain Manager (v 1.0.3). You can use the "ldm" command to display current resources on the box. Is there away to display all the "physical resources" on the box(i.e.,used and unused). For example, "ldm ls" will tell me what the... (5 Replies)
Discussion started by: stephanpitts
5 Replies

10. Shell Programming and Scripting

Graphical representation of Virual Memory (on Linux)

Hi Folks Can anyone help me get a shell / any other script which will give me graphical representation of Virtual Memory statistics against the time. If someone has any script which will just provide the same without any graphical representation of Virtual Memory statistics - that also will... (5 Replies)
Discussion started by: csaha
5 Replies
Login or Register to Ask a Question