Skip to content

Commit

Permalink
Fixes #9616: Some QEMU virtual machines are seen as physical
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Feb 21, 2017
1 parent 95c3d7f commit 5f8ed79
Showing 1 changed file with 10 additions and 0 deletions.
@@ -0,0 +1,10 @@
--- fusioninventory-agent/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm
+++ fusioninventory-agent/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm
@@ -97,6 +97,7 @@ sub _getType {
my ($bios, $logger) = @_;

if ($bios->{SMANUFACTURER}) {
+ return 'QEMU' if $bios->{SMANUFACTURER} =~ /QEMU/;
return 'Hyper-V' if $bios->{SMANUFACTURER} =~ /Microsoft/;
return 'VMware' if $bios->{SMANUFACTURER} =~ /VMware/;
}

0 comments on commit 5f8ed79

Please sign in to comment.