destroy
Immediately terminates a virtual server and releases any used resources.
Syntax
- <VS>
- Is the name, the ID, or the UUID of the virtual server.
Selected options
- --domain
- Specifies the virtual server.
- --graceful
- Tries to properly terminate the virtual server, and only if it is not responding in a reasonable amount of time, it is forcefully terminated.
Virtual server state transitions
| From State | To State (reason) |
|---|---|
| running | shut off (destroyed) |
| paused | shut off (destroyed) |
| crashed | shut off (destroyed) |
Usage
Terminating a virtual serverExample
This example immediately
terminates virtual server vserv1.
# virsh destroy vserv1