Jira (FACT-1664) Add support for vmware virtualization detection

3 views
Skip to first unread message

Casey Williams (JIRA)

unread,
Jun 28, 2017, 7:00:03 PM6/28/17
to puppe...@googlegroups.com
Casey Williams created an issue
 
Facter / Task FACT-1664
Add support for vmware virtualization detection
Issue Type: Task Task
Assignee: Casey Williams
Created: 2017/06/28 3:58 PM
Priority: Normal Normal
Reporter: Casey Williams
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Casey Williams (JIRA)

unread,
Jun 29, 2017, 11:23:02 AM6/29/17
to puppe...@googlegroups.com
Casey Williams updated an issue
Change By: Casey Williams
Facter currently uses the vmware executable to figure this out, which seems adequate.

Casey Williams (JIRA)

unread,
Jun 29, 2017, 5:26:02 PM6/29/17
to puppe...@googlegroups.com
Casey Williams updated an issue
Facter Linux: when run as root, facter  currently  uses  detects vmware with virt-what, which can find it via 1)  the  cpuid instruction or 2) the DMI manufacturer. Without root, facter will use the {{  vmware }}  executable to figure this out . If that somehow fails ,  which seems adequate  it can detect vmware via tha product_name fact (DMI) as well .

Solaris: facter runs /usr/sbin/prtdiag and attempts to match several product names (including vmware) to each line of output until it finds something useful.

Windows: via wmi

Mac OS: facter looks for vmware in the the sp_machine_model fact

Casey Williams (JIRA)

unread,
Jun 29, 2017, 5:27:02 PM6/29/17
to puppe...@googlegroups.com
Casey Williams updated an issue
Linux: when run as root, facter currently detects vmware with virt-what, which can find it via 1) the cpuid instruction or 2) the DMI manufacturer. Without root, facter will use the {{vmware}} executable to figure this out. If that somehow fails, it can detect vmware via  tha  the  product_name fact (DMI) as well.

Solaris: facter runs
 {{  /usr/sbin/prtdiag }}  and attempts to match several product names (including vmware) to each line of output until it finds something useful.


Windows: via wmi

Mac OS: facter looks for vmware in the the sp_machine_model fact

Casey Williams (JIRA)

unread,
Jul 5, 2017, 4:38:03 PM7/5/17
to puppe...@googlegroups.com
Casey Williams updated an issue
Linux: when run as root, facter currently detects vmware with virt-what, which can find it via 1) the cpuid instruction or 2) the DMI manufacturer. Without root, facter will use the {{vmware}} executable to figure this out. If that somehow fails, it can detect vmware via the product_name fact (DMI) as well.


Solaris: facter runs {{/usr/sbin/prtdiag}} and attempts to match several product names (including vmware) to each line of output until it finds something useful.

Windows: via wmi

Mac OS: facter looks for vmware in the the  {{  sp_machine_model }}  fact  (which itself comes from system_profiler's {{model_identifier}})

Branan Riley (JIRA)

unread,
Jul 27, 2017, 2:07:06 PM7/27/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Fix Version/s: FACT 3.y

Casey Williams (JIRA)

unread,
Aug 1, 2017, 6:21:03 PM8/1/17
to puppe...@googlegroups.com
Casey Williams updated an issue
Change By: Casey Williams
Linux: when run as root, facter currently detects vmware with virt-what, which can find it via 1) the cpuid instruction or 2) the DMI manufacturer. Without root, facter will use the {{vmware}} executable to figure this out. If that somehow fails, it can detect vmware via the product_name fact (DMI) as well.

Solaris: facter runs {{/usr/sbin/prtdiag}} and attempts to match several product names (including vmware) to each line of output until it finds something useful.

Windows: via wmi

Mac OS: facter looks for vmware in the the {{sp_machine_model}} fact (which itself comes from system_profiler's {{model_identifier}})


[This repo|https://github.com/DE-IBH/imvirt/blob/master/helper/vmware.c] has a great example of how to detect the product name (ESXi, Workstation, etc), which looks like it does a better job than the current VMware detector as built for FACT-1717. I think it might be nice to split out the product name and version as separate pieces of metadata, like this tool does.

Gheorghe Popescu (JIRA)

unread,
Jul 1, 2019, 3:13:02 AM7/1/19
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Release Notes: Not Needed
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages