added pciconf virtual detection

This commit is contained in:
Sebastian Hildebrandt 2025-06-19 10:48:14 +02:00
parent 3a1bf49201
commit c0116e157d

View File

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