• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How do you check Linux machine is Physical or Virtual remotely?

    There is no hard and fast rule to check whether the machine is physical or virtual but still we do have some commands which can be used for the some purpose.

    NOTE: There might be other commands as well but these are the few of my knowledge.

    The command used to view all the required hardware related information for any Linux machine is
    # dmidecode
    But the output would be very long and hard to find out the specific details looking for. So, lets narrow it down

    Physical Servers

    # dmidecode -s system-product-name
    System x3550 M2 -[7284AC1]-

    As you can see in one of my servers I see the above information which says the machine I am using is IBM System X

    Now to get more details about the system
    # dmidecode | less (And search for "System Information")
    System Information
            Manufacturer: IBM
            Product Name: System x3550 M2 -[7284AC1]-
            Version: 00
            Wake-up Type: Other
            SKU Number: XxXxXxX
            Family: System x

    Some more examples for different product

    # dmidecode  -s system-product-name
    ProLiant BL460c G6

    # dmidecode | less
    System Information
            Product Name: ProLiant BL460c G6
            Version: Not Specified
            Wake-up Type: Power Switch
            Family: ProLiant

    For a IBM blade chasis
    # dmidecode -s system-product-name
    BladeCenter HS22 -[5940PRX]-

    # dmidecode | less
    System Information
            Product Name: BladeCenter HS22 -[5940PRX]-
            Version: 06
            Wake-up Type: Other
            SKU Number: XxXxXxX
            Family: System x

    Virtual Servers

    # dmidecode -s system-product-name
    VMware Virtual Platform

    # dmidecode | less
    System Information
    VMware, Inc.
            Product Name: VMware Virtual Platform
            Version: None
            Wake-up Type: Power Switch
            SKU Number: Not Specified
            Family: Not Specified

    On a virtual server running VMware you can run the below command to verify
    # lspci | grep -i vmware
    00:0f.0 VGA compatible controller: VMware SVGA II Adapter

    I would appreciate if you can enlighten me with any more commands which you know in the comment section.

    Follow the below links for more tutorials

    Step by Step Linux Boot Process Explained In Detail
    RAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    15 tips to enhance security of your Linux machine
    How does a DNS query works when you type a URL on your browser?
    How to create password less ssh connection for multiple non-root users
    How to create user without useradd command in Linux
    How to give normal user root privileges using sudo in Linux/Unix
    How to do Ethernet/NIC bonding/teaming in Red Hat Linux
    How to install/uninstall/upgrade rpm package with/without dependencies
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    How to secure boot loader (grub menu) with password in RHEL 6
    Understanding Load Average in Linux and when to be worried about it?

    Deepak Prasad

    Deepak Prasad is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How do you check Linux machine is Physical or Virtual remotely? How do you check Linux machine is Physical or Virtual remotely? Reviewed by Deepak Prasad on Thursday, June 12, 2014 Rating: 5


    1. Good stuff.. really helped me a lot

    2. I learned something from this post which helped a lot..Keep posted stuffs like this

    3. I have tried virt-what to know if the OS is Virtual. This command gives the output of the virtualization software like vmware or KVM. Regards, K


    Powered by Blogger.