-
-
Notifications
You must be signed in to change notification settings - Fork 49
grml-autoconfig _detect_virtual: prefer Virtualbox over KVM in virt-what #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me as a workaround
is there a bugreport against virt-what? returning two results seems counter-intuitive for the tool.
|
🐳 Docker image for this PR is available: docker pull ghcr.io/grml/grml-live:pr-435 |
couldn't find one yet, will certainly try to report one, thanks :) |
|
I tried on a Debian trixie VM inside a Debian sid host (with VirtualBox 7.2.0-dfsg-3 running Linux 6.12.38+deb13-amd64). And I only get "virtualbox" as output, the cpuid helper returns nothing. That is even when running VirtualBox with kvm and kvm_intel and withouth either of those modules loaded in the host system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the change wants a comment rederencing the PR and/or an explanation
|
Reported as https://bugs.debian.org/1115469 and even traced it further down, quoting myself from bug report towards Debian:
|
|
@mika do you want to merge this? |
virt-what v1.27-1 as present in Debian/trixie might return both virtualbox *and* kvm when being invoked inside a VirtualBox VM (v7.1.12-dfsg-2 on Debian/trixie with kernel 6.12.43+deb13-amd64): # virt-what --version 1.27 # virt-what virtualbox kvm virt-what reads /sys/firmware/dmi/tables/DMI to properly identify VirtualBox, but also executes /usr/libexec/virt-what-cpuid-helper, which reports `KVMKVMKVM`, and therefore seems to report both of them. We don't have any actual automation for KVM usage, while all the VirtualBox support (e.g. for shared folders) isn't executed, because its reported as KVM VM, instead of VirtualBox. Adjust order of virt-what check accordingly to fix this. See https://bugs.debian.org/1115469
yes, just polishing the commit message with the Debian BTS and will merge it then, thx! :) |
virt-what v1.27-1 as present in Debian/trixie might return both virtualbox and kvm when being invoked inside a VirtualBox VM (v7.1.12-dfsg-2 on Debian/trixie with kernel 6.12.43+deb13-amd64):
virt-what reads
/sys/firmware/dmi/tables/DMIto properly identify VirtualBox, but also executes/usr/libexec/virt-what-cpuid-helper, which reportsKVMKVMKVM, and therefore seems to report both of them.We don't have any actual automation for KVM usage, while all the VirtualBox support (e.g. for shared folders) isn't executed, because its reported as KVM VM, instead of VirtualBox. Adjust order of virt-what check accordingly to fix this.