← All commands
Topic hub Containers & Virtualization
Windows Linux Containers & Virtualization Expanded guide Virtual Machines

Windows Hyper-V Get-VM equivalent in Linux

Lists virtual machines managed by libvirt; it does not enumerate VMs from unrelated hypervisors.

Windows Hyper-V Get-VM
→
Linux equivalents
Debian/Ubuntu libvirt-daemon-system
virsh list --all
Fedora libvirt
virsh list --all
Arch libvirt
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.

Migration tip: <code>virsh</code> talks to libvirt, so it is the closest match only when your Linux VMs are managed by libvirt/KVM. It will not automatically list VirtualBox, VMware or other independently managed 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.

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 optionUse
virsh list --allList virtual machines
virsh --helpShow command help when supported
man virshOpen 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.

DistributionPackage manager / baseEquivalent commandDifference 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

Related Containers & Virtualization commands