Detect UEFI VMware guests (#26590)

VMware provides a different DMI product name for VMs booted via UEFI vs BIOS.

VMware provides a different DMI product name for VMs booted via UEFI ('VMware7,1') vs BIOS ('VMware Virtual Platform')

Fixes #26517
This commit is contained in:
James Andrewartha 2017-07-11 02:08:59 +08:00 committed by Adrian Likins
parent 05e5698472
commit 2e6ff97d06

View file

@ -92,7 +92,7 @@ class LinuxVirtual(Virtual):
virtual_facts['virtualization_role'] = 'guest'
return virtual_facts
if product_name == 'VMware Virtual Platform':
if product_name in ['VMware Virtual Platform', 'VMware7,1']:
virtual_facts['virtualization_type'] = 'VMware'
virtual_facts['virtualization_role'] = 'guest'
return virtual_facts