Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Add HyperV support
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelloferrari committed Oct 30, 2019
1 parent 08f36c4 commit 3902da8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fetch/host
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ CHECK_TYPE_SERVER_OVM_DMESG=$(dmesg | grep OVM | wc -l)
CHECK_TYPE_SERVER_OVM_LOG=$(grep -i ovm /var/log/dmesg | wc -l)
CHECK_TYPE_SERVER_VMWARE=$(dmesg | grep VMware | wc -l)
CHECK_TYPE_SERVER_VMWARE_LOG=$(grep VMware /var/log/dmesg* | wc -l)
CHECK_TYPE_SERVER_HYPERV=$(dmesg | grep HyperV|wc -l)
CHECK_TYPE_SERVER_HYPERV_LOG=$(grep HyperV /var/log/dmesg* | wc -l)
# CHECK_TYPE_SERVER_AIX=$(uname -L | awk '{print $1}')
# TODO: HPUX has a specific server type, see original script
CHECK_TYPE_SERVER_HPUX=0
Expand All @@ -75,6 +77,9 @@ if [ "$CHECK_TYPE_SERVER_OVM_DMESG" -gt 0 ] || [ "$CHECK_TYPE_SERVER_OVM_LOG" -g
elif [ $CHECK_TYPE_SERVER_VMWARE -gt 0 ] || [ "$CHECK_TYPE_SERVER_VMWARE_LOG" -gt 0 ]; then
TYPE=VMWARE
VIRTUAL=Y
elif [ $CHECK_TYPE_SERVER_HYPERV -gt 0 ] || [ "$CHECK_TYPE_SERVER_HYPERV_LOG" -gt 0 ]; then
TYPE=HYPERV
VIRTUAL=Y
elif [ $CHECK_TYPE_SERVER_HYPERVISOR -gt 0 ]; then
TYPE=VMOTHER
VIRTUAL=Y
Expand Down

0 comments on commit 3902da8

Please sign in to comment.