Most of the time we access and manage servers remotely. We will not always have physical access of our server. As a Linux Administrator, sometimes you need to know whether the machine you’re accessing is physical or virtual if you need to fix anything on system. There are may ways to identify if your system is physical or virtual. Here are some simpler ways to do that:
METHOD 1: Using lshw command
# yum install epel-release
# yum install lshw
# lshw -class system
The output would be like:
[root@test ~]# lshw -class system
vendor: Red Hat
version: RHEL 6.6.0 PC
width: 64 bits
(This is the result from virtual machine)
[root@dedi ~]# lshw -class system
description: Rack Mount Chassis
product: ProLiant DL320e Gen8 (675597-B21)
width: 64 bits
(This is the result from Physical Machine)
METHOD 2: Using virt-what
# yum install virt-what
The output would be:
[root@test ~]# virt-what
NOTE: If there is no result after running this command, the machine is physical.
- 0 Users Found This Useful
How to Remove Files Use either the rm (remove) or unlink command to remove (or delete) a file...
GeoIP helps you to locate a computer’s geographic location by identifying that computer...
To add/remove additional IP manually 1. Run the ip command to display the current ip address...
YUM Repositories are the warehouses of Linux software (RPM package files). RPM package file is a...
Both MySQL and MariaDB are the most popular open source database systems meant for Linux based...