Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1656

Add support for kvm virtualization detection

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.9.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform OS
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Linux: When run as root, facter detects kvm via virt-what. If virt-what determines that the machine is not running on Parallels (which exports "KVMKVMKVM" from the cpuid instruction), it will return kvm if it finds that 1) the cpuid instruction yields "KVMKVMKVM", or 2) the DMI product name is KVM. Without root, facter examines the product_name fact (which comes from DMI) to find kvm. Failing that, it checks the lspci output and returns kvm if it finds virtio there.

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

      Windows: Detected via wmi

        Attachments

          Activity

            People

            Assignee:
            casey.williams Casey Williams
            Reporter:
            casey.williams Casey Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support