Giter Site home page Giter Site logo

Comments (6)

tas50 avatar tas50 commented on May 29, 2024 2

Is this information not in the ohai Virtualization plugin? You should be able to look for items in the node['virtualization']['systems'] mash that are of the type 'guest'. If parallels isn't properly detecting there please let me know over in the Ohai repo and I'll get that fixed up.

from macos-cookbook.

tas50 avatar tas50 commented on May 29, 2024 1

If something is missing just ping me on slack. I'm around. This cookbook is getting great and super important to us.

from macos-cookbook.

jazaval avatar jazaval commented on May 29, 2024

We didn't know it existed - thanks! We'll aim to get this resolved in next week's release.

from macos-cookbook.

americanhanko avatar americanhanko commented on May 29, 2024

Thanks, @clburlison for the issue submission and @tas50 for that tip.

@jazaval This should do it:

node['virtualization']['systems'].values.include? 'guest'

from macos-cookbook.

clburlison avatar clburlison commented on May 29, 2024

I honestly didn't know the ohai virtualization code was designed to detect VM guests. Looking through the current ohai virtualization code Parallels is the only hypervisor that supports guest detection. So I opened chef/ohai#1163

For what it is worth using the following block works right now with the currently shipping chef code:

Chef.node['cpu']['flags'].include? 'vmm'

from macos-cookbook.

americanhanko avatar americanhanko commented on May 29, 2024

This is resolved via #73 - @clburlison if node['virtualization']['systems'] returns an empty hash, we assume are not running on bare metal.

from macos-cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.