Solved

Linux - how to distinguish between dedicated server from VPS or cloud?

Posted on 2011-09-12
9
370 Views
Last Modified: 2012-05-12
How to distinguish between physical (dedicated) server from VPS or cloud?

Which utility can give me such information? Or maybe system call and so on?
0
Comment
Question by:longjumps
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36524612
Your question isn't very clear.

VPS -- dedicated machine (could be physical or virtual)
Cloud -- a cluster of machines that act as a single server

However, these days the term "Cloud" is so abused and misused that who knows what is really on the other end of any "Cloud" services.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36524640
I should clarify, that technically a VPS is a virtual server, but it really depends on how your provider has it all setup, contact them.
0
 
LVL 1

Author Comment

by:longjumps
ID: 36524857
The question is really the following.

Let's say I am working inside of some Windows Server.
How can I know if it is physical, VPS or cloud?

Is the some definitions of utility to be run that can tell me where am I?
0
 
LVL 1

Author Comment

by:longjumps
ID: 36524899
I mean in Linux.

The question is really the following.

Let's say I am working inside of some Linux Server.
How can I know if it is physical, VPS or cloud?

Is the some definitions or utility to be run that can tell me where am I?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 7

Accepted Solution

by:
mchkorg earned 333 total points
ID: 36527886
Hi
Probably with lshw or lspci and a bit of grep to get, for example, your motherboard manufacturer.

I've tested on a virtual Debian, running on VMware ESXi, and on a physical one

# lshw | grep vendor

returns either : "Supermicro" or "VMware, Inc".
Guess which one is virtual :)

0
 
LVL 7

Assisted Solution

by:mchkorg
mchkorg earned 333 total points
ID: 36527917
You can elaborate, based on this, to get the information.
Not an automatic way, but I guess you just have to check for some servers, one time.
0
 
LVL 1

Author Comment

by:longjumps
ID: 36556110
Thanks for information.

These commands are supposed to be run from "root" account.
Also they are using /dev/mem

Is there something that can be run from regular and not using  /dev/mem?
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 36560000
None that I'm aware of.
Some files are readable in /proc and might contain the information you need, but I doubt it.
lshw is just some sort of a frontend for these information.

dmesg is unreadable for non-root, also



A intermediate solution would be to have a sudo privilege for lshw only. If you can't get root access but the root user can give you lshw via sudo.

No other idea, sorry
0
 
LVL 34

Assisted Solution

by:PsiCop
PsiCop earned 167 total points
ID: 36570927
Look at my EE Profile for a link to my personal website.

On my Projects page, currently up at the top, is a link to my paper entitled Probing System Hardware in Linux. Read that - it includes how to differentiate an OS running directly on physical hardware vs. virtualized.

If you have any questions after reading that, let me know.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dropbox doesnt syscronize 7 72
Ubuntu 14.04 w/kernel 4.4 on a dual boot system (Linux/W10) 2 62
Office365 : is it a cloud hosting 4 78
aws s3 access over vpn only 4 64
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now