Request a normal OS shutdown from the running domain vm1.
Which command is appropriate?
virsh shutdown sends a graceful shutdown request to the guest. The guest OS must be configured to respond.
Detailed explanation
virsh shutdown vm1Correct. virsh shutdown vm1 requests a normal guest shutdown.
virsh undefine vm1Incorrect. undefine removes the domain definition and is unrelated to a normal shutdown.
virsh suspend vm1Incorrect. suspend pauses the domain rather than shutting it down.
virsh reset vm1Incorrect. reset is a reset operation, not the graceful shutdown request.
Try it yourself
An example you can run in a temporary verification environment.
virsh help shutdown 2>/dev/null | head -n 8 || trueExpected result
virshがある場合はshutdownのhelp。停止要求は送らないKey points
- virsh shutdown
- Graceful shutdown
- Guest response
Notes
- Environment: virsh helpのみ
- Use a disposable VM or container when validating lifecycle commands.
- Exact command output can vary slightly by distribution and runtime version.
Foundation review
Identify the layer
A normal shutdown may take time and depends on guest support, while suspend and reset produce different states.
Check the side effect
Wait for the domain state to change and use a forced stop only when the guest cannot respond.