Skip to content

is_virtual core fact incorrect on Windows guest on Proxmox #9519

Open
@trenta

Description

@trenta

Describe the Bug

Windows guests on Proxmox return false for core fact is_virtual

Expected Behavior

They should return true

Environment

  • Puppet Version 8.10.0
  • Platform Windows Server 2022

Additional Context

Windows on vmware

Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x000000000a8f3770 @name="is_virtual", @fact_class=Facts::Windows::IsVirtual, @user_query="is_virtual", @type=:core, @file=nil>]
Debug: Facter: fact "is_virtual" has resolved to: true
{
  "is_virtual": true
}

Windows on proxmox

Debug: Facter: List of resolvable facts: [#<Facter::SearchedFact:0x0000000009bd8400 @name="is_virtual", @fact_class=Facts::Windows::IsVirtual, @user_query="is_virtual", @type=:core, @file=nil>]
Debug: Facter: fact "is_virtual" has resolved to: false
{
  "is_virtual": false
}

Linux on proxmox

Debug: Facter: Executing command: virt-what
Debug: Facter: fact "is_virtual" has resolved to: true
{
  "is_virtual": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions