Merge pull request #1336 from johanburati/job043

Add hostinfo Virtualization hyperv
tags/v3.22.9 v3.22.9
shirou 2 years ago committed by GitHub
commit 16b3aac6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save