added pciconf virtual detection

This commit is contained in:
Sebastian Hildebrandt 2025-06-19 10:54:19 +02:00
parent 7e710db75f
commit 39db1b6f8a

View File

@ -108,7 +108,7 @@ function system(callback) {
if (!result.virtual) {
try {
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) {
if (disksById.indexOf('_QEMU_') >= 0 || disksById.indexOf('QEMU ') >= 0) {
result.virtual = true;
result.virtualHost = 'QEMU';
}