{"action":"created","issue":{"url":"https://api.github.com/repos/chef/ohai/issues/647","labels_url":"https://api.github.com/repos/chef/ohai/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/chef/ohai/issues/647/comments","events_url":"https://api.github.com/repos/chef/ohai/issues/647/events","html_url":"https://github.com/chef/ohai/issues/647","id":115343578,"number":647,"title":"Ohai Identification of Hyper-V Hypervisor","user":{"login":"Azrael808","id":562500,"avatar_url":"https://avatars.githubusercontent.com/u/562500?v=3","gravatar_id":"","url":"https://api.github.com/users/Azrael808","html_url":"https://github.com/Azrael808","followers_url":"https://api.github.com/users/Azrael808/followers","following_url":"https://api.github.com/users/Azrael808/following{/other_user}","gists_url":"https://api.github.com/users/Azrael808/gists{/gist_id}","starred_url":"https://api.github.com/users/Azrael808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azrael808/subscriptions","organizations_url":"https://api.github.com/users/Azrael808/orgs","repos_url":"https://api.github.com/users/Azrael808/repos","events_url":"https://api.github.com/users/Azrael808/events{/privacy}","received_events_url":"https://api.github.com/users/Azrael808/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-05T18:23:43Z","updated_at":"2015-11-28T02:34:29Z","closed_at":null,"body":"I am attempting to identify when a Chef client is running as a Hyper-V guest, but the ohai attributes currently identify the Hypervisor as \"virtualpc\".\r\n\r\nIt's not a show-stopper, as I've just matched that `node['virtualization']['system']` attribute value in my recipes for now, but I did notice there was an existing Jira ticket for this and I wondered if a fix was on the roadmap?\r\n\r\nhttps://tickets.opscode.com/browse/OHAI-43\r\n"},"comment":{"url":"https://api.github.com/repos/chef/ohai/issues/comments/160242057","html_url":"https://github.com/chef/ohai/issues/647#issuecomment-160242057","issue_url":"https://api.github.com/repos/chef/ohai/issues/647","id":160242057,"user":{"login":"tas50","id":1015200,"avatar_url":"https://avatars.githubusercontent.com/u/1015200?v=3","gravatar_id":"","url":"https://api.github.com/users/tas50","html_url":"https://github.com/tas50","followers_url":"https://api.github.com/users/tas50/followers","following_url":"https://api.github.com/users/tas50/following{/other_user}","gists_url":"https://api.github.com/users/tas50/gists{/gist_id}","starred_url":"https://api.github.com/users/tas50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tas50/subscriptions","organizations_url":"https://api.github.com/users/tas50/orgs","repos_url":"https://api.github.com/users/tas50/repos","events_url":"https://api.github.com/users/tas50/events{/privacy}","received_events_url":"https://api.github.com/users/tas50/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T02:34:29Z","updated_at":"2015-11-28T02:34:29Z","body":"Something like this:\r\n      when /Manufacturer: Microsoft/\r\n        if dmi_data =~ /Product Name: Virtual Machine/\r\n          if dmi_data =~ /Version: (VS2005R2|6.0)/\r\n            return 'virtualpc'\r\n          elsif dmi_data =~ /Version: (7.0|Hyper-V)/\r\n            return 'hyperv'\r\n          elsif dmi_data =~ /Version: 5.0/\r\n            return 'virtualserver'\r\n          end"}}