From 119f26c1df57a807e12f889c2a595c26dc235619 Mon Sep 17 00:00:00 2001 From: litong Date: Wed, 22 May 2019 11:01:09 +0800 Subject: [PATCH] use bus/pci/devices to identify a vm guest --- host/host_linux.go | 1 - 1 file changed, 1 deletion(-) diff --git a/host/host_linux.go b/host/host_linux.go index 857085e..ef97c14 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -571,7 +571,6 @@ func VirtualizationWithContext(ctx context.Context) (string, string, error) { contents, err := common.ReadLines(filename) if err == nil { if common.StringsContains(contents, "virtio-pci") { - system = "kvm" role = "guest" } }