And here's the more recent fixed version: https://github.com/chef/ohai/blob/7.4.0/lib/ohai/plugins/linux/virtualization.rb#L153-L190Here's what the older version looks like: https://github.com/chef/ohai/blob/7.0.2/lib/ohai/plugins/linux/virtualization.rb#L130-L156I actually JUST had this problem!If you're using chef before 11.18.6 on Ubuntu > 12.04, upgrade chef - there's a guard since added to Ohai that fixes this issue.
BrianOn Wed, Feb 18, 2015 at 1:27 PM, Douglas Garstang < " target="_blank"> > wrote:This is mighty strange, and something I haven't seen before. With a recent cookbook, node[:virtualization][:system] as reported by ohai is coming up as 'lxc' on AWS EC2 instances when the chef-client first runs. It should be 'xen'.Doug
However, when chef runs again, it returns 'xen', and every attempt I've made to look at it with ohai (even before the chef client starts) shows 'xen'.
What's up with that?
Archive powered by MHonArc 2.6.16.