QEMU is not necesarily libvirt, but Rex::Hardware::VirtInfo regards it as that
Nobody has claimed this yet.
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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