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
pull/26624/head
James Andrewartha 7 years ago committed by Adrian Likins
parent 05e5698472
commit 2e6ff97d06

@ -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

Loading…
Cancel
Save