I am new to servers and vms wanted to know the difference between
virsh destroy
and
virsh undefine
The
virsh destroy
command initiates an immediate ungraceful shutdown and stops the specified guest virtual machine. Usingvirsh destroy
can corrupt guest virtual machine file systems. Use thevirsh destroy
command only when the guest virtual machine is unresponsive. Thevirsh destroy
command with the--graceful
option attempts to flush the cache for the disk image file before powering off the virtual machine.
virsh delete
@ access.redhat.com
The
virsh undefine
domain command undefines a domain. If domain is inactive, the configuration is removed completely. If the domain is active (running), it is converted to atransient domain
. When the guest virtual machine becomes inactive, the configuration is removed completely.
virsh undefine
@ access.redhat.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With