pub fn is_vm() -> bool
Running on a hypervisor. Inside WSL 2 this and is_wsl are both true. A Windows host with Hyper-V, WSL 2, or virtualization-based security enabled is not a VM (E-84).
is_wsl