Skip to main content

is_vm

Function is_vm 

Source
pub fn is_vm() -> bool
Expand description

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).