summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Thompson <travis@altiscale.com>2016-03-30 21:30:43 -0700
committerTravis Thompson <travis@altiscale.com>2016-03-30 21:30:43 -0700
commit99acedf0ae466863eb13f73a3bfe61fb32f663fb (patch)
tree4bab55287db23897c6ea72401d6267d5c1ba7e99
parent02defc6ff5ce01204656ae4715c4fdce68843e2e (diff)
downloadohai-99acedf0ae466863eb13f73a3bfe61fb32f663fb.tar.gz
Add bhyve / xhyve support
Unfortunately xhyve reports as bhyve right now and I can't find a way to detect xhyve over bhyve, but I mostly care about it being detected as a guest. ``` # ohai virtualization { "systems": { "bhyve": "guest" }, "system": "bhyve", "role": "guest" } ```
-rw-r--r--lib/ohai/mixin/dmi_decode.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/mixin/dmi_decode.rb b/lib/ohai/mixin/dmi_decode.rb
index 8ec109f5..c56291c7 100644
--- a/lib/ohai/mixin/dmi_decode.rb
+++ b/lib/ohai/mixin/dmi_decode.rb
@@ -40,6 +40,8 @@ module ::Ohai::Mixin::DmiDecode
return "openstack"
when /Manufacturer: QEMU|Product Name: (KVM|RHEV)/
return "kvm"
+ when /Product.*: BHYVE/
+ return "bhyve"
end
end
return nil