Skip to content

QEMU is not necesarily libvirt, but Rex::Hardware::VirtInfo regards it as that #1604

@VVelox

Description

@VVelox

Describe the bug

Rex::Hardware::VirtInfo assumes that QEMU is kvm. This is may only be true if the host is Linux and is definitely false for any other OS.

    elsif ( $sys_vendor =~ /QEMU/ ) {
      $virtualization_type = "kvm";
      $virtualization_role = "guest";
    }

Sadly no good fix for this as people are likely expecting this bug to work like this given how long standing it has been.

Expected behavior

$virtualization_type set to qemu.

How to reproduce it

  1. Check virtualization info from dump_system_information on a QEMU VM.

Code example

use Rex; use Rex::Commands::Gather; dump_system_information;

Additional context

No response

Rex version

1.14.2

Perl version

5.32.1

Operating system running rex

FreeBSD

Operating system managed by rex

FreeBSD and Linux

How rex was installed?

package manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage neededA potential bug that needs to be reproduced and understood

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions