How to detect if the script is running on a virtual machine?
问题 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