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
description: Computer
product: IBM pSeries (emulated by qemu)
width: 64 bits

You can also do:

root@rpsene1:~# systemd-detect-virt


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s