[Fusioninventory-devel] Script to detect virtualization technology

Gonéri Le Bouder goneri at rulezlan.org
Thu Jun 17 23:39:53 UTC 2010


2010/6/17 Guillaume Pratte <guillaume.pratte at revolutionlinux.com>:
> Hello,
Hi Guillaume, welcome on the list.

> Would not this make a great addition to the Fusion Inventory agent?
We already use code from imvirt 0.3 there:
lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm

imvirt is written Perl and so it was easy to reuse code directly to
avoid a new dependency.
I'm not a big fan of cut'n past. Maybe we should change that to get a more
maintainable code base. On the other side, in general it's trivial to detect if
we're in a virtual machine. For example, nformation is directly present in bios
vendor or CPU vendor name for VirtualBox and QEMU.

If you want to improve this part of the code, please use the master branch from
the Git repository. With Guillaume Rousse, we already did some changes since
recently.

Cheers
-- 
     Gonéri Le Bouder



More information about the Fusioninventory-devel mailing list