Lately I’ve been responsible for migrating quite some VMs from a Hyper-V platform to vSphere. One of the applications I migrated started experiencing some intermittent network issue. And sure enough it turned out the old VM was started again. This left me wondering; how can I check what hypervisor I’m running on.

Now with a Windows VM is quite easy. You just open a device manager and check for system devices related related to either Hyper-V or VMware. But I didn’t know how to check this with linux. This is actually a pretty easy thing to do. It’s just a matter of running dmesg and filtering the output.

Without any filters a VM on Hyper-V will return the following output.

And with vSphere things look like this.

If you specifically want to filter the line where the hypervisor is shown simply type

dmesg | grep Hypervisor

And you know for sure what hypervisor your linux VM is running on.


Just out of curiosity I booted a linux VM on VirtualBox. If you just select the line wich says ‘Hypervisor detected’ you might be under the impression that your VM is running on a KVM platform.

So you might want to include the DMI line as well using something like this.

dmesg | egrep 'DMI|Hypervisor'

Rudolf Kleijwegt

I am an experienced IT professional with over 20 years of hands-on experience designing, deploying, and maintaining IT infrastructure in both enterprise and service provider environments. My skills span across Linux and Windows and a multitude of server applications, allowing me to excel in a wide range of IT roles. Currently, my primary focus is on Software Defined DataCenter and DevOps. I am passionate about staying up to date with the latest trends in the industry to achieve superior outcomes.


Jose Leonardo · November 15, 2019 at 3:49 pm

dmidecode -t System | egrep ‘Manufacturer|Product’

Rudolf Kleijwegt · November 28, 2019 at 11:41 am

That’s a great tip Jose! Thanks for pointing it out. Much appreciated.

John Pietrangelo · November 2, 2022 at 3:21 pm

How do you find the hostname of the hypervisor that the VM is running on?

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *