Detect virtualization facts when VM on Nutanix AHV hypervisor (#58327)
- /sys/devices/virtual/dmi/id/product_name == 'AHV' - /sys/devices/virtual/dmi/id/sys_vendor == 'Nutanix'
This commit is contained in:
parent
28019233db
commit
0647c52368
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ class LinuxVirtual(Virtual):
|
|||
|
||||
product_name = get_file_content('/sys/devices/virtual/dmi/id/product_name')
|
||||
|
||||
if product_name in ('KVM', 'Bochs'):
|
||||
if product_name in ('KVM', 'Bochs', 'AHV'):
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
return virtual_facts
|
||||
|
||||
|
@ -117,7 +117,7 @@ class LinuxVirtual(Virtual):
|
|||
|
||||
sys_vendor = get_file_content('/sys/devices/virtual/dmi/id/sys_vendor')
|
||||
|
||||
KVM_SYS_VENDORS = ('QEMU', 'oVirt', 'Amazon EC2', 'DigitalOcean', 'Google', 'Scaleway')
|
||||
KVM_SYS_VENDORS = ('QEMU', 'oVirt', 'Amazon EC2', 'DigitalOcean', 'Google', 'Scaleway', 'Nutanix')
|
||||
if sys_vendor in KVM_SYS_VENDORS:
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
return virtual_facts
|
||||
|
|
Loading…
Reference in a new issue