Permalink
Browse files

Update detection of KVM in guests

  • Loading branch information...
g-bougard committed Sep 20, 2016
1 parent 8a7f5ae commit be1057b9380e4ffaf6749224ef19766831c0f30a
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm
@@ -19,7 +19,10 @@ my @qemu_patterns = (
' QEMUAPIC ',
'QEMU Virtual CPU',
': QEMU HARDDISK,',
': QEMU CD-ROM,'
': QEMU CD-ROM,',
': QEMU Standard PC',
'Hypervisor detected: KVM',
'Booting paravirtualized kernel on KVM'
);
my $qemu_pattern = _assemblePatterns(@qemu_patterns);
@@ -91,6 +94,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 be1057b

Please sign in to comment.