RexOps / RexOps/Rex

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

Open
#1,604 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage needed
Dominant language
Perl
Stars
737
Forks
214
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Rex::Hardware::VirtInfo and trace how dump_system_information determines virtualization_type, beginning with the QEMU branch shown in the issue. Reproduce the behavior on the reported FreeBSD setup, then verify that the resulting type is qemu while existing classifications remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.