From e7034b47f2430418228fd2a2442b2fa00538966d Mon Sep 17 00:00:00 2001 From: Johan Burati Date: Tue, 2 Aug 2022 16:23:43 +0900 Subject: [PATCH] Add hostinfo Virtualization hyperv --- internal/common/common_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/common/common_linux.go b/internal/common/common_linux.go index da44c3f..41916de 100644 --- a/internal/common/common_linux.go +++ b/internal/common/common_linux.go @@ -149,6 +149,9 @@ func VirtualizationWithContext(ctx context.Context) (string, string, error) { if StringsContains(contents, "kvm") { system = "kvm" role = "host" + } else if StringsContains(contents, "hv_util") { + system = "hyperv" + role = "guest" } else if StringsContains(contents, "vboxdrv") { system = "vbox" role = "host"