From: Michael Tremer Date: Sun, 12 Dec 2010 20:17:06 +0000 (+0100) Subject: Check if bios vendor is "innotek GmbH" to get if the system is virtualized. X-Git-Tag: v0.11~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5060bde8e796acad14ae158b42fb7ae1263f0ba2;p=oddments%2Ffireinfo.git Check if bios vendor is "innotek GmbH" to get if the system is virtualized. --- diff --git a/fireinfo/hypervisor.py b/fireinfo/hypervisor.py index b659d6e..46b58e1 100644 --- a/fireinfo/hypervisor.py +++ b/fireinfo/hypervisor.py @@ -64,7 +64,8 @@ class Hypervisor(object): Otherwise: false. """ return _fireinfo.is_virtualized() or \ - "hypervisor" in self.system.cpu.flags + "hypervisor" in self.system.cpu.flags or \ + self.system.bios_vendor == "innotek GmbH" if __name__ == "__main__":