Ideally, I'd like a isRunningInVirtualbox()
function that returns True
or False
.
I'm specifically looking at getting this detection in Python. Is there a Python module or some way that can detect if the Python script is being run in Virtualbox (or ideally detect if it's being run in VMware or some other VM.)
(I'm writing a script that will warn the user if it's NOT running in a VM, so I don't really care about elaborate hacks or tricks that will try to give false positives.)