Start the defined but inactive libvirt domain vm1.
Which command is appropriate?
virsh start starts a defined inactive domain by name or identifier.
Detailed explanation
virsh create vm1Incorrect. virsh create starts a domain from an XML definition and is not the normal defined-domain action here.
Incorrect. virsh create starts a domain from an XML definition and is not the normal defined-domain action here.
virsh resume vm1Incorrect. resume continues a suspended running domain.
Incorrect. resume continues a suspended running domain.
virsh reboot vm1Incorrect. reboot is for an already running domain.
Incorrect. reboot is for an already running domain.
virsh start vm1Correct. virsh start vm1 starts the defined inactive domain.
Correct. virsh start vm1 starts the defined inactive domain.
Try it yourself
An example you can run in a temporary verification environment.
virsh help start 2>/dev/null | head -n 8 || trueExpected result
virshがある場合はstartのhelp。domainは起動しないKey points
- virsh start
- Defined domain
- Inactive
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.