]>
git.ipfire.org Git - oddments/fireinfo.git/blob - fireinfo/hypervisor.py
5 class Hypervisor(object):
7 self
.__info
= _fireinfo
.get_hypervisor()
12 Returns the name of the hypervisor vendor.
17 # If the script already returned a hypervisor, we return the name.
18 if self
.__info
["hypervisor"]:
19 return self
.__info
["hypervisor"]
21 # XXX fill in some code to detect hypervisors, that do
29 Returns if the host is running in full virt mode or
30 if it is running in a paravirtualized environment.
35 return self
.__info
["virtype"]
40 Returns true if the host is running in a virtual environment.
43 return _fireinfo
.is_virtualized()
46 if __name__
== "__main__":
49 print "Vendor:", h
.vendor
51 print "Virtual:", h
.virtual