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
- 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
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.
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_typeset toqemu.How to reproduce it
Code example
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