-
Notifications
You must be signed in to change notification settings - Fork 452
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
virtualization does not detect centos 7.1 kvm guests running on a centos 7.1 host #590
Labels
Status: Good First Issue
An issue ready for a new contributor.
Comments
Thanks for the infos. It looks like we'll just have to change this line to when /Manufacturer: QEMU|Product Name: KVM/ |
Thank you, new virtualization.rb seems to work (used ohai-8.5.0 and just grabbed the latest plugins/linux/virtualization.rb from the above pull). |
Great! Thanks for the check @conathan ! :) |
tas50
added
Status: Good First Issue
An issue ready for a new contributor.
and removed
Help: Good First Issue
labels
Jan 29, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looking at https://github.com/chef/ohai/blob/master/lib/ohai/plugins/linux/virtualization.rb, It uses the following to detect whenever it is running as a kvm guest:
In this case, I have the following for cpuinfo:
vendor_id : GenuineIntel
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
and for dmidecode
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Red Hat
Product Name: KVM
Version: RHEL 7.0.0 PC (i440FX + PIIX, 1996)
Serial Number: Not Specified
UUID: 6E56CFE2-2088-4A46-906A-FC49EDC4072C
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Red Hat Enterprise Linux
I worked around that by using the following:
The text was updated successfully, but these errors were encountered: