linux · ppc64le · x86_64

linux: Am I running in a VM?

I had to identify which kind of environmet my Linux was running (bare-metal or virtualized), to do so I did the following:


root@rpsene1:~# lshw -class system
rpsene1.fyre.ibm.com
description: Computer
product: IBM pSeries (emulated by qemu)
width: 64 bits

You can also do:


root@rpsene1:~# systemd-detect-virt
kvm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s