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.
Correct. virsh shutdown vm1 requests a normal guest shutdown.
virsh undefine vm1Incorrect. undefine removes the domain definition and is unrelated to a normal shutdown.
Incorrect. undefine removes the domain definition and is unrelated to a normal shutdown.
virsh suspend vm1Incorrect. suspend pauses the domain rather than shutting it down.
Incorrect. suspend pauses the domain rather than shutting it down.
virsh reset vm1Incorrect. reset is a reset operation, not the graceful shutdown request.
Incorrect. 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のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.