Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
VVelox opened this issue Aug 7, 2023 · 0 comments
Labels
triage needed A potential bug that needs to be reproduced and understood

Comments

@VVelox
Copy link
Contributor

VVelox commented Aug 7, 2023

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

@VVelox VVelox added the triage needed A potential bug that needs to be reproduced and understood label Aug 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
triage needed A potential bug that needs to be reproduced and understood
Projects
None yet
Development

No branches or pull requests

1 participant