Skip to content

Commit e7034b4

Browse files
committed
Add hostinfo Virtualization hyperv
1 parent ed37dc2 commit e7034b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/common/common_linux.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ func VirtualizationWithContext(ctx context.Context) (string, string, error) {
149149
if StringsContains(contents, "kvm") {
150150
system = "kvm"
151151
role = "host"
152+
} else if StringsContains(contents, "hv_util") {
153+
system = "hyperv"
154+
role = "guest"
152155
} else if StringsContains(contents, "vboxdrv") {
153156
system = "vbox"
154157
role = "host"

0 commit comments

Comments
 (0)