Proposed extensions to Ohai Linux virtualization plugin


#1

Hey guys,

I’d like to propose a patch/extension (or a new ohai plugin) for the
virtualization attribute.

http://img41.yfrog.com/i/rjc.png/

Code here:

Needs better error checking, platform detection and so on, but the
basic idea is there.

What do you guys think?

Cheers!


#2

On Tue, Sep 29, 2009 at 10:12 AM, Sergio Rubio rubiojr.ml@gmail.com wrote:

Hey guys,

Hi Sergio!

I’d like to propose a patch/extension (or a new ohai plugin) for the
virtualization attribute.

Interesting!

http://img41.yfrog.com/i/rjc.png/

Code here:

http://github.com/rubiojr/ohai-plugins/blob/master/virtualization_extensions.rb

Needs better error checking, platform detection and so on, but the
basic idea is there.

Seems to be Xen centric… are there any plans for including KVM (or
VMware / OpenVZ)

I like the concept though

What do you guys think?

Cheers!

Joel


$ echo “kpfmAdpoofdufevq/dp/vl” | perl -pe ‘s/(.)/chr(ord($1)-1)/ge’


#3

On Tue, Sep 29, 2009 at 11:40 AM, Joel Merrick joel.merrick@gmail.com wrote:

On Tue, Sep 29, 2009 at 10:12 AM, Sergio Rubio rubiojr.ml@gmail.com wrote:

Hey guys,

Hi Sergio!

I’d like to propose a patch/extension (or a new ohai plugin) for the
virtualization attribute.

Interesting!

http://img41.yfrog.com/i/rjc.png/

Code here:

http://github.com/rubiojr/ohai-plugins/blob/master/virtualization_extensions.rb

Needs better error checking, platform detection and so on, but the
basic idea is there.

Seems to be Xen centric… are there any plans for including KVM (or
VMware / OpenVZ)

We are a Xen shop, dunno if I’ll have the chance or the energy to
support other virt. technologies…

Anyway, the attributes are only pushed if the chef client is a Xen
host, so it could be an standalone plugin called xen_linux_host or
something similar.

Cheers!

I like the concept though

What do you guys think?

Cheers!

Joel


$ echo “kpfmAdpoofdufevq/dp/vl” | perl -pe ‘s/(.)/chr(ord($1)-1)/ge’


#4

On Tue, Sep 29, 2009 at 2:12 AM, Sergio Rubio rubiojr.ml@gmail.com wrote:

I’d like to propose a patch/extension (or a new ohai plugin) for the
virtualization attribute.

http://img41.yfrog.com/i/rjc.png/

Code here:

http://github.com/rubiojr/ohai-plugins/blob/master/virtualization_extensions.rb

Needs better error checking, platform detection and so on, but the
basic idea is there.

What do you guys think?

I’m happy to see more data in Ohai. File a ticket, and a pointer to a
fork of ohai with the extensions integrated. :slight_smile:

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com