Update virt-what to detect AWS via dmidecode data.
authorQi Guo [Flos] <qguo@redhat.com>
Wed, 19 Jul 2017 15:39:29 +0000 (16:39 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 19 Jul 2017 15:39:29 +0000 (16:39 +0100)
virt-what.in

index 4c416fb..1d98eee 100644 (file)
@@ -225,6 +225,10 @@ fi
 
 if [ "$cpuid" = "XenVMMXenVMM" ]; then
     echo xen; echo xen-hvm
+    # Check for AWS
+    if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then
+        echo aws
+    fi
     skip_qemu_kvm=true
 elif [ -d "${root}/proc/xen" ]; then
     echo xen