Windows Hyper-V Get-VM equivalent in Linux
Lists virtual machines managed by libvirt; it does not enumerate VMs from unrelated hypervisors.
Hyper-V Get-VM
virsh list --all
virsh list --all
virsh list --all
Overview
What this command does
On Windows, "Hyper-V Get-VM" is used to list virtual machines. On Linux, the closest practical mapping shown here is "virsh list --all". Lists virtual machines managed by libvirt; it does not enumerate VMs from unrelated hypervisors. This reference is grouped under Containers & Virtualization → Virtual Machines.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows Hyper-V Get-VM maps to virsh list --all for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
For the broader concept behind this mapping, read Linux containers and virtualization.
Practical tasks
Common use cases
List virtual machines
Lists virtual machines managed by libvirt; it does not enumerate VMs from unrelated hypervisors.
virsh list --all
List virtual machines
virsh --help
Show command help when supported
man virsh
Open the manual page when installed
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
virsh list --all
Walkthrough
Examples with explanations
# Windows equivalent: Hyper-V Get-VM
virsh list --all
Reference
Common options and variations
| Command or option | Use |
|---|---|
virsh list --all | List virtual machines |
virsh --help | Show command help when supported |
man virsh | Open the manual page when installed |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The command "virsh list --all" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses libvirt-daemon-system; Fedora uses libvirt; Arch uses libvirt.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | libvirt-daemon-system | virsh list --all |
Same command on this distribution. |
| Fedora | libvirt | virsh list --all |
Same command on this distribution. |
| Arch | libvirt | virsh list --all |
Same command on this distribution. |
Keep learning