1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-08 11:33:42 +00:00

Updated VM detection for ProxMox

This commit is contained in:
Bryan Roe
2020-04-24 23:56:07 -07:00
parent cb991c17f0
commit 28dbc59746
2 changed files with 14 additions and 3 deletions

View File

@@ -223,7 +223,19 @@ module.exports.isVM = function isVM()
break;
}
}
if (id.identifiers.bios_vendor && (id.identifiers.bios_vendor == 'VMware, Inc.' || id.identifiers.bios_vendor == 'Xen')) { ret = true; }
if (id.identifiers.bios_vendor)
{
switch(id.identifiers.bios_vendor)
{
case 'VMware, Inc.':
case 'Xen':
case 'SeaBIOS':
ret = true;
break;
default:
break;
}
}
if (id.identifiers.board_vendor && id.identifiers.board_vendor == 'VMware, Inc.') { ret = true; }
if (id.identifiers.board_name)
{
@@ -231,7 +243,6 @@ module.exports.isVM = function isVM()
{
case 'VirtualBox':
case 'Virtual Machine':
case 'SeaBIOS':
ret = true;
break;
default: