mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-02 22:17:08 +08:00
Merge pull request #1336 from johanburati/job043
Add hostinfo Virtualization hyperv
This commit is contained in:
commit
16b3aac6ad
@ -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…
x
Reference in New Issue
Block a user