Rex icon indicating copy to clipboard operation
Rex copied to clipboard

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

Open VVelox opened this issue 2 years ago • 0 comments

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 avatar Aug 07 '23 01:08 VVelox