Windows Hyper-V Stop-VM equivalent in Linux
Requests a graceful shutdown of a libvirt VM.
Hyper-V Stop-VM
virsh shutdown VM
virsh shutdown VM
virsh shutdown VM
Overview
What this command does
On Windows, "Hyper-V Stop-VM" is used to shutdown virtual machine. On Linux, the closest practical mapping shown here is "virsh shutdown VM". Requests a graceful shutdown of a libvirt VM. 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 Stop-VM maps to virsh shutdown VM 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
Shutdown virtual machine
Requests a graceful shutdown of a libvirt VM.
virsh shutdown VM
Shutdown virtual machine
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 shutdown VM
Walkthrough
Examples with explanations
# Windows equivalent: Hyper-V Stop-VM
virsh shutdown VM
Reference
Common options and variations
| Command or option | Use |
|---|---|
virsh shutdown VM | Shutdown virtual machine |
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 shutdown VM" 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 shutdown VM |
Same command on this distribution. |
| Fedora | libvirt | virsh shutdown VM |
Same command on this distribution. |
| Arch | libvirt | virsh shutdown VM |
Same command on this distribution. |
Keep learning