[BUG] virtual grains fails to detect some Parallels VM's #63181
Labels
Bug
broken, incorrect, or confusing behavior
Grains
needs-triage
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
Description
The core grain
virtual
fails to properly detect some VM's running under Parallels and instead reports them asphysical
.This is caused by the
dmidecode
command on Linux returning a manufacture slightly differently than salt expects.Setup
I'm not entirely sure which are the important bits that cause dmidecode to return the new manufacture, but I'm able to reproduce the problem with Parallels version 18.1.0 on MacOS 13.0 under Apple Silicon, using a VM running Ubuntu 22.04. Salt 3005 was installed using the Debian 11 classic packages, since Ubuntu 22.04 packages are not available for arm64.
Steps to Reproduce the behavior
brew install vagrant # or your preferred method vagrant init gvengel/salt-jammy-arm64 vagrant up vagrant ssh -- salt-call --local grains.get virtual
Behavior
Expected behavior
Should return "Parallels"
The text was updated successfully, but these errors were encountered: