From c0116e157db78154c8221ea9b9247716db4144a9 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 19 Jun 2025 10:48:14 +0200 Subject: [PATCH] added pciconf virtual detection --- lib/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.js b/lib/system.js index 78e8ff4..0915b2b 100644 --- a/lib/system.js +++ b/lib/system.js @@ -107,7 +107,7 @@ function system(callback) { } if (!result.virtual) { try { - const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null', util.execOptsLinux).toString(); + const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null && pciconf -lv 2>/dev/null', util.execOptsLinux).toString(); if (disksById.indexOf('_QEMU_') >= 0) { result.virtual = true; result.virtualHost = 'QEMU';