use bus/pci/devices to identify a vm guest

pull/688/head
litong 6 years ago
parent 12005ab922
commit 119f26c1df

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

Loading…
Cancel
Save