I don't think the question needs any explanation. I'm writing a software that can boot virtual machines to simulate a network. I would like to disable this feature if the software is already running on a virtual machine.
I already read this post: How to detect if my application is running in a virtual machine? But I need to do it on Linux and that post covers only Windows.
I'm tagging it as a Perl
question as I've to do it in Perl, but probably there are some file in proc
or somewhere else to check and it's the same for all languages. I don't know actually.
I'm interested in detecting mainly VirtualBox and KVM, as those are the VMs I'm using.
So, any suggestion?